Skip to content

Commit 1572f45

Browse files
committed
Fix
1 parent 3fba940 commit 1572f45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/device/random.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ end
6363
@inline Philox2x32() = Philox2x32{7}()
6464

6565
@inline function Base.getproperty(rng::Philox2x32, field::Symbol)
66+
threadId = threadIdx().x + (threadIdx().y - 1i32) * blockDim().x +
67+
(threadIdx().z - 1i32) * blockDim().x * blockDim().y
6668
warpId = (threadId - 1i32) >> 0x5 + 1i32 # fld1
6769

6870
if field === :key

0 commit comments

Comments
 (0)