From eed869f24db41f7d1a064658369e0690a7db99f4 Mon Sep 17 00:00:00 2001 From: sriharshakandala Date: Thu, 9 Jan 2025 15:00:38 -0700 Subject: [PATCH] Add test. --- .buildkite/pipeline.yml | 1 + test/Spaces/high_resolution_space.jl | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 test/Spaces/high_resolution_space.jl diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 89928a1afb..438dafc757 100755 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -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: diff --git a/test/Spaces/high_resolution_space.jl b/test/Spaces/high_resolution_space.jl new file mode 100644 index 0000000000..7980dba8c4 --- /dev/null +++ b/test/Spaces/high_resolution_space.jl @@ -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