From 87869547d0adfb78edac6ab5d7655e40fbeeea76 Mon Sep 17 00:00:00 2001 From: Congqiao Li Date: Mon, 29 Jun 2020 03:43:31 +0200 Subject: [PATCH] simplify the runcmsgrid patch for compatibility purpose (106X) --- .../runcmsgrid_LO_support_multithread.patch | 29 ++++--------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/GeneratorInterface/LHEInterface/data/runcmsgrid_LO_support_multithread.patch b/GeneratorInterface/LHEInterface/data/runcmsgrid_LO_support_multithread.patch index 67c1692237c4d..cd2b72ead3371 100644 --- a/GeneratorInterface/LHEInterface/data/runcmsgrid_LO_support_multithread.patch +++ b/GeneratorInterface/LHEInterface/data/runcmsgrid_LO_support_multithread.patch @@ -1,9 +1,6 @@ --- runcmsgrid.sh 2020-05-01 03:27:51.000000001 +0200 +++ runcmsgrid.sh 2020-05-02 10:46:24.000000001 +0200 -@@ -43,6 +43,30 @@ - fi - cd $LHEWORKDIR - +@@ -48,1 +48,25 @@ +# test if the current file system allow setting folder permission to read-only. +succ_setreadonly=true +mkdir testpermit @@ -24,17 +21,12 @@ +fi + +if fs listacl &>/dev/null; then -+ fs sa -dir process/madevent -acl ${USER} all ++ fs sa -dir madevent -acl ${USER} all +else -+ chmod +w process/madevent ++ chmod +w madevent +fi - cd process - #make sure lhapdf points to local cmssw installation area -@@ -56,6 +80,18 @@ - echo "nb_core = $ncpu" >> ./madevent/Cards/me5_configuration.txt - #fi - +@@ -59,3 +83,15 @@ +function event_generate_per_thread () { + +# number of event to generate and seed in this thread @@ -50,19 +42,10 @@ ######################################### # FORCE IT TO PRODUCE EXACTLY THE REQUIRED NUMBER OF EVENTS ######################################### -@@ -95,7 +131,7 @@ - # run mg5_amc - echo "produced_lhe " $produced_lhe "nevt " $nevt "submitting_event " $submitting_event " remaining_event " $remaining_event - echo run.sh $submitting_event $run_random_seed +@@ -98,1 +134,1 @@ - ./run.sh $submitting_event $run_random_seed + ../process/run.sh $submitting_event $run_random_seed - - # compute number of events produced in the iteration - produced_lhe=$(($produced_lhe+`zgrep \