Skip to content

Commit

Permalink
Make IntervalTopology(mesh) pick up ClimaComms.device()
Browse files Browse the repository at this point in the history
Otherwise everything is hardcoded to run on CPU
  • Loading branch information
Sbozzolo committed Nov 15, 2023
1 parent 60ad543 commit 093937f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Topologies/interval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit 093937f

Please sign in to comment.