Files
DRAMSys/utils/build.sh
Éder F. Zulian f6032f883d Build utility
2018-10-04 08:59:17 +02:00

12 lines
283 B
Bash
Executable File

#!/bin/bash
if [[ $(hostname -s) =~ ^head[0-9]+$ ]] || [[ $(hostname -s) =~ ^node[0-9]+$ ]]; then
# Elwetritsch cluster - heads or nodes
module load qt/5.5
fi
cd ..
rm -rf build
mkdir build
cd build
qmake ../DRAMSys/DRAMSys.pro
make -j `cat /proc/cpuinfo | grep processor | wc -l`