Skip to content

Commit

Permalink
set GPU variables correctly for CESM only
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsprecious committed Aug 28, 2023
1 parent b4ed025 commit b6826d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CIME/case/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -1587,9 +1587,9 @@ def configure(
)

# Set these two GPU XML variables here to overwrite the default values
if gpu_type:
# Only set them for "cesm" model
if self._cime_model == "cesm":
self.set_value("GPU_TYPE", str(gpu_type).lower())
if gpu_offload:
self.set_value("GPU_OFFLOAD", str(gpu_offload).lower())

self.initialize_derived_attributes()
Expand Down

0 comments on commit b6826d8

Please sign in to comment.