From 5e4216f095c11e17662dd267b74edd7f417a1678 Mon Sep 17 00:00:00 2001 From: Julian P Samaroo Date: Wed, 29 Mar 2023 16:13:16 -0500 Subject: [PATCH] device-rng: Remove at-inbounds --- src/device/random.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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