diff --git a/utils/build.sh b/utils/build.sh new file mode 100755 index 00000000..2cdea6a9 --- /dev/null +++ b/utils/build.sh @@ -0,0 +1,11 @@ +#!/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`