Skip to content

Commit 7ceacc0

Browse files
committed
Only test CUDA on 1.9+
1 parent 46a6b48 commit 7ceacc0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/unittest.jl

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ end
99
end
1010

1111
# Trigger extensions:
12-
using Zygote, SymbolicUtils, LoopVectorization, Bumper, Optim, CUDA
12+
using Zygote, SymbolicUtils, LoopVectorization, Bumper, Optim
1313

1414
@safetestset "Test deprecations" begin
1515
include("test_deprecations.jl")
@@ -111,6 +111,8 @@ end
111111
include("test_random.jl")
112112
end
113113

114-
@safetestset "Test CUDA" begin
115-
include("test_cuda.jl")
114+
if VERSION >= v"1.9"
115+
@eval @safetestset "Test CUDA" begin
116+
include("test_cuda.jl")
117+
end
116118
end

0 commit comments

Comments
 (0)