You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertrfm_test.num_tasks%rfm_test.num_tasks_per_node==0, 'Number of tasks should be divisible by tasks per node'
18
+
assertrfm_test.num_tasks>=rfm_test.num_tasks_per_node>0, 'Number of tasks should be greater than tasks per node'
19
+
assertrfm_test.num_tasks_per_node<=rfm_test.current_partition.processor.num_cpus, f"A node has not enough capacity ({rfm_test.current_partition.processor.num_cpus}, {rfm_test.num_tasks_per_node})"
assertrfm_test.num_tasks_per_node<=rfm_test.current_partition.processor.num_cpus, f"A node has not enough capacity ({rfm_test.current_partition.processor.num_cpus}, {rfm_test.num_tasks_per_node})"
assertself.num_tasks%self.num_tasks_per_node==0, f"Number of tasks is not divisible by tasks per node. ( {self.num_tasks} , {self.num_tasks_per_node})"
232
-
assertself.num_tasks>0andself.num_tasks>=self.num_tasks_per_node>0, "Tasks and tasks per node should be positive."
233
-
assertself.num_tasks_per_node<=self.current_partition.processor.num_cpus, f"A node has not enough capacity ({self.current_partition.processor.num_cpus}, {self.num_tasks_per_node})"
assertself.num_tasks_per_node<=self.current_partition.processor.num_cpus, f"A node has not enough capacity ({self.current_partition.processor.num_cpus}, {self.num_tasks_per_node})"
241
-
assertself.num_tasks>0, "Number of tasks must be strictly positive"
242
-
243
-
elifresources.tasksandresources.nodes:
244
-
raiseNotImplementedError("Number of tasks and Nodes combination is not yet supported")
245
-
self.num_tasks=int(resources.tasks)
246
-
self.num_nodes=int(resources.nodes)
247
-
248
-
assertself.num_tasks>0andself.num_nodes>0, "Number of Tasks and nodes should be strictly positive."
249
-
assertself.num_nodes>=np.ceil(self.num_tasks/self.current_partition.processor.num_cpus), f"Cannot accomodate {self.num_tasks} tasks in {self.num_nodes} nodes"
0 commit comments