Skip to content

Commit 76d2a46

Browse files
committed
changing order to hopefully fix CI error
1 parent 95c8613 commit 76d2a46

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/atomic_test.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ function atomics_testsuite(backend, ArrayT)
5555

5656
@testset "atomic addition tests" begin
5757
types = [Int32, Int64, UInt32, UInt64, Float32]
58-
if ArrayT == CuArray
59-
CUDA.capability(CUDA.device()) >= v"6.0" && push!(types, Float64)
60-
CUDA.capability(CUDA.device()) >= v"7.0" && push!(types, Float16)
61-
else
58+
if ArrayT == Array
6259
push!(types, Float64)
6360
push!(types, Float16)
61+
elseif ArrayT == CuArray
62+
CUDA.capability(CUDA.device()) >= v"6.0" && push!(types, Float64)
63+
CUDA.capability(CUDA.device()) >= v"7.0" && push!(types, Float16)
6464
end
6565

6666
for T in types
@@ -198,10 +198,10 @@ function atomics_testsuite(backend, ArrayT)
198198

199199
@testset "atomic cas tests" begin
200200
types = [Int32, Int64, UInt32, UInt64]
201-
if ArrayT == CuArray
202-
CUDA.capability(CUDA.device()) >= v"7.0" && push!(types, UInt16)
203-
else
201+
if ArrayT == Array
204202
push!(types, UInt16)
203+
elseif ArrayT == CuArray
204+
CUDA.capability(CUDA.device()) >= v"7.0" && push!(types, UInt16)
205205
end
206206

207207
for T in types

0 commit comments

Comments
 (0)