Build utility

This commit is contained in:
Éder F. Zulian
2018-10-04 08:59:17 +02:00
parent 210d38f938
commit f6032f883d

11
utils/build.sh Executable file
View File

@@ -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`