-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_makefiles_cluster.sh
More file actions
executable file
·38 lines (31 loc) · 1.06 KB
/
make_makefiles_cluster.sh
File metadata and controls
executable file
·38 lines (31 loc) · 1.06 KB
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
34
35
36
37
38
#!/bin/bash
CMAKE_DIR=/home/soft/cmake-3.22.1/bin
function make_directories_compiler() {
local compiler=$1
local suffix=""
local CXX_compiler=""
local C_compiler=""
if [ ! -z $compiler ]; then
suffix="-$compiler"
CXX_compiler="-DCMAKE_CXX_COMPILER=/home/soft/gcc-$compiler/bin/g++"
C_compiler="-DCMAKE_C_COMPILER=/home/soft/gcc-$compiler/bin/gcc"
else
CXX_compiler="-DCMAKE_CXX_COMPILER=/home/soft/gcc-11.4.0/bin/g++"
C_compiler="-DCMAKE_C_COMPILER=/home/soft/gcc-11.4.0/bin/gcc"
fi
LAL="-DLAL_DEV_DIR=$HOME/LAL-dev/latest/linear-arrangement-library"
NAUTY="-DNAUTY_DIR=$HOME/installations/nauty/2_8_8"
mkdir -p build-debug$suffix
cd build-debug$suffix
$CMAKE_DIR/cmake $CXX_compiler $C_compiler -DCMAKE_BUILD_TYPE=Debug $LAL $NAUTY ../src
cd ..
mkdir -p build-release$suffix
cd build-release$suffix
$CMAKE_DIR/cmake $CXX_compiler $C_compiler -DCMAKE_BUILD_TYPE=Release $LAL $NAUTY ../src
cd ..
}
make_directories_compiler
make_directories_compiler 11.3
make_directories_compiler 11.4.0
make_directories_compiler 12.3
make_directories_compiler 13.1