Skip to content

Commit

Permalink
Merge branch 'main' into ss/topology-aware-operators
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri authored Oct 23, 2023
2 parents 25e3b2c + d0b7ec8 commit 5c7fafc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
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
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Oceananigans"
uuid = "9e8cae18-63c1-5223-a75c-80ca9d6e9a09"
authors = ["Climate Modeling Alliance and contributors"]
version = "0.89.2"
version = "0.89.3"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down Expand Up @@ -84,4 +84,4 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
TimesDates = "bdfc003b-8df8-5c39-adcd-3a9087f5df4a"

[targets]
test = ["BenchmarkTools", "Coverage", "CUDA_Runtime_jll", "DataDeps", "Enzyme", "InteractiveUtils", "MPIPreferences", "OpenMPI_jll", "Plots", "Test", "TimerOutputs", "TimesDates", "SafeTestsets"]
test = ["BenchmarkTools", "Coverage", "CUDA_Runtime_jll", "DataDeps", "Enzyme", "InteractiveUtils", "MPIPreferences", "OpenMPI_jll", "Plots", "Test", "TimerOutputs", "TimesDates", "SafeTestsets"]
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 5c7fafc

Please sign in to comment.