Commit dbf3e73f authored by Chad Hanna's avatar Chad Hanna
Browse files

lalapps_cbc_sbank_pipe.py: add optional accounting-user-group to configuration...

lalapps_cbc_sbank_pipe.py: add optional accounting-user-group to configuration file and parser in order to use shared accounts on the LDG
parent 277889e6
Pipeline #28552 passed with stages
in 28 minutes and 51 seconds
......@@ -90,6 +90,8 @@ class SBankJob(inspiral.InspiralAnalysisJob):
self.set_stderr_file('logs/'+tag_base+'-$(macroid)-$(process).err')
if cp.has_section("accounting"):
self.add_condor_cmd('accounting_group', cp.get("accounting", "accounting-group"))
if cp.has_option("accounting", "accounting-group-user"):
self.add_condor_cmd('accounting_group_user', cp.get("accounting", "accounting-group-user"))
self.add_condor_cmd('getenv','True')
self.add_condor_cmd('request_memory', '3999')
if "OMP_NUM_THREADS" in os.environ:
......@@ -130,6 +132,8 @@ class SBankChooseMchirpBoundariesJob(inspiral.InspiralAnalysisJob):
self.set_stderr_file('logs/'+tag_base+'-$(macroid)-$(process).err')
if cp.has_section("accounting"):
self.add_condor_cmd('accounting_group', cp.get("accounting", "accounting-group"))
if cp.has_option("accounting", "accounting-group-user"):
self.add_condor_cmd('accounting_group_user', cp.get("accounting", "accounting-group-user"))
self.add_condor_cmd('getenv','True')
......@@ -166,6 +170,8 @@ class LWAddJob(pipeline.CondorDAGJob):
self.add_condor_cmd('getenv','True')
if cp.has_section("accounting"):
self.add_condor_cmd('accounting_group', cp.get("accounting", "accounting-group"))
if cp.has_option("accounting", "accounting-group-user"):
self.add_condor_cmd('accounting_group_user', cp.get("accounting", "accounting-group-user"))
self.tag_base = tag_base
self.add_condor_cmd('environment',"KMP_LIBRARY=serial;MKL_SERIAL=yes")
self.set_sub_file(tag_base+'.sub')
......@@ -206,6 +212,8 @@ lalapps_cbc_sbank_choose_mchirp_boundaries = /home/sprivite/local/opt/master/bin
;[accounting]
;accounting-group = ???
;specifying the user is only necessary for shared accounts
;accounting-group-user = ???
[sbank]
; This section contains the parameters of the entire bank parameter
......
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