Skip to content

Commit a601021

Browse files
committed
Default to ROOT initialiation speedup
1 parent 1d9b272 commit a601021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
parser.add_argument('--checkpoint-on-failure', help=argparse.SUPPRESS) # debug option making a debug-tarball and sending to specified address
5353
# argument is alien-path
5454
parser.add_argument('--retry-on-failure', help=argparse.SUPPRESS, default=0) # number of times a failing task is retried
55-
parser.add_argument('--rootinit-speedup', help=argparse.SUPPRESS, action='store_true') # enable init of ROOT environment vars to speedup init/startup
55+
parser.add_argument('--no-rootinit-speedup', help=argparse.SUPPRESS, action='store_true') # disable init of ROOT environment vars to speedup init/startup
5656
parser.add_argument('--action-logfile', help='Logfilename for action logs. If none given, pipeline_action_#PID.log will be used')
5757
parser.add_argument('--metric-logfile', help='Logfilename for metric logs. If none given, pipeline_metric_#PID.log will be used')
5858
args = parser.parse_args()
@@ -1040,7 +1040,7 @@ def speedup_ROOT_Init():
10401040
cmd='LD_DEBUG=libs LD_PRELOAD=DOESNOTEXIST ls /tmp/DOESNOTEXIST 2>&1 | grep -m 1 "system search path" | sed \'s/.*=//g\' | awk \'//{print $1}\''
10411041
proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
10421042
libpath, err = proc.communicate()
1043-
if (args.rootinit_speedup):
1043+
if not (args.no_rootinit_speedup == True):
10441044
print ("setting up ROOT system")
10451045
os.environ['ROOT_LDSYSPATH'] = libpath.decode()
10461046

@@ -1050,7 +1050,7 @@ def speedup_ROOT_Init():
10501050
incpath, err = proc.communicate()
10511051
incpaths = [ line.lstrip() for line in incpath.decode().splitlines() ]
10521052
joined = ':'.join(incpaths)
1053-
if (args.rootinit_speedup):
1053+
if not (args.no_rootinit_speedup == True):
10541054
os.environ['ROOT_CPPSYSINCL'] = joined
10551055

10561056
speedup_ROOT_Init()

0 commit comments

Comments
 (0)