Skip to content

Commit

Permalink
Merge pull request #228 from wguanicedew/master
Browse files Browse the repository at this point in the history
fix number of cores
  • Loading branch information
mightqxc authored May 16, 2024
2 parents a47e2c1 + 49d9840 commit 0142dd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandaharvester/harvestersubmitter/slurm_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def submit_workers(self, workspec_list):
# make logger
tmpLog = self.make_logger(baseLogger, f"workerID={workSpec.workerID}", method_name="submit_workers")
# set nCore
workSpec.nCore = self.nCore
# workSpec.nCore = self.nCore
# make batch script
batchFile = self.make_batch_script(workSpec)
# command
Expand Down Expand Up @@ -90,6 +90,8 @@ def make_placeholder_map(self, workspec):
n_core_per_node = self.nCorePerNode if self.nCorePerNode else n_core_per_node_from_queue
except AttributeError:
n_core_per_node = n_core_per_node_from_queue
if not n_core_per_node:
n_core_per_node = self.nCore

n_core_total = workspec.nCore if workspec.nCore else n_core_per_node
n_core_total_factor = n_core_total * self.nCoreFactor
Expand Down

0 comments on commit 0142dd5

Please sign in to comment.