Skip to content

Commit

Permalink
Move extension testing to their own pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jul 11, 2023
1 parent 0a5f753 commit 46a1d1b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 12 deletions.
30 changes: 30 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ steps:
- "1.6"
- "1.7"
- "1.8"
- "1.9"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
Expand All @@ -27,6 +28,35 @@ steps:
soft_fail:
- exit_status: 3

- label: "CUDA Enzyme Julia {{matrix.version}}"
matrix:
setup:
version:
- "1.8"
- "1.9"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
- JuliaCI/julia-coverage#v1:
codecov: true
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop(; path=pwd())
Pkg.develop(; name="CUDA")
Pkg.add("Enzyme")' || exit 3
julia -e 'println("+++ :julia: Running tests")
using CUDA
include("test/extensions/enzyme.jl")
enzyme_testsuite(CUDABackend, CuArray)'
agents:
queue: "juliagpu"
cuda: "*"
timeout_in_minutes: 120
soft_fail:
- exit_status: 3

- label: "Metal Julia {{matrix.version}}"
matrix:
setup:
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@ struct NewBackend <: KernelAbstractions.GPU end
kernel = my_no_cpu_kernel(backend)
@test_throws MethodError kernel()
end

include("extensions/enzyme.jl")
@static if VERSION >= v"1.7.0"
@testset "Enzyme" begin
enzyme_testsuite(CPU, Array)
end
end
12 changes: 0 additions & 12 deletions test/testsuite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@ macro conditional_testset(name, skip_tests, expr)
end)
end

const Enzyme_AVAILABLE = haskey(
Pkg.dependencies(),
Base.UUID("7da242da-08ed-463a-9acd-ee780be4f1d9")) # Enzyme

include("test.jl")
include("localmem.jl")
if Enzyme_AVAILABLE
include("enzyme.jl")
end
include("private.jl")
include("unroll.jl")
include("nditeration.jl")
Expand All @@ -52,12 +46,6 @@ function testsuite(backend, backend_str, backend_mod, AT, DAT; skip_tests = Set{
localmem_testsuite(backend, AT)
end

@static if VERSION >= v"1.7.0" && Enzyme_AVAILABLE
@conditional_testset "Enzyme" skip_tests begin
enzyme_testsuite(backend, AT)
end
end

@conditional_testset "Private" skip_tests begin
private_testsuite(backend, AT)
end
Expand Down

0 comments on commit 46a1d1b

Please sign in to comment.