Skip to content

Commit 6d3d624

Browse files
authored
Merge pull request #54 from OpenGATE/geant11
Update to c++17 and root
2 parents 83e12f1 + 2020e05 commit 6d3d624

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/Dockerfile_gatebenchmarks

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN yum install -y make \
2222
centos-release-scl \
2323
python3-devel \
2424
which \
25+
openssl-devel \
26+
patch \
2527
&& yum install -y devtoolset-7-gcc-c++
2628

2729
#create folder and install cmake
@@ -38,9 +40,10 @@ RUN mkdir software/root-cern \
3840
&& source /etc/mybashrc \
3941
&& cd software/root-cern \
4042
&& mkdir src bin install \
41-
&& git clone --branch v6-19-02 https://github.com/root-project/root.git src \
43+
&& git clone --branch v6-24-06 https://github.com/root-project/root.git src \
4244
&& cd bin \
43-
&& cmake ../src/ -Dpython=OFF \
45+
&& cmake ../src/ -DCMAKE_CXX_STANDARD=17 \
46+
-Dpython=OFF \
4447
-DCMAKE_INSTALL_PREFIX=/software/root-cern/install \
4548
&& make -j16 install \
4649
&& cd .. \
@@ -53,7 +56,8 @@ RUN mkdir software/geant4 \
5356
&& mkdir src bin install data \
5457
&& git clone --branch v10.7.0 https://github.com/Geant4/geant4.git src \
5558
&& cd bin \
56-
&& cmake ../src/ -DGEANT4_INSTALL_DATA=OFF \
59+
&& cmake ../src/ -DCMAKE_CXX_FLAGS="-std=c++17" \
60+
-DGEANT4_INSTALL_DATA=OFF \
5761
-DGEANT4_INSTALL_DATADIR=/software/geant4/data \
5862
-DGEANT4_USE_QT=ON \
5963
-DCMAKE_INSTALL_PREFIX=/software/geant4/install \

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ jobs:
6666
- name: Run the test in docker
6767
run: |
6868
ls $GITHUB_WORKSPACE
69-
docker run --rm -e "TEST=${{ matrix.strategy_name }}" -v $GITHUB_WORKSPACE:/home tbaudier/gatebenchmarks:9.1 /home/.github/workflows/runTest.sh
69+
docker run --rm -e "TEST=${{ matrix.strategy_name }}" -v $GITHUB_WORKSPACE:/home tbaudier/gatebenchmarks:9.2 /home/.github/workflows/runTest.sh
7070

.github/workflows/runTest.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ if [ "$compile_torch" = true ] ; then
3636
cd /software
3737
mkdir torch
3838
cd torch
39-
wget https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.4.0%2Bcpu.zip
40-
unzip libtorch-shared-with-deps-1.4.0+cpu.zip
41-
rm -rf libtorch-shared-with-deps-1.4.0+cpu.zip
39+
wget https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.10.1%2Bcpu.zip
40+
unzip libtorch-shared-with-deps-1.10.1+cpu.zip
41+
rm -rf libtorch-shared-with-deps-1.10.1+cpu.zip
4242
export GATE_USE_TORCH=ON
4343
export TORCH_DIR=/software/torch/libtorch/share/cmake/Torch
4444
fi

0 commit comments

Comments
 (0)