@@ -18,9 +18,11 @@ function apply_seed(seed)
1818 end
1919end
2020
21- @testset " rand($T ), seed $seed " for T in (
21+ wavefrontsize64 = AMDGPU. HIP. wavefrontsize (AMDGPU. device ()) == 32 ? [false , true ] : [true ]
22+
23+ @testset " rand($T ), seed $seed , wavefrontsize64 = $wavefrontsize64 " for T in (
2224 Int32, UInt32, Int64, UInt64, Int128, UInt128, Float16, Float32, Float64,
23- ), seed in (nothing , #= missing,=# 1234 )
25+ ), seed in (nothing , #= missing,=# 1234 ), wavefrontsize64 in wavefrontsize64
2426 # different kernel invocations should get different numbers
2527 @testset " across launches" begin
2628 function kernel (A:: AbstractArray{T} , seed) where {T}
8587 end
8688end
8789
88- @testset " basic randn($T ), seed $seed " for T in (
90+ @testset " basic randn($T ), seed $seed , wavefrontsize64 = $wavefrontsize64 " for T in (
8991 Float16, Float32, Float64,
90- ), seed in (nothing , #= missing,=# 1234 )
92+ ), seed in (nothing , #= missing,=# 1234 ), wavefrontsize64 in wavefrontsize64
9193 function kernel (A:: AbstractArray{T} , seed) where {T}
9294 apply_seed (seed)
9395 tid = workitemIdx (). x
108110 end
109111end
110112
111- @testset " basic randexp($T ), seed $seed " for T in (
113+ @testset " basic randexp($T ), seed $seed , wavefrontsize64 = $wavefrontsize64 " for T in (
112114 Float16, Float32, Float64,
113- ), seed in (nothing , #= missing,=# 1234 )
115+ ), seed in (nothing , #= missing,=# 1234 ), wavefrontsize64 in wavefrontsize64
114116 function kernel (A:: AbstractArray{T} , seed) where {T}
115117 apply_seed (seed)
116118 tid = workitemIdx (). x
0 commit comments