Skip to content

Commit 39efb84

Browse files
committed
Runtests on GPU
1 parent 79039d4 commit 39efb84

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.buildkite/pipeline.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ steps:
6969
agents:
7070
slurm_gpus: 1
7171

72+
- label: "Unit: runtest cuda"
73+
key: unit_runtest_cuda
74+
command:
75+
- "julia --project=test test/runtests.jl"
76+
agents:
77+
slurm_gpus: 1
78+
slurm_mem: 20G
79+
7280
- group: "Unit: RecursiveApply"
7381
steps:
7482

test/Operators/spectralelement/opt.jl

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import ClimaCore:
1313
Operators,
1414
Quadratures
1515

16+
const context = ClimaComms.context()
1617

1718
# We need to pull these broadcasted expressions out as
1819
# toplevel functions due to how broadcast expressions are
@@ -145,13 +146,8 @@ end
145146
quad = Quadratures.GLL{Nq}()
146147
mesh = Meshes.RectilinearMesh(domain, 3, 3)
147148

148-
topology = Topologies.Topology2D(
149-
ClimaComms.SingletonCommsContext(
150-
ClimaComms.CPUSingleThreaded(),
151-
),
152-
mesh,
153-
)
154-
space = Spaces.SpectralElementSpace2D(topology, quad)
149+
topology = Topologies.Topology2D(mesh)
150+
space = Spaces.SpectralElementSpace2D(context, topology, quad)
155151

156152
coords = Fields.coordinate_field(space)
157153

@@ -204,12 +200,7 @@ end
204200

205201
horzdomain = Domains.RectangleDomain(xdomain, ydomain)
206202
horzmesh = Meshes.RectilinearMesh(horzdomain, xelem, yelem)
207-
horztopology = Topologies.Topology2D(
208-
ClimaComms.SingletonCommsContext(
209-
ClimaComms.CPUSingleThreaded(),
210-
),
211-
horzmesh,
212-
)
203+
horztopology = Topologies.Topology2D(context, horzmesh)
213204

214205
quad = Quadratures.GLL{npoly + 1}()
215206
horzspace = Spaces.SpectralElementSpace2D(horztopology, quad)

0 commit comments

Comments
 (0)