Skip to content

Commit

Permalink
Move enzyme tests to dedicated group (#3347)
Browse files Browse the repository at this point in the history
  • Loading branch information
glwagner authored Oct 20, 2023
1 parent 00006c1 commit d0b7ec8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,33 @@ steps:
architecture: CPU
depends_on: "init_cpu"

#####
##### Enzyme extension tests
#####

- label: "👺 gpu Enzyme extension tests"
env:
JULIA_DEPOT_PATH: "$SVERDRUP_HOME/.julia-$BUILDKITE_BUILD_NUMBER"
TEST_GROUP: "enzyme"
commands:
- "$SVERDRUP_HOME/julia-$JULIA_VERSION/bin/julia -O0 --color=yes --project -e 'using Pkg; Pkg.test()'"
agents:
queue: Oceananigans
architecture: GPU
depends_on: "init_gpu"

- label: "👹 cpu Enzyme extension tests"
env:
JULIA_DEPOT_PATH: "$TARTARUS_HOME/.julia-$BUILDKITE_BUILD_NUMBER"
TEST_GROUP: "enzyme"
CUDA_VISIBLE_DEVICES: "-1"
commands:
- "$TARTARUS_HOME/julia-$JULIA_VERSION/bin/julia -O0 --color=yes --project -e 'using Pkg; Pkg.test()'"
agents:
queue: Oceananigans
architecture: CPU
depends_on: "init_cpu"

#####
##### Documentation
#####
Expand Down
8 changes: 7 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ CUDA.allowscalar() do
# Core Oceananigans
if group == :unit || group == :all
@testset "Unit tests" begin
include("test_enzyme.jl")
include("test_grids.jl")
include("test_operators.jl")
include("test_boundary_conditions.jl")
Expand Down Expand Up @@ -168,6 +167,13 @@ CUDA.allowscalar() do
end
end

# Tests for Enzyme extension
if group == :enzyme || group == :all
@testset "Enzyme extension tests" begin
include("test_enzyme.jl")
end
end

if group == :convergence
include("test_convergence.jl")
end
Expand Down

0 comments on commit d0b7ec8

Please sign in to comment.