forked from MRChemSoft/mrchem-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·33 lines (25 loc) · 705 Bytes
/
build.sh
File metadata and controls
executable file
·33 lines (25 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash -l
mrchem_version=$1
echo "-- Setting up environment"
source modules.env
src_dir="mrchem_src"
build_dir="mrchem_build"
install_dir="mrchem_install"
setup_string="--prefix="../${install_dir}" --omp --mpi --cxx=${mpi_cxx} ../${build_dir}"
echo ""
echo "-- Downloading MRChem"
git clone https://github.com/MRChemSoft/mrchem.git ${src_dir} || exit 1
echo ""
echo "-- Checking out" ${mrchem_version}
cd ${src_dir} || exit 1
git checkout ${mrchem_version} || exit 1
echo ""
echo "-- Configuring" ${setup_string}
./setup ${setup_string} || exit 1
echo ""
echo "-- Building"
cd ../${build_dir} || exit 1
make || exit 1
ctest -L unit --output-on-failure || exit 1
make install || exit 1
exit 0