Skip to content

Commit

Permalink
Run Enzyme tests only on CUDA CI machine
Browse files Browse the repository at this point in the history
  • Loading branch information
pxl-th committed Aug 20, 2024
1 parent d1ff714 commit 3dfe290
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,14 @@ Random.seed!(0)
@info "Skipping Distributed tests, set FLUX_TEST_DISTRIBUTED_MPI or FLUX_TEST_DISTRIBUTED_NCCL=true to run them."
end

@testset "Enzyme" begin
Pkg.add(["CUDA", "cuDNN"])
import Enzyme
include("ext_enzyme/enzyme.jl")
if get(ENV, "FLUX_TEST_CUDA", "false") == "true"
@testset "Enzyme" begin
Pkg.add(["CUDA", "cuDNN"])
import Enzyme
include("ext_enzyme/enzyme.jl")
end
else
@info "Skipping Enzyme tests, set FLUX_TEST_CUDA=true to run them."
end

end

0 comments on commit 3dfe290

Please sign in to comment.