Skip to content

Commit cdf902b

Browse files
activate GPU
1 parent 2be1308 commit cdf902b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ const LONGER_TESTS = false
55
const GROUP = get(ENV, "GROUP", "All")
66
const is_APPVEYOR = Sys.iswindows() && haskey(ENV, "APPVEYOR")
77

8+
function activate_downstream_env()
9+
Pkg.activate("GPU")
10+
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
11+
Pkg.instantiate()
12+
end
13+
814
@time begin
915
if GROUP == "All" || GROUP == "Core"
1016
@time @safetestset "Basic Tests + Some AD" begin include("basictests.jl") end
1117
@time @safetestset "Sparsity Tests" begin include("sparse.jl") end
1218
end
1319

1420
if GROUP == "GPU"
21+
activate_downstream_env()
1522
@time @safetestset "GPU Tests" begin include("gpu.jl") end
1623
end
1724
end

0 commit comments

Comments
 (0)