borg_examples/run_example3.sh
2025-04-17 17:39:15 +02:00

27 lines
No EOL
532 B
Bash
Executable file

#!/bin/sh
# Modules
module purge
module restore myborg
module load cuda/12.6
# Environment
source /home/bartlett/.bashrc
source /home/bartlett/anaconda3/etc/profile.d/conda.sh
conda deactivate
conda activate borg_new
# Kill job if there are any errors
set -e
# Path variables
BORG=/data101/bartlett/build_borg/tools/hades_python/hades_python
RUN_DIR=/data101/bartlett/borg_examples/example3
mkdir -p $RUN_DIR
cd $RUN_DIR
INI_FILE=/home/bartlett/borg_examples/ini_example3.ini
cp $INI_FILE ini_file.ini
$BORG INIT ini_file.ini