forked from NGIOproject/old_GekkoFS_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile_gkfs_0.6slurm.sh
executable file
·46 lines (39 loc) · 1.28 KB
/
compile_gkfs_0.6slurm.sh
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
39
40
41
42
43
44
45
#!/bin/bash
set -e
source paths_shared_0.6slurm.sh
BUILD_PATH=${GKFS_MN_BUILD_PATH?}
DEPS_PATH=${GKFS_MN_DEPS_INSTALL_PATH:?}
INSTALL_PATH=${GKFS_MN_INSTALL_PATH:?}
SRC=${GKFS_MN_SRC}/..
module load gnu8
module load libfabric/1.8.0
export LD_LIBRARY_PATH=/home/software/libfabric/1.8.0/lib:/home/software/psm2/11.2.77/usr/lib64:$LD_LIBRARY_PATH
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set +e
#source ${DIR:?}/set_cmake.sh
set -e
export BOOST_LIB="/home/nx01/shared/GekkoFS_BSC/0.6slurm/lib"
export BOOST_INCLUDEDIR="/home/nx01/shared/GekkoFS_BSC/0.6slurm/include"
mkdir -p ${BUILD_PATH:?} && cd ${BUILD_PATH:?}
export CXX=/opt/ohpc/pub/compiler/gcc/8.3.0/bin/g++
export CC=/opt/ohpc/pub/compiler/gcc/8.3.0/bin/gcc
cmake3 \
-Wdev \
-Wdeprecated \
-DCMAKE_PREFIX_PATH:STRING="${DEPS_PATH:?};${CMAKE_PREFIX_PATH}" \
-DBoost_DEBUG:BOOL=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DRPC_PROTOCOL="ofi+tcp" \
-DUSE_BMI:BOOL=OFF \
-DUSE_SHM:BOOL=OFF \
-DCMAKE_CXX_FLAGS_DEBUG="-ggdb3" \
-DCMAKE_CXX_FLAGS_RELEASE="-O3" \
-DCMAKE_EXE_LINKER_FLAGS="" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PATH:?} \
-DSYMLINK_SUPPORT:BOOL=OFF \
${SRC:?}
#-DUSE_OFI_TCP:BOOL=OFF \
#time make
time make -j$(nproc)
make install