Skip to content

Commit 9a8d7e9

Browse files
committed
Further refactoring (extract run-convert2h5)
1 parent 2e83faa commit 9a8d7e9

File tree

9 files changed

+14
-20
lines changed

9 files changed

+14
-20
lines changed
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ if [[ "$SHIFTER_IMAGEREQUEST" != "$ARCUBE_CONTAINER" ]]; then
1111
exit
1212
fi
1313

14-
source /environment
14+
source /environment # from the container
1515

1616
rm -rf convert.venv
1717
python3 -m venv convert.venv
1818
source convert.venv/bin/activate
1919

20-
pip3 install -r pip/requirements.convert2h5.sh
20+
pip3 install -r requirements.txt
File renamed without changes.

run-larnd-sim/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/larnd-sim
2-
/venv
3-
/liblockfile
42
/logs
53
/input
64
/output

run-larnd-sim/install_larnd_sim.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
module load cudatoolkit # 11.7
44
module load python # 3.9-anaconda-2021.11
55

6-
rm -rf larnd-sim venv
6+
rm -rf larnd-sim larnd.venv
77

8-
python -m venv venv/
9-
source venv/bin/activate
8+
python -m venv larnd.venv/
9+
source larnd.venv/bin/activate
1010

1111
# Might need to remove larnd-sim from this requirements file
12-
pip install -r pip/requirements.larnd-sim.txt
13-
exit
12+
pip install -r requirements.txt
13+
# exit
1414

1515
# If installation via requirements.txt doesn't work, the below should rebuild
1616
# the venv. Ideally, install everything *except* larnd-sim using the
@@ -23,7 +23,8 @@ pip install -U pip wheel setuptools
2323
cd larnd-sim || exit
2424
# temperarily* checkout the feature branch for spill simulation
2525
# *soon to be merged into develop
26-
git checkout feature_spillSim
26+
# git checkout feature_spillSim
27+
git checkout bfeaf9c2388beca3e26efb9f01a81a5e14720270
2728
# HACK: Replace cupy with cupy-cuda11x
2829
mv setup.py setup.py.orig
2930
sed 's/cupy/cupy-cuda11x/' setup.py.orig > setup.py

run-larnd-sim/load_larnd_sim.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.

run-larnd-sim/run_larnd_sim.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/usr/bin/env bash
22

3+
module load cudatoolkit # 11.7
4+
module load python # 3.9-anaconda-2021.11
5+
6+
source larnd.venv/bin/activate
7+
38
if [[ "$NERSC_HOST" == "cori" ]]; then
49
export HDF5_USE_FILE_LOCKING=FALSE
510
fi
611

7-
# source venv/bin/activate
8-
source load_larnd_sim.sh
9-
1012
globalIdx=$ARCUBE_INDEX
1113
echo "globalIdx is $globalIdx"
1214

0 commit comments

Comments
 (0)