diff --git a/src/device/random.jl b/src/device/random.jl index f9fbddc43..849c25ea1 100644 --- a/src/device/random.jl +++ b/src/device/random.jl @@ -70,11 +70,11 @@ end warpId = (threadId - Int32(1)) >> 0x6 + Int32(1) # fld1 by 64 if field === :seed - @inbounds global_random_seed()[1] + global_random_seed()[1] elseif field === :key - @inbounds global_random_keys()[warpId] + global_random_keys()[warpId] elseif field === :ctr1 - @inbounds global_random_counters()[warpId] + global_random_counters()[warpId] elseif field === :ctr2 blockId = workgroupIdx().x + (workgroupIdx().y - Int32(1)) * gridGroupDim().x + (workgroupIdx().z - Int32(1)) * gridGroupDim().x * gridGroupDim().y @@ -89,9 +89,9 @@ end warpId = (threadId - Int32(1)) >> 0x6 + Int32(1) # fld1 by 64 if field === :key - @inbounds global_random_keys()[warpId] = x + global_random_keys()[warpId] = x elseif field === :ctr1 - @inbounds global_random_counters()[warpId] = x + global_random_counters()[warpId] = x end end