mirror of
https://github.com/JHUAPL/kaiju.git
synced 2026-01-09 15:17:56 -05:00
55 lines
1.8 KiB
Bash
55 lines
1.8 KiB
Bash
#!/bin/bash
|
|
|
|
#PBS -N postProcessComp
|
|
#PBS -A {{ account }}
|
|
#PBS -q casper@casper-pbs
|
|
#PBS -l job_priority={{ job_priority }}
|
|
#PBS -l select=1:ncpus=9:ompthreads=9:mem=96GB
|
|
#PBS -l walltime=1:00:00
|
|
#PBS -j oe
|
|
#PBS -m abe
|
|
|
|
echo "Job $PBS_JOBID started at `date` on `hostname` in directory `pwd`."
|
|
|
|
echo 'Loading python environment.'
|
|
mage_test_root='{{ mage_test_root }}'
|
|
export CONDARC="${mage_test_root}/.condarc"
|
|
export CONDA_ENVS_PATH="${mage_test_root}/.conda"
|
|
mage_miniconda3="${mage_test_root}/miniconda3"
|
|
mage_conda="${mage_miniconda3}/bin/conda"
|
|
__conda_setup="$($mage_conda 'shell.bash' 'hook' 2> /dev/null)"
|
|
if [ $? -eq 0 ]; then
|
|
eval "$__conda_setup"
|
|
else
|
|
if [ -f "$mage_miniconda3/etc/profile.d/conda.sh" ]; then
|
|
. "$mage_miniconda3/etc/profile.d/conda.sh"
|
|
else
|
|
export PATH="$mage_miniconda3/bin:$PATH"
|
|
fi
|
|
fi
|
|
unset __conda_setup
|
|
conda activate kaiju-3.8-testing
|
|
|
|
#echo 'Setting up MAGE environment.'
|
|
source {{ kaijuhome }}/scripts/setupEnvironment.sh
|
|
source {{ kaipyhome }}/kaipy/scripts/setupEnvironment.sh
|
|
|
|
echo 'Setting environment variables.'
|
|
export TMPDIR={{ tmpdir }}
|
|
export SLACK_BOT_TOKEN={{ slack_bot_token }}
|
|
export OMP_NUM_THREADS=9
|
|
#export MPI_TYPE_DEPTH=32
|
|
export KMP_STACKSIZE=128M
|
|
export MAGE_TEST_ROOT=$mage_test_root
|
|
export MAGE_TEST_SET_ROOT={{ mage_test_set_root }}
|
|
export BRANCH_OR_COMMIT={{ branch_or_commit }}
|
|
export JOBNAME={{ job_name }}
|
|
echo 'The active environment variables are:'
|
|
printenv
|
|
|
|
# Process the data and generate the output video
|
|
python $KAIPYHOME/kaipy/scripts/quicklook/gamerrVid.py -d1 {{ case1F }} -id1 {{ case1id }} -d2 {{ case2F }} -id2 {{ case2id }} -o {{ frameFolder }}/{{ caseName }} -ts {{ ts }} -te {{ te }} -dt {{ dt }} -Nth 9 >& {{ caseName }}.out
|
|
|
|
echo "Job $PBS_JOBID ended at `date` on `hostname` in directory `pwd`."
|
|
|