Add run script
This commit is contained in:
parent
21e8fd82ec
commit
42be9de326
1 changed files with 34 additions and 0 deletions
34
scripts/run_borg.sh
Normal file
34
scripts/run_borg.sh
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
module purge
|
||||||
|
module restore myborg
|
||||||
|
module load cuda/12.3
|
||||||
|
|
||||||
|
# Environment
|
||||||
|
source /home/bartlett/.bashrc
|
||||||
|
source /home/bartlett/anaconda3/etc/profile.d/conda.sh
|
||||||
|
conda deactivate
|
||||||
|
conda activate borg_env
|
||||||
|
|
||||||
|
# Kill job if there are any errors
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Path variables
|
||||||
|
BORG=/home/bartlett/anaconda3/envs/borg_env/bin/hades_python
|
||||||
|
RUN_DIR=/data101/bartlett/mgborg_emulator/basic_run
|
||||||
|
|
||||||
|
mkdir -p $RUN_DIR
|
||||||
|
cd $RUN_DIR
|
||||||
|
|
||||||
|
# Create a custom file descriptor (3) for tracing
|
||||||
|
exec 3>$RUN_DIR/trace_file.txt
|
||||||
|
|
||||||
|
# Redirect trace output to the custom file descriptor
|
||||||
|
BASH_XTRACEFD="3"
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# Just ICs
|
||||||
|
INI_FILE=/home/bartlett/mgborg_emulator/conf/basic_ini.ini
|
||||||
|
cp $INI_FILE basic_ini.ini
|
||||||
|
$BORG INIT basic_ini.ini
|
Loading…
Reference in a new issue