-
Notifications
You must be signed in to change notification settings - Fork 21
/
cmake_build_script_gadi-intel.sh
executable file
·51 lines (39 loc) · 1.68 KB
/
cmake_build_script_gadi-intel.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
#!/bin/sh
module load intel-compiler-llvm/2024.2.1
module load cmake/3.21.4
module load fftw3/3.3.8
module load netcdf/4.7.1
module load gdal/3.0.2
module load openmpi/4.1.4
module load petsc/3.17.4
module list
# Add the PETSc pkg-config path to the pkg-config search path
export PKG_CONFIG_PATH=$PETSC_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
# pkg-config for PETSc seems non-standard on gadi so add the ompi/compiler specific library directory that contains the library file libpetsc.so
export PETSC_LIBRARY_DIR=$PETSC_DIR/lib/ompi3/Intel
# INSTALL_DIR is the directory where the built package will be installed
export INSTALL_DIR=$PWD/install-intel
#export INSTALL_DIR=/g/data/qi71/apps/ga-aem/2.0.0
# BUILD_DIR is a temporary directory for building (compiling and linking) the package
export BUILD_DIR=$PWD/build-intel
mkdir $BUILD_DIR
cd $BUILD_DIR
cmake -Wno-dev -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
cmake --install . --prefix $INSTALL_DIR
#cmake --build . --target galeisbstdem
#cmake --build . --target galeisbstdem-nompi
#cmake --build . --target garjmcmctdem
#cmake --build . --target galeiallatonce
#cmake --build . --target gaforwardmodeltdem
#cmake --build . --target example_forward_model
#cmake --build . --target example_forward_model_c
#cmake --build . --target gatdaem1d-static
#cmake --build . --target gatdaem1d-shared
#cmake --build . --target matlab-bindings
#cmake --build . --target python-bindings
#cmake --build . --target ctlinedata2sgrid
#cmake --build . --target ctlinedata2slicegrids
#cmake --build . --target removelog10conductivityfromsgrid
## Windows only ctlinedata2georefimage
## Windows only ctlinedata2curtainimage