Skip to content
Snippets Groups Projects

Build using common bench

Open Whitney Armstrong requested to merge common_build_fix into main
Files
3
+ 17
10
@@ -16,9 +16,6 @@ workflow:
@@ -16,9 +16,6 @@ workflow:
- if: '$CI_COMMIT_TAG'
- if: '$CI_COMMIT_TAG'
default:
default:
before_script:
- source .local/bin/env.sh
- ./.local/bin/print_env.sh
artifacts:
artifacts:
expire_in: 1 week
expire_in: 1 week
paths:
paths:
@@ -67,7 +64,8 @@ common:detector:
@@ -67,7 +64,8 @@ common:detector:
needs:
needs:
- common:setup
- common:setup
script:
script:
- source .local/bin/env.sh && build_detector.sh
- source .local/bin/env.sh && ./.local/bin/print_env.sh
 
- ./.local/bin/build_detector.sh
- mkdir -p results
- mkdir -p results
- mkdir -p config
- mkdir -p config
- mkdir -p doc
- mkdir -p doc
@@ -77,6 +75,7 @@ common:detector:
@@ -77,6 +75,7 @@ common:detector:
build:simple:
build:simple:
stage: build
stage: build
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- mkdir -p build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd ..
- mkdir -p build && cd build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 && make install && cd ..
- echo "Build successful."
- echo "Build successful."
@@ -86,7 +85,7 @@ build:simple:
@@ -86,7 +85,7 @@ build:simple:
tags:
tags:
- phy-scratch
- phy-scratch
before_script:
before_script:
- source .local/bin/env.sh
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- env
- env
- pip3 install psutil
- pip3 install psutil
needs:
needs:
@@ -111,6 +110,7 @@ dump_geometry:
@@ -111,6 +110,7 @@ dump_geometry:
needs:
needs:
- common:detector
- common:detector
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- echo "dumping geometry"
- echo "dumping geometry"
## DEBUG
## DEBUG
- echo "LD_LIBRARY_PATH - $LD_LIBRARY_PATH"
- echo "LD_LIBRARY_PATH - $LD_LIBRARY_PATH"
@@ -146,17 +146,18 @@ dump_geometry:
@@ -146,17 +146,18 @@ dump_geometry:
echo "https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/detector_geo_full.root?job=dump_geometry&item=default;1&opt=clipx;clipy;transp30;zoom75;ROTY290;ROTZ350;trz0;trr0;ctrl;all"
echo "https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/detector_geo_full.root?job=dump_geometry&item=default;1&opt=clipx;clipy;transp30;zoom75;ROTY290;ROTZ350;trz0;trr0;ctrl;all"
echo " - Central detector view at: "
echo " - Central detector view at: "
echo "https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/detector_geo.root?job=dump_geometry&item=default;1&opt=clipx;clipy;transp30;zoom120;ROTY320;ROTZ340;trz0;trr0;ctrl;all"
echo "https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/detector_geo.root?job=dump_geometry&item=default;1&opt=clipx;clipy;transp30;zoom120;ROTY320;ROTZ340;trz0;trr0;ctrl;all"
for xml in ${DETECTOR_PATH}/compact/subsystem_views/*.xml; do
#for xml in ${DETECTOR_PATH}/compact/subsystem_views/*.xml; do
geo_name=`basename $xml .xml`_geo.root
# geo_name=`basename $xml .xml`_geo.root
echo " - Subsystem view for `basename $xml .xml` at:"
# echo " - Subsystem view for `basename $xml .xml` at:"
echo " https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/${geo_name}?job=dump_geometry&item=default;1&opt=clipx;clipy;transp30;zoom75;ROTY320;ROTZ340;trz0;trr0;ctrl;all"
# echo " https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/${geo_name}?job=dump_geometry&item=default;1&opt=clipx;clipy;transp30;zoom75;ROTY320;ROTZ340;trz0;trr0;ctrl;all"
done
#done
detector_documentation:
detector_documentation:
stage: docs
stage: docs
needs:
needs:
- common:detector
- common:detector
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- mkdir -p doc
- mkdir -p doc
- bash bin/build_documentation | tee doc/detector.md
- bash bin/build_documentation | tee doc/detector.md
#- |
#- |
@@ -184,6 +185,7 @@ report:
@@ -184,6 +185,7 @@ report:
- dump_geometry
- dump_geometry
- dump_gdml
- dump_gdml
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- pip3 install jinja2 && ls -lrth
- pip3 install jinja2 && ls -lrth
- ./bin/make_images > doc/dawn_views.md
- ./bin/make_images > doc/dawn_views.md
- echo "Geometry viewer at https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/detector_geo_full.root?job=finalize&item=default;1&opt=clipxyz;transp30;zoom75;ROTY290;ROTZ350;trz0;trr0;ctrl;all&"
- echo "Geometry viewer at https://eic.phy.anl.gov/geoviewer/index.htm?file=https://eicweb.phy.anl.gov/EIC/detectors/DII/-/jobs/${CI_JOB_ID}/artifacts/raw/geo/detector_geo_full.root?job=finalize&item=default;1&opt=clipxyz;transp30;zoom75;ROTY290;ROTZ350;trz0;trr0;ctrl;all&"
@@ -193,6 +195,7 @@ dump_constants:
@@ -193,6 +195,7 @@ dump_constants:
needs:
needs:
- ["common:detector"]
- ["common:detector"]
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- ls -lrth ${LOCAL_PREFIX}/lib
- ls -lrth ${LOCAL_PREFIX}/lib
- ls -lrth ${DETECTOR_PATH}/
- ls -lrth ${DETECTOR_PATH}/
- ls -lrth ${DETECTOR_PATH}/compact
- ls -lrth ${DETECTOR_PATH}/compact
@@ -207,6 +210,7 @@ overlap_check_tgeo:
@@ -207,6 +210,7 @@ overlap_check_tgeo:
- ["common:detector"]
- ["common:detector"]
script:
script:
## disable fibers in ECAL for normal overlap check
## disable fibers in ECAL for normal overlap check
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- sed -i '/<fiber/,+6d' ${DETECTOR_PATH}/compact/ecal_barrel_interlayers.xml
- sed -i '/<fiber/,+6d' ${DETECTOR_PATH}/compact/ecal_barrel_interlayers.xml
- sed -i '/<fiber/,+4d' ${DETECTOR_PATH}/ip8/far_forward/ZDC_Ecal_WSciFi.xml
- sed -i '/<fiber/,+4d' ${DETECTOR_PATH}/ip8/far_forward/ZDC_Ecal_WSciFi.xml
- checkOverlaps -c ${DETECTOR_PATH}/DII.xml | tee doc/overlap_check_tgeo.out
- checkOverlaps -c ${DETECTOR_PATH}/DII.xml | tee doc/overlap_check_tgeo.out
@@ -218,6 +222,7 @@ overlap_check_geant4:full_fast:
@@ -218,6 +222,7 @@ overlap_check_geant4:full_fast:
needs:
needs:
- ["common:detector"]
- ["common:detector"]
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
## disable fibers in ECAL for normal overlap check
## disable fibers in ECAL for normal overlap check
- sed -i '/<fiber/,+6d' ${DETECTOR_PATH}/compact/ecal_barrel_interlayers.xml
- sed -i '/<fiber/,+6d' ${DETECTOR_PATH}/compact/ecal_barrel_interlayers.xml
- sed -i '/<fiber/,+4d' ${DETECTOR_PATH}/ip8/far_forward/ZDC_Ecal_WSciFi.xml
- sed -i '/<fiber/,+4d' ${DETECTOR_PATH}/ip8/far_forward/ZDC_Ecal_WSciFi.xml
@@ -245,6 +250,7 @@ dump_gdml:
@@ -245,6 +250,7 @@ dump_gdml:
needs:
needs:
- ["common:detector"]
- ["common:detector"]
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- mkdir -p geo
- mkdir -p geo
- |
- |
python scripts/convert_to_gdml.py --compact ${DETECTOR_PATH}/DII.xml --output geo/DII.gdml
python scripts/convert_to_gdml.py --compact ${DETECTOR_PATH}/DII.xml --output geo/DII.gdml
@@ -267,6 +273,7 @@ detector:config_testing:
@@ -267,6 +273,7 @@ detector:config_testing:
needs:
needs:
- ["common:detector"]
- ["common:detector"]
script:
script:
 
- source .local/bin/env.sh && ./.local/bin/print_env.sh
- checkOverlaps -o 's' -c ${DETECTOR_PATH}/DII.xml | tee doc/overlap_check.out | wc -l
- checkOverlaps -o 's' -c ${DETECTOR_PATH}/DII.xml | tee doc/overlap_check.out | wc -l
- cat doc/overlap_check.out
- cat doc/overlap_check.out
Loading