Skip to content

Commit

Permalink
another none value comparison fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Aug 16, 2023
1 parent 780a209 commit 128e03e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CIME/XML/env_mach_pes.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ def get_tasks_per_node(self, total_tasks, max_thread_count):
else:
tasks_per_node = self.get_value("MAX_MPITASKS_PER_NODE")
else:
if self.get_value("NGPUS_PER_NODE") > 0:
ngpus_per_node = self.get_value("NGPUS_PER_NODE")
if ngpus_per_node and ngpus_per_node > 0:
tasks_per_node = min(
self.get_value("MAX_TASKS_PER_NODE") // max_thread_count,
self.get_value("MAX_CPUTASKS_PER_GPU_NODE"),
Expand Down

0 comments on commit 128e03e

Please sign in to comment.