Commit 16735a5a authored by Vivien Raymond's avatar Vivien Raymond Committed by Adam Mercer

added OMP env

(cherry picked from commit 79074c40)
parent 2226f234
...@@ -2359,6 +2359,7 @@ class EngineJob(SingularityJob,pipeline.CondorDAGJob,pipeline.AnalysisJob): ...@@ -2359,6 +2359,7 @@ class EngineJob(SingularityJob,pipeline.CondorDAGJob,pipeline.AnalysisJob):
self.add_requirement('CAN_RUN_MULTICORE') self.add_requirement('CAN_RUN_MULTICORE')
self.add_condor_cmd('+RequiresMultipleCores','True') self.add_condor_cmd('+RequiresMultipleCores','True')
self.add_condor_cmd('request_cpus',self.machine_count) self.add_condor_cmd('request_cpus',self.machine_count)
self.add_condor_cmd('environment','OMP_NUM_THREADS='+str(int(ceil(int(self.machine_count)/int(self.mpi_task_count)))))
self.add_condor_cmd('request_memory',str(float(self.machine_count)*float(self.machine_memory))) self.add_condor_cmd('request_memory',str(float(self.machine_count)*float(self.machine_memory)))
if self.engine=='lalinferencenest': if self.engine=='lalinferencenest':
self.add_condor_cmd('request_memory','4000') # 4GB RAM for high SNR BNS self.add_condor_cmd('request_memory','4000') # 4GB RAM for high SNR BNS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment