-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_qmcpack-cpuc.sh
executable file
·52 lines (45 loc) · 1.29 KB
/
build_qmcpack-cpuc.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
46
47
48
49
50
51
52
#!/usr/bin/env bash
export mode=cpuc
export QMC_SOURCE_DIR=${HOME}/qmcpack-3.11.0
bdir=${QMC_SOURCE_DIR}/build_$mode
# load modules
module swap PrgEnv-cray PrgEnv-gnu
# module swap PrgEnv-cray PrgEnv-intel
module load daint-gpu
module load EasyBuild-custom/cscs
module load cray-hdf5-parallel
module load CMake/3.14.5
module load PyExtensions/python3-CrayGNU-20.11
module load Boost/1.75.0-CrayGNU-20.11
# install libxml2 for CrayGNU
eb libxml2-2.9.7-CrayGNU-20.11.eb -r
module load libxml2/2.9.7-CrayGNU-20.11
module load cudatoolkit
module load cray-fftw
module load intel
# check what is loaded
module list
(
# clean build directory
rm -rf ${bdir}
# create build directory
mkdir -p ${bdir}
cd ${bdir}
export CRAY_LINK_TYPE=dynamic
# qmcpack wants to set this, but it breaks FindCUDA.cmake:
# -DCMAKE_SYSTEM_NAME=CrayLinuxEnvironment
# install in default dir, into build
# -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
CXX=CC cmake \
-DENABLE_CUDA=Off \
-DQMC_MPI=On \
-DQMC_OMP=On \
-DQMC_COMPLEX=1 \
-DENABLE_PHDF5=On \
${QMC_SOURCE_DIR}
make -j8
make install
)
# set permissions
# export INSTALL_PREIFX=/apps/daint/SSL/simonpi/qmcpack-gpuc
# find -type d /apps/daint/SSL/simonpi -exec chmod a+rx {} \;