-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add preprocessing PBS example and restructure Blue Waters runni…
…ng (#7) * Add Drell-Yan preprocessing PBS script and Bash submission script * Place default virtual environment first on PATH for Shifter jobs to ensure Python works as expected - `export PATH="/usr/local/venv/bin:${PATH}"` * Restructure PBS job files by physics process for ease of file management and submission * Restructure file output directory structure on Blue Waters to be /physics-process/action. e.g.: - drell-yan/madgraph/ - drell-yan/delphes/
- Loading branch information
1 parent
fbc2a3b
commit bee6346
Showing
9 changed files
with
100 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
# Set the number of processing elements (PEs) or cores | ||
# Set the number of PEs per node | ||
#PBS -l nodes=1:ppn=8:xk | ||
|
||
# Set the wallclock time | ||
#PBS -l walltime=24:00:00 | ||
|
||
# Use shifter queue | ||
#PBS -l gres=shifter | ||
|
||
# Set the PBS_JOBNAME | ||
#PBS -N preprocessing | ||
|
||
# Set the job stdout and stderr | ||
#PBS -e "${PBS_JOBNAME}.${PBS_JOBID}.err" | ||
#PBS -o "${PBS_JOBNAME}.${PBS_JOBID}.out" | ||
|
||
# Set email notification on termination or abort | ||
#PBS -m ea | ||
#PBS -M [email protected] | ||
|
||
# Set allocation to charge | ||
#PBS -A bbdz | ||
|
||
# Ensure shifter enabled | ||
module load shifter | ||
|
||
PHYSICS_PROCESS="drell-yan" | ||
OUTPUT_BASE_PATH="/mnt/c/scratch/sciteam/${USER}/${PHYSICS_PROCESS}/${PBS_JOBNAME}" | ||
OUTPUT_PATH="${OUTPUT_BASE_PATH}/${PBS_JOBID}" | ||
mkdir -p "${OUTPUT_PATH}" | ||
|
||
# $HOME is /u/sciteam/${USER} | ||
SHIFTER_IMAGE="scailfin/delphes-python-centos:3.5.0" | ||
shifterimg pull "${SHIFTER_IMAGE}" | ||
|
||
INPUT_PATH="/mnt/c/scratch/sciteam/${USER}/${PHYSICS_PROCESS}/delphes/nevents_10e4/delphes_output.root" | ||
OUTPUT_FILE="${OUTPUT_PATH}/preprocessing_output_10e4.root" | ||
# The need to edit the contents of LD_LIBRARY_PATH is to remove NVIDIA libraries | ||
# that place versions of libOpenGL in LD_LIBRARY_PATH that conflict with the | ||
# Delphes Docker image and give a symbol lookup error. | ||
# c.f. https://bluewaters.ncsa.illinois.edu/shifter#remarks-on-running-apps | ||
# c.f. https://jira.ncsa.illinois.edu/browse/BWAPPS-7234 | ||
aprun \ | ||
--bypass-app-transfer \ | ||
--pes-per-node 1 \ | ||
--cpu-binding none \ | ||
-- shifter \ | ||
--clearenv \ | ||
--image="${SHIFTER_IMAGE}" \ | ||
--volume="${OUTPUT_BASE_PATH}":/root/data \ | ||
--volume=/mnt/a/"${HOME}":/mnt/a/"${HOME}" \ | ||
--workdir=/root/data \ | ||
-- /bin/bash -c 'export LD_LIBRARY_PATH=$(echo -e "${LD_LIBRARY_PATH//\:/\\n}" | grep -v /opt/cray/nvidia/390.46-1_1.0502.2481.1.1.gem/lib64 | tr "\n" ":") && \ | ||
export PATH="/usr/local/venv/bin:${PATH}" && \ | ||
printf "\n# printenv:\n" && printenv && printf "\n\n" && \ | ||
cd /mnt/a/'"${HOME}"'/MadGraph5-simulation-configs/preprocessing && \ | ||
bash run_preprocessing.sh '"${INPUT_PATH}"' '"${OUTPUT_FILE}" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
PROCESS_DIRECTORY="${1:-drell-yan}" | ||
qsub "${PROCESS_DIRECTORY}/delphes.pbs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
PROCESS_DIRECTORY="${1:-drell-yan}" | ||
qsub "${PROCESS_DIRECTORY}/madgraph5.pbs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
PROCESS_DIRECTORY="${1:-drell-yan}" | ||
qsub "${PROCESS_DIRECTORY}/preprocessing.pbs" |