Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshakandala committed Jan 14, 2025
1 parent 53d212d commit eed869f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ steps:
- "julia --project=.buildkite -e 'using CUDA; CUDA.versioninfo()'"
- "srun julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/unit_spaces.jl"
- "srun julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/opt_spaces.jl"
- "srun julia --color=yes --check-bounds=yes --project=.buildkite test/Spaces/high_resolution_space.jl"
env:
CLIMACOMMS_DEVICE: "CUDA"
agents:
Expand Down
22 changes: 22 additions & 0 deletions test/Spaces/high_resolution_space.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Test
import ClimaComms
ClimaComms.@import_required_backends
import ClimaCore
@testset "Construct high resolution space on GPU" begin
result = try
ClimaCore.CommonSpaces.ExtrudedCubedSphereSpace(
Float32;
radius = 1.0,
h_elem = 105,
z_elem = 10,
z_min = 1.0,
z_max = 2.0,
n_quad_points = 4,
staggering = ClimaCore.Grids.CellCenter(),
)
catch
println("unable to create center space")
false
end
@test result isa ClimaCore.Spaces.CenterExtrudedFiniteDifferenceSpace
end

0 comments on commit eed869f

Please sign in to comment.