Skip to content

Commit

Permalink
calculate the default number of nodes based on the system (processes …
Browse files Browse the repository at this point in the history
…per node) (#64)
  • Loading branch information
sdc50 authored Oct 25, 2024
1 parent 7617026 commit 9fedfe3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uit/gui_tools/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class PbsScriptInputs(param.Parameterized):
notify_end = param.Boolean(default=True, label='when job ends', precedence=9.2)

SHOW_USAGE_TABLE_MAX_WIDTH = 1030
DEFAULT_PROCESSES_PER_JOB = 500
wall_time_maxes = None
node_maxes = None

Expand All @@ -57,10 +58,10 @@ def update_hpc_connection_dependent_defaults(self):
self.param.queue.objects = self.uit_client.get_queues()
self.queue = self.get_default(self.queue, self.param.queue.objects)
self.node_maxes = self.uit_client.get_node_maxes(self.param.queue.objects, queues_stats)
self.max_nodes = self.node_maxes[self.queue]#NODE_TYPES[self.uit_client.system][self.node_type]
self.max_nodes = self.node_maxes[self.queue]
self.wall_time_maxes = self.uit_client.get_wall_time_maxes(self.param.queue.objects, queues_stats)
self.max_wall_time = self.wall_time_maxes[self.queue]
#self.alert = pn.pane.Alert(visible=False)
self.nodes = round(self.DEFAULT_PROCESSES_PER_JOB / self.processes_per_node)

@param.depends('queue', watch=True)
def update_queue_depended_bounds(self):
Expand Down

0 comments on commit 9fedfe3

Please sign in to comment.