Skip to content

Commit 945569f

Browse files
committed
Undo some changes
1 parent 5fea286 commit 945569f

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

examples/utils.jl

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# EXCLUDE FROM TESTING
2-
if !(@isdefined backend)
32
if Base.find_package("CUDA") !== nothing
43
using CUDA
54
using CUDA.CUDAKernels
@@ -8,7 +7,6 @@ if Base.find_package("CUDA") !== nothing
87
else
98
const backend = CPU()
109
end
11-
end
1210

1311
@show backend, backend_str
1412

test/examples.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function find_sources(path::String, sources = String[])
99
return sources
1010
end
1111

12-
function examples_testsuite(backend, backend_str)
12+
function examples_testsuite(backend_str)
1313
@testset "examples" begin
1414
examples_dir = joinpath(@__DIR__, "..", "examples")
1515
examples = find_sources(examples_dir)
@@ -21,7 +21,6 @@ function examples_testsuite(backend, backend_str)
2121
@testset "$(basename(example))" for example in examples
2222
@eval module $(gensym())
2323
backend_str = $backend_str
24-
const backend = ($backend)()
2524
include($example)
2625
end
2726
@test true

test/testsuite.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function testsuite(backend, backend_str, backend_mod, AT, DAT; skip_tests = Set{
8989
# end
9090

9191
@conditional_testset "Examples" skip_tests begin
92-
examples_testsuite(backend, backend_str)
92+
examples_testsuite(backend_str)
9393
end
9494

9595
return

0 commit comments

Comments
 (0)