diff --git a/CIME/case/case.py b/CIME/case/case.py index 567eb223988..0b0f9078660 100644 --- a/CIME/case/case.py +++ b/CIME/case/case.py @@ -458,7 +458,10 @@ def get_values(self, item, attribute=None, resolved=True, subgroup=None): def get_value(self, item, attribute=None, resolved=True, subgroup=None): if item == "GPU_ENABLED": if not self.gpu_enabled: - if self.get_value("GPU_TYPE") != "none": + if ( + self.get_value("GPU_TYPE") != "none" + and self.get_value("NGPUS_PER_NODE") > 0 + ): self.gpu_enabled = True return "true" if self.gpu_enabled else "false"