Commit f390ae99 authored by Carl-Johan Haster's avatar Carl-Johan Haster

Merge branch 'add-omp_num_threads_lalinferencemcmc' into 'master'

added OMP env

See merge request !856
parents ec68804d 79074c40
Pipeline #69180 failed with stages
in 73 minutes and 55 seconds
......@@ -2319,6 +2319,7 @@ class EngineJob(SingularityJob,pipeline.CondorDAGJob,pipeline.AnalysisJob):
self.add_requirement('CAN_RUN_MULTICORE')
self.add_condor_cmd('+RequiresMultipleCores','True')
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)))
if self.engine=='lalinferencenest':
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