Skip to content

Commit aa31948

Browse files
rahmans1Sakib Rahmanclaude
authored
Add configurable detector version support for datasets (#11)
* Add configurable detector version support for datasets - Add DETECTOR_CONFIG and DETECTOR_VERSION environment variables - Set global defaults to epic_craterlake and main in .gitlab-ci.yml - Configure eAu BeAGLE samples to use epic_craterlake_without_zdc - Split SIDIS jobs into eAu and ep categories - Split DIS eA jobs into eAu and other nuclei categories - Export detector variables in determine_timing.sh before run.sh calls 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add workflow dispatch support for custom pipeline variables - Add workflow_dispatch inputs for image_tag, detector_config, and detector_version - Make container image tag configurable via IMAGE_TAG variable in GitLab CI - Pass workflow inputs as variables to GitLab pipeline trigger - Set sensible defaults for all configurable variables This allows manual workflow triggers with custom container images and detector configurations while maintaining backward compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add configurable container name support - Add workflow_dispatch input for container_name (default: eic_xl) - Add CONTAINER_NAME variable to GitLab CI (default: eic_xl) - Update image path to use ${CONTAINER_NAME} variable - Pass container_name from workflow to GitLab pipeline This allows switching between different container images like eic_xl and eic_ci via workflow dispatch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add configurable artifact directory structure - Add RESULTS_BASE variable combining all 4 config variables - Update all artifact paths to use ${RESULTS_BASE} - New structure: results/${CONTAINER_NAME}/${IMAGE_TAG}/${DETECTOR_CONFIG}/${DETECTOR_VERSION}/datasets/ This allows multiple configurations to be run in parallel with separate artifact directories for each combination of settings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Change default container to eic_ci Update default CONTAINER_NAME from eic_xl to eic_ci in both GitLab CI variables and GitHub workflow dispatch inputs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add debug output for detector configuration variables Add echo statements to .timings template to debug whether DETECTOR_CONFIG and DETECTOR_VERSION are being set correctly from job variables. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix RESULTS_BASE to respect job-specific variable overrides Move RESULTS_BASE calculation from global variables to runtime in each job template's script section. This ensures RESULTS_BASE is calculated using the actual DETECTOR_CONFIG and other variables after job-specific overrides are applied. Previously, RESULTS_BASE was evaluated once globally with the default DETECTOR_CONFIG value and never recalculated when jobs overrode DETECTOR_CONFIG. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add debug output in determine_timing.sh and use RESULTS_BASE for logs - Add debug echo statements to show DETECTOR_CONFIG, DETECTOR_VERSION, and RESULTS_BASE - Update logfile path to use RESULTS_BASE instead of hardcoded results/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add override support to nevents jobs and use YAML anchors for shared variables - Add DETECTOR_CONFIG_OVERRIDE and DETECTOR_VERSION_OVERRIDE support to .nevents template - Use YAML anchors to define variables once and reuse in both nevents and timings jobs - Ensures both job types write to and read from the same RESULTS_BASE path 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add NEVENTS_PER_TEST global variable with override support Add NEVENTS_PER_TEST as a global variable (default: 100) with override support via NEVENTS_PER_TEST_OVERRIDE. Also re-add EBEAM and PBEAM global variables with override support that were lost during rebase. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Replace DEBUG with INFO and print all relevant variables in nevents/timings - Add INFO logging to .nevents and .timings templates showing all variables - Replace DEBUG with INFO in determine_timing.sh - Remove redundant exports from determine_timing.sh (variables come from CI) - Print EBEAM, PBEAM, and NEVENTS_PER_TEST in addition to existing variables 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Sakib Rahman <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 298c524 commit aa31948

File tree

5 files changed

+210
-48
lines changed

5 files changed

+210
-48
lines changed

.github/workflows/mirror.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,27 @@ on:
44
delete:
55
push:
66
workflow_dispatch:
7+
inputs:
8+
container_name:
9+
description: 'Container name'
10+
required: false
11+
default: 'eic_ci'
12+
type: string
13+
image_tag:
14+
description: 'Container image tag'
15+
required: false
16+
default: 'nightly'
17+
type: string
18+
detector_config:
19+
description: 'Detector configuration'
20+
required: false
21+
default: 'epic_craterlake'
22+
type: string
23+
detector_version:
24+
description: 'Detector version'
25+
required: false
26+
default: 'main'
27+
type: string
728

829
concurrency:
930
group: mirror-${{ github.event_name }}
@@ -43,6 +64,10 @@ jobs:
4364
GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }}
4465
GITHUB_PR=${{ github.event.pull_request.number }}
4566
PIPELINE_NAME=${{ github.repository }}: ${{ github.event.pull_request.title || github.ref_name }}
67+
CONTAINER_NAME=${{ inputs.container_name || 'eic_ci' }}
68+
IMAGE_TAG=${{ inputs.image_tag || 'nightly' }}
69+
DETECTOR_CONFIG=${{ inputs.detector_config || 'epic_craterlake' }}
70+
DETECTOR_VERSION=${{ inputs.detector_version || 'main' }}
4671
- name: Set pending EICweb status
4772
if: ${{ github.event_name != 'delete' }}
4873
env:

.gitlab-ci.yml

Lines changed: 55 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_xl:nightly
1+
variables:
2+
CONTAINER_NAME: "eic_ci"
3+
IMAGE_TAG: "nightly"
4+
DETECTOR_CONFIG: "epic_craterlake"
5+
DETECTOR_VERSION: "main"
6+
EBEAM: "18"
7+
PBEAM: "275"
8+
NEVENTS_PER_TEST: "100"
9+
10+
image: eicweb.phy.anl.gov:4567/containers/eic_container/${CONTAINER_NAME}:${IMAGE_TAG}
211

312
default:
413
timeout: 3 hours
@@ -18,50 +27,74 @@ stages:
1827
.nevents:
1928
stage: nevents
2029
script:
21-
- mkdir -p $(dirname results/datasets/glob/$DATA)
22-
- grep -v "^\#" $DATA | parallel scripts/glob.sh results/datasets/glob/$DATA {}
23-
- sort -o results/datasets/glob/$DATA results/datasets/glob/$DATA
24-
- mkdir -p $(dirname results/datasets/nevents/$DATA)
25-
- grep -v "^\#" results/datasets/glob/$DATA | parallel scripts/count_events.sh results/datasets/nevents/$DATA {}
26-
- sort -o results/datasets/nevents/$DATA results/datasets/nevents/$DATA
30+
- export DETECTOR_CONFIG="${DETECTOR_CONFIG_OVERRIDE:-${DETECTOR_CONFIG}}"
31+
- export DETECTOR_VERSION="${DETECTOR_VERSION_OVERRIDE:-${DETECTOR_VERSION}}"
32+
- export RESULTS_BASE="results/${CONTAINER_NAME}/${IMAGE_TAG}/${DETECTOR_CONFIG}/${DETECTOR_VERSION}"
33+
- echo "INFO [nevents] - CONTAINER_NAME = ${CONTAINER_NAME}"
34+
- echo "INFO [nevents] - IMAGE_TAG = ${IMAGE_TAG}"
35+
- echo "INFO [nevents] - DETECTOR_CONFIG = ${DETECTOR_CONFIG}"
36+
- echo "INFO [nevents] - DETECTOR_VERSION = ${DETECTOR_VERSION}"
37+
- echo "INFO [nevents] - RESULTS_BASE = ${RESULTS_BASE}"
38+
- mkdir -p $(dirname ${RESULTS_BASE}/datasets/glob/$DATA)
39+
- grep -v "^\#" $DATA | parallel scripts/glob.sh ${RESULTS_BASE}/datasets/glob/$DATA {}
40+
- sort -o ${RESULTS_BASE}/datasets/glob/$DATA ${RESULTS_BASE}/datasets/glob/$DATA
41+
- mkdir -p $(dirname ${RESULTS_BASE}/datasets/nevents/$DATA)
42+
- grep -v "^\#" ${RESULTS_BASE}/datasets/glob/$DATA | parallel scripts/count_events.sh ${RESULTS_BASE}/datasets/nevents/$DATA {}
43+
- sort -o ${RESULTS_BASE}/datasets/nevents/$DATA ${RESULTS_BASE}/datasets/nevents/$DATA
2744
- sort -o $DATA $DATA
2845

2946
.timings:
3047
stage: timings
3148
script:
32-
- mkdir -p $(dirname results/datasets/timings/$DATA)
49+
- export DETECTOR_CONFIG="${DETECTOR_CONFIG_OVERRIDE:-${DETECTOR_CONFIG}}"
50+
- export DETECTOR_VERSION="${DETECTOR_VERSION_OVERRIDE:-${DETECTOR_VERSION}}"
51+
- export EBEAM="${EBEAM_OVERRIDE:-${EBEAM}}"
52+
- export PBEAM="${PBEAM_OVERRIDE:-${PBEAM}}"
53+
- export NEVENTS_PER_TEST="${NEVENTS_PER_TEST_OVERRIDE:-${NEVENTS_PER_TEST}}"
54+
- export RESULTS_BASE="results/${CONTAINER_NAME}/${IMAGE_TAG}/${DETECTOR_CONFIG}/${DETECTOR_VERSION}"
55+
- echo "INFO [timings] - CONTAINER_NAME = ${CONTAINER_NAME}"
56+
- echo "INFO [timings] - IMAGE_TAG = ${IMAGE_TAG}"
57+
- echo "INFO [timings] - DETECTOR_CONFIG = ${DETECTOR_CONFIG}"
58+
- echo "INFO [timings] - DETECTOR_VERSION = ${DETECTOR_VERSION}"
59+
- echo "INFO [timings] - EBEAM = ${EBEAM}"
60+
- echo "INFO [timings] - PBEAM = ${PBEAM}"
61+
- echo "INFO [timings] - NEVENTS_PER_TEST = ${NEVENTS_PER_TEST}"
62+
- echo "INFO [timings] - RESULTS_BASE = ${RESULTS_BASE}"
63+
- mkdir -p $(dirname ${RESULTS_BASE}/datasets/timings/$DATA)
3364
# Use sed '1!d1' instead of head -n 1 to avoid pipefail issues
34-
- grep -v "^\#" results/datasets/nevents/$DATA | sed '1!d' | parallel scripts/determine_timing.sh results/datasets/timings/$DATA {}
65+
- grep -v "^\#" ${RESULTS_BASE}/datasets/nevents/$DATA | sed '1!d' | parallel scripts/determine_timing.sh ${RESULTS_BASE}/datasets/timings/$DATA {}
3566
- |
36-
IFS="," read file ext nevents dt0 dt1 < results/datasets/timings/$DATA
67+
IFS="," read file ext nevents dt0 dt1 < ${RESULTS_BASE}/datasets/timings/$DATA
3768
export dt0 dt1
38-
grep -v "^\#" results/datasets/nevents/$DATA | sed '1d' | parallel scripts/determine_timing.sh results/datasets/timings/$DATA {}
39-
- sort -o results/datasets/timings/$DATA results/datasets/timings/$DATA
69+
grep -v "^\#" ${RESULTS_BASE}/datasets/nevents/$DATA | sed '1d' | parallel scripts/determine_timing.sh ${RESULTS_BASE}/datasets/timings/$DATA {}
70+
- sort -o ${RESULTS_BASE}/datasets/timings/$DATA ${RESULTS_BASE}/datasets/timings/$DATA
4071

4172
.timings_all:
4273
stage: timings
4374
script:
44-
- mkdir -p $(dirname results/datasets/timings/$DATA)
45-
- grep -v "^\#" results/datasets/nevents/$DATA | parallel scripts/determine_timing.sh results/datasets/timings/$DATA {}
46-
- sort -o results/datasets/timings/$DATA results/datasets/timings/$DATA
75+
- export RESULTS_BASE="results/${CONTAINER_NAME}/${IMAGE_TAG}/${DETECTOR_CONFIG}/${DETECTOR_VERSION}"
76+
- mkdir -p $(dirname ${RESULTS_BASE}/datasets/timings/$DATA)
77+
- grep -v "^\#" ${RESULTS_BASE}/datasets/nevents/$DATA | parallel scripts/determine_timing.sh ${RESULTS_BASE}/datasets/timings/$DATA {}
78+
- sort -o ${RESULTS_BASE}/datasets/timings/$DATA ${RESULTS_BASE}/datasets/timings/$DATA
4779

4880
.collect:
4981
stage: collect
5082
script:
83+
- export RESULTS_BASE="results/${CONTAINER_NAME}/${IMAGE_TAG}/${DETECTOR_CONFIG}/${DETECTOR_VERSION}"
5184
- rm -rf results/logs/
52-
- find results/datasets/
53-
- find results/datasets/timings/ -name "*.csv" -print0 -exec awk 'BEGIN {FS=","} {sum+=$3*$5+$4} END {print(":",sum/3600,"core-hours")}' {} \;
54-
- for d in `find results/datasets/timings/ -type d` ; do
85+
- find ${RESULTS_BASE}/datasets/
86+
- find ${RESULTS_BASE}/datasets/timings/ -name "*.csv" -print0 -exec awk 'BEGIN {FS=","} {sum+=$3*$5+$4} END {print(":",sum/3600,"core-hours")}' {} \;
87+
- for d in `find ${RESULTS_BASE}/datasets/timings/ -type d` ; do
5588
echo -n $d ;
5689
find $d -name "*.csv" -exec cat {} \; | awk 'BEGIN {FS=","} {sum+=$3*$5+$4} END {print(":",sum/3600,"core-hours")}' ;
5790
done
58-
- find results/datasets/timings/ -name "*.csv" -print0 -exec awk 'BEGIN {FS=","} {sum+=$3*$7+$6} END {print(":",sum/1048576,"GB (full)")}' {} \;
59-
- for d in `find results/datasets/timings/ -type d` ; do
91+
- find ${RESULTS_BASE}/datasets/timings/ -name "*.csv" -print0 -exec awk 'BEGIN {FS=","} {sum+=$3*$7+$6} END {print(":",sum/1048576,"GB (full)")}' {} \;
92+
- for d in `find ${RESULTS_BASE}/datasets/timings/ -type d` ; do
6093
echo -n $d ;
6194
find $d -name "*.csv" -exec cat {} \; | awk 'BEGIN {FS=","} {sum+=$3*$7+$6} END {print(":",sum/1048576,"GB (full)")}' ;
6295
done
63-
- find results/datasets/timings/ -name "*.csv" -print0 -exec awk 'BEGIN {FS=","} {sum+=$3*$9+$8} END {print(":",sum/1048576,"GB (reco)")}' {} \;
64-
- for d in `find results/datasets/timings/ -type d` ; do
96+
- find ${RESULTS_BASE}/datasets/timings/ -name "*.csv" -print0 -exec awk 'BEGIN {FS=","} {sum+=$3*$9+$8} END {print(":",sum/1048576,"GB (reco)")}' {} \;
97+
- for d in `find ${RESULTS_BASE}/datasets/timings/ -type d` ; do
6598
echo -n $d ;
6699
find $d -name "*.csv" -exec cat {} \; | awk 'BEGIN {FS=","} {sum+=$3*$9+$8} END {print(":",sum/1048576,"GB (reco)")}' ;
67100
done

DIS/eA/config.yml

Lines changed: 62 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,58 @@
1-
DIS:eA:nevents:
1+
.eAu_10x100_variables: &eAu_10x100_variables
2+
DETECTOR_CONFIG_OVERRIDE: "epic_craterlake_without_zdc"
3+
EBEAM_OVERRIDE: "10"
4+
PBEAM_OVERRIDE: "100_Au197"
5+
6+
DIS:eA:eAu:10x100:nevents:
7+
variables:
8+
<<: *eAu_10x100_variables
9+
extends: .nevents
10+
parallel:
11+
matrix:
12+
- DATA:
13+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_1to10.csv"
14+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_10to100.csv"
15+
16+
DIS:eA:eAu:10x100:timings:
17+
variables:
18+
<<: *eAu_10x100_variables
19+
extends: .timings
20+
needs:
21+
- DIS:eA:eAu:10x100:nevents
22+
parallel:
23+
matrix:
24+
- DATA:
25+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_1to10.csv"
26+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_10to100.csv"
27+
28+
.eAu_5x41_variables: &eAu_5x41_variables
29+
DETECTOR_CONFIG_OVERRIDE: "epic_craterlake_without_zdc"
30+
EBEAM_OVERRIDE: "5"
31+
PBEAM_OVERRIDE: "41_Au197"
32+
33+
DIS:eA:eAu:5x41:nevents:
34+
variables:
35+
<<: *eAu_5x41_variables
36+
extends: .nevents
37+
parallel:
38+
matrix:
39+
- DATA:
40+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_1to10.csv"
41+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_10to100.csv"
42+
43+
DIS:eA:eAu:5x41:timings:
44+
variables:
45+
<<: *eAu_5x41_variables
46+
extends: .timings
47+
needs:
48+
- DIS:eA:eAu:5x41:nevents
49+
parallel:
50+
matrix:
51+
- DATA:
52+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_1to10.csv"
53+
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_10to100.csv"
54+
55+
DIS:eA:other:nevents:
256
extends: .nevents
357
parallel:
458
matrix:
@@ -8,10 +62,6 @@ DIS:eA:nevents:
862
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eRu_en_10x115.csv"
963
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eRu_ep_10x115.csv"
1064
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eHe3_10x166.csv"
11-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_1to10.csv"
12-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_10to100.csv"
13-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_1to10.csv"
14-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_10to100.csv"
1565
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_10x166_q2_2to10.csv"
1666
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_10x166_q2_10to100.csv"
1767
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_10x166_q2_100to10000.csv"
@@ -25,10 +75,10 @@ DIS:eA:nevents:
2575
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_5x41_q2_10to100.csv"
2676
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_5x41_q2_100to10000.csv"
2777

28-
DIS:eA:timings:
78+
DIS:eA:other:timings:
2979
extends: .timings
30-
needs:
31-
- DIS:eA:nevents
80+
needs:
81+
- DIS:eA:other:nevents
3282
parallel:
3383
matrix:
3484
- DATA:
@@ -37,10 +87,6 @@ DIS:eA:timings:
3787
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eRu_en_10x115.csv"
3888
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eRu_ep_10x115.csv"
3989
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eHe3_10x166.csv"
40-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_1to10.csv"
41-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_10x100_q2_10to100.csv"
42-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_1to10.csv"
43-
- "DIS/eA/BeAGLE1.03.02-1.0_DIS_eAu_5x41_q2_10to100.csv"
4490
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_10x166_q2_2to10.csv"
4591
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_10x166_q2_10to100.csv"
4692
- "DIS/eA/BeAGLE1.03.02-1.2_DIS_eHe3_10x166_q2_100to10000.csv"
@@ -56,5 +102,7 @@ DIS:eA:timings:
56102

57103
DIS:eA:collect:
58104
extends: .collect
59-
needs:
60-
- DIS:eA:timings
105+
needs:
106+
- DIS:eA:eAu:10x100:timings
107+
- DIS:eA:eAu:5x41:timings
108+
- DIS:eA:other:timings

SIDIS/config.yml

Lines changed: 60 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,62 @@
1-
SIDIS:nevents:
1+
.eAu_10x100_variables: &eAu_10x100_variables
2+
NEVENTS_PER_TEST_OVERRIDE: 25
3+
DETECTOR_CONFIG_OVERRIDE: "epic_craterlake_without_zdc"
4+
EBEAM_OVERRIDE: "10"
5+
PBEAM_OVERRIDE: "100_Au197"
6+
7+
SIDIS:eAu:10x100:nevents:
8+
variables:
9+
<<: *eAu_10x100_variables
210
extends: .nevents
311
parallel:
412
matrix:
513
- DATA:
614
- "SIDIS/eA/BeAGLE1.03.01-2.0_D0_eAu_10x100_q2_1to10000.csv"
7-
- "SIDIS/eA/BeAGLE1.03.01-2.0_D0_eAu_5x41_q2_1to10000.csv"
815
- "SIDIS/eA/BeAGLE1.03.01-2.0_Lc_eAu_10x100_q2_1to10000.csv"
16+
17+
SIDIS:eAu:10x100:timings:
18+
variables:
19+
<<: *eAu_10x100_variables
20+
extends: .timings
21+
needs:
22+
- SIDIS:eAu:10x100:nevents
23+
parallel:
24+
matrix:
25+
- DATA:
26+
- "SIDIS/eA/BeAGLE1.03.01-2.0_D0_eAu_10x100_q2_1to10000.csv"
27+
- "SIDIS/eA/BeAGLE1.03.01-2.0_Lc_eAu_10x100_q2_1to10000.csv"
28+
29+
.eAu_5x41_variables: &eAu_5x41_variables
30+
NEVENTS_PER_TEST_OVERRIDE: 25
31+
DETECTOR_CONFIG_OVERRIDE: "epic_craterlake_without_zdc"
32+
EBEAM_OVERRIDE: "5"
33+
PBEAM_OVERRIDE: "41_Au197"
34+
35+
SIDIS:eAu:5x41:nevents:
36+
variables:
37+
<<: *eAu_5x41_variables
38+
extends: .nevents
39+
parallel:
40+
matrix:
41+
- DATA:
42+
- "SIDIS/eA/BeAGLE1.03.01-2.0_D0_eAu_5x41_q2_1to10000.csv"
43+
44+
SIDIS:eAu:5x41:timings:
45+
variables:
46+
<<: *eAu_5x41_variables
47+
extends: .timings
48+
needs:
49+
- SIDIS:eAu:5x41:nevents
50+
parallel:
51+
matrix:
52+
- DATA:
53+
- "SIDIS/eA/BeAGLE1.03.01-2.0_D0_eAu_5x41_q2_1to10000.csv"
54+
55+
SIDIS:ep:nevents:
56+
extends: .nevents
57+
parallel:
58+
matrix:
59+
- DATA:
960
- "SIDIS/ep/pythia8.306-1.2_D0_ep_5x41_q2_1to10000.csv"
1061
- "SIDIS/ep/pythia8.306-1.2_Lc_ep_10x100_q2_1to10000.csv"
1162
- "SIDIS/pythia6-eic-1.0.0_5x41_q2_0to1_ep_noradcor.csv"
@@ -18,18 +69,15 @@ SIDIS:nevents:
1869
- "SIDIS/pythia8.306-1.0_Lambda_18x275_hiAcc.csv"
1970
- "SIDIS/pythia8.306-1.0_Lambda_18x275_hiDiv.csv"
2071

21-
SIDIS:timings:
72+
SIDIS:ep:timings:
2273
extends: .timings
2374
needs:
24-
- SIDIS:nevents
75+
- SIDIS:ep:nevents
2576
variables:
26-
NEVENTS_PER_TEST: 15
77+
NEVENTS_PER_TEST_OVERRIDE: 25
2778
parallel:
2879
matrix:
2980
- DATA:
30-
- "SIDIS/eA/BeAGLE1.03.01-2.0_D0_eAu_10x100_q2_1to10000.csv"
31-
- "SIDIS/eA/BeAGLE1.03.01-2.0_D0_eAu_5x41_q2_1to10000.csv"
32-
- "SIDIS/eA/BeAGLE1.03.01-2.0_Lc_eAu_10x100_q2_1to10000.csv"
3381
- "SIDIS/ep/pythia8.306-1.2_D0_ep_5x41_q2_1to10000.csv"
3482
- "SIDIS/ep/pythia8.306-1.2_Lc_ep_10x100_q2_1to10000.csv"
3583
- "SIDIS/pythia6-eic-1.0.0_5x41_q2_0to1_ep_noradcor.csv"
@@ -42,8 +90,9 @@ SIDIS:timings:
4290
- "SIDIS/pythia8.306-1.0_Lambda_18x275_hiAcc.csv"
4391
- "SIDIS/pythia8.306-1.0_Lambda_18x275_hiDiv.csv"
4492

45-
4693
SIDIS:collect:
4794
extends: .collect
48-
needs:
49-
- SIDIS:timings
95+
needs:
96+
- SIDIS:eAu:10x100:timings
97+
- SIDIS:eAu:5x41:timings
98+
- SIDIS:ep:timings

scripts/determine_timing.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ nlines=$((2*n_events_test*n_lines_per_event))
2929
dir=$(dirname EVGEN/${file}.${ext})
3030
mkdir -p ${dir}
3131

32-
logfile=results/logs/${file}.out
32+
logfile=${RESULTS_BASE:-results}/logs/${file}.out
3333
mkdir -p $(dirname ${logfile})
3434

35+
echo "INFO [determine_timing.sh] - DETECTOR_CONFIG = ${DETECTOR_CONFIG:-epic_craterlake}"
36+
echo "INFO [determine_timing.sh] - DETECTOR_VERSION = ${DETECTOR_VERSION:-main}"
37+
echo "INFO [determine_timing.sh] - EBEAM = ${EBEAM:-18}"
38+
echo "INFO [determine_timing.sh] - PBEAM = ${PBEAM:-275}"
39+
echo "INFO [determine_timing.sh] - NEVENTS_PER_TEST = ${n_events_test}"
40+
echo "INFO [determine_timing.sh] - RESULTS_BASE = ${RESULTS_BASE:-results}"
41+
3542
# time for 1 event (first)
3643
t1=$(date +%s.%N)
3744
/opt/campaigns/hepmc3/scripts/run.sh EVGEN/${file} ${ext} 1 2>&1 | tee ${logfile}.1

0 commit comments

Comments
 (0)