From d5b26d540d317d0c30aa067f5de02acca003b8c8 Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Wed, 15 Nov 2023 14:25:03 -0800 Subject: [PATCH] Make IntervalTopology(mesh) pick up ClimaComms.device() Otherwise everything is hardcoded to run on CPU --- src/Topologies/interval.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Topologies/interval.jl b/src/Topologies/interval.jl index bd571e8236..ab0177aea0 100644 --- a/src/Topologies/interval.jl +++ b/src/Topologies/interval.jl @@ -43,7 +43,7 @@ function IntervalTopology( IntervalTopology(context, mesh, boundaries) end IntervalTopology(mesh::Meshes.IntervalMesh) = IntervalTopology( - ClimaComms.SingletonCommsContext(ClimaComms.CPUSingleThreaded()), + ClimaComms.SingletonCommsContext(ClimaComms.device()), mesh, )