forked from UTulsa-Research/ag_gen
28 lines
621 B
Bash
Executable File
28 lines
621 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
BUILDDIR="$PWD"
|
|
if [ "$(dnsdomainname)" = "hammer.esg.utulsa.edu" ]; then
|
|
echo "Loading Modules."
|
|
module load cmake
|
|
module load gcc
|
|
module load boost
|
|
module load openmpi
|
|
#module load mpich
|
|
module load postgresql
|
|
# Build DMTCP - in User Dir
|
|
|
|
else
|
|
cd ../src/dmtcp
|
|
# Enable multilib support
|
|
./configure --enable-m32
|
|
# Make with all procs, adjust as necessary
|
|
make -j$(nproc)
|
|
# Optional:
|
|
make check
|
|
make install
|
|
cd "${BUILDDIR}"
|
|
fi
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Debug ../ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DMPICH_IGNORE_CXX_SEEK=1
|
|
make ag_gen
|