borg_velocity/scripts/build_borg.sh
2024-08-15 17:47:43 +02:00

29 lines
No EOL
595 B
Bash
Executable file

#!/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_DIR=/home/bartlett/borg
BUILD_DIR=/data101/bartlett/build_borg/
cd $BORG_DIR
# git pull
# rm -rf $BUILD_DIR
bash build.sh --c-compiler $(which x86_64-conda_cos6-linux-gnu-gcc) --cxx-compiler $(which x86_64-conda_cos6-linux-gnu-g++) --python --hades-python --build-dir $BUILD_DIR
cd $BUILD_DIR
make -j
exit 0