Skip to content
Snippets Groups Projects
Commit 032608c4 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Using common_bench

	modified:   .gitlab-ci.yml
parent af5f691e
No related branches found
No related tags found
1 merge request!27Resolve "Factorize common benchmark code."
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
default:
before_script:
- git clone https://eicweb.phy.anl.gov/EIC/detectors/topside.git
&& mkdir topside/build
&& cd topside/build
&& cmake ../. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/usr/local
&& make -j20 install
&& cd ../..
|| exit 1
artifacts:
expire_in: 72 hours
paths:
- .local/detector
- .local/lib
- .local/bin
- .local/include
- .local/share
- results
- config
......@@ -26,54 +21,42 @@ stages:
- collect
- deploy
env:
common:setup:
stage: config
script:
- ./util/print_env.sh
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}/sim_output
- git clone https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup
- source setup/bin/env.sh && ./setup/bin/install_common.sh
detector:
common:detector:
stage: initialize
needs: ["env"]
timeout: 1 hours
cache:
key:
files:
- options/env.sh
- util/build_detector.sh
prefix: "$CI_COMMIT_REF_SLUG"
paths:
- .local/detector
- .local/lib
needs: ["common:setup"]
script:
- ./util/print_env.sh
- ./util/build_detector.sh
- ./util/print_env.sh
- source .local/bin/env.sh && build_detector.sh
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}
- mkdir -p /scratch/${CI_PROJECT_NAME}_${CI_PIPELINE_ID}/sim_output
- mkdir -p results
- mkdir -p config
- print_env.sh
get_data:
stage: data_init
needs: ["detector"]
needs: ["common:detector"]
script:
- source options/env.sh
- ln -s ${LOCAL_DATA_PATH}/sim_output sim_output
- ln -s ${LOCAL_DATA_PATH}/datasets/data data
- source .local/bin/env.sh
- ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
- ln -s "${LOCAL_DATA_PATH}/datasets/data" data
- cd ${LOCAL_DATA_PATH} && git clone --depth=1 https://eicweb.phy.anl.gov/EIC/datasets.git datasets
.det_benchmark:
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
needs:
- ["get_data"]
- ["get_data","common:detector"]
before_script:
- source options/env.sh
- ln -s ${LOCAL_DATA_PATH}/sim_output sim_output
- ln -s ${LOCAL_DATA_PATH}/datasets/data data
artifacts:
expire_in: 20 weeks
paths:
- results/
- source .local/bin/env.sh
- ls -lrtha
- ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
- ln -s "${LOCAL_DATA_PATH}/datasets/data" data
- ls -lrtha
include:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment