Skip to content

Commit

Permalink
Merge pull request #4479 from sjsprecious/gpu_bug_fix
Browse files Browse the repository at this point in the history
Set GPU variables correctly for CESM
  • Loading branch information
jedwards4b authored Aug 28, 2023
2 parents b4ed025 + b6826d8 commit c6a6971
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 c6a6971

Please sign in to comment.