Skip to content

Commit

Permalink
use cpu device
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Mar 19, 2024
1 parent a3cdf37 commit 5896f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/AMIP/user_io/debug_plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function debug(cs_fields::NamedTuple, dir, cs_fields_ref = nothing)
:z0m_S,
)
all_plots = []
cpu_comms_ctx = ClimaComms.SingletonCommsContext()
cpu_comms_ctx = ClimaComms.SingletonCommsContext(ClimaComms.CPUSingleThreaded())

for field_name in field_names
field = getproperty(cs_fields, field_name)
Expand Down Expand Up @@ -128,7 +128,7 @@ function debug(sim::ComponentModelSimulation, dir)

@show name(sim)
field_names = plot_field_names(sim)
cpu_comms_ctx = ClimaComms.SingletonCommsContext()
cpu_comms_ctx = ClimaComms.SingletonCommsContext(ClimaComms.CPUSingleThreaded())

all_plots = []
for field_name in field_names
Expand Down

0 comments on commit 5896f4f

Please sign in to comment.