From b6826d8927cf2c9326f8f80970226c1ca2af3340 Mon Sep 17 00:00:00 2001 From: Jian Sun Date: Mon, 28 Aug 2023 10:22:08 -0600 Subject: [PATCH] set GPU variables correctly for CESM only --- CIME/case/case.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CIME/case/case.py b/CIME/case/case.py index 0b0f9078660..6de8bb2a217 100644 --- a/CIME/case/case.py +++ b/CIME/case/case.py @@ -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()