Skip to content

Commit

Permalink
more pylint error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsprecious committed Oct 6, 2024
1 parent 0d7ce8b commit 40d8c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CIME/case/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def _case_setup_impl(
if max_gpus_per_node <= 0:
raise RuntimeError(f"MAX_GPUS_PER_NODE must be larger than 0 for machine={mach} and compiler={compiler} in order to configure a GPU run")
if not gpu_offload:
raise RuntimeError(f"GPU_TYPE is defined but none of the GPU OFFLOAD options are enabled")
raise RuntimeError("GPU_TYPE is defined but none of the GPU OFFLOAD options are enabled")
case.gpu_enabled = True
if ngpus_per_node >= 0:
case.set_value(
Expand All @@ -417,7 +417,7 @@ def _case_setup_impl(
else max_gpus_per_node,
)
elif gpu_offload:
raise RuntimeError(f"GPU_TYPE is not defined but at least one GPU OFFLOAD option is enabled")
raise RuntimeError("GPU_TYPE is not defined but at least one GPU OFFLOAD option is enabled")
elif ngpus_per_node and ngpus_per_node != 0:
raise RuntimeError(f"ngpus_per_node is expected to be 0 for a pure CPU run ; {ngpus_per_node} is provided instead ;")

Expand Down

0 comments on commit 40d8c5d

Please sign in to comment.