-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun_gprat_cpp.sh
executable file
·32 lines (27 loc) · 1.08 KB
/
run_gprat_cpp.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
#!/bin/bash
################################################################################
set -e # Exit immediately if a command exits with a non-zero status.
#set -x # Print each command before executing it.
################################################################################
# Configurations
################################################################################
# Load GCC compiler
spack load [email protected]
spack load cmake
# Activate environment
spack env activate gprat_cpu_gcc
# Configure APEX
export APEX_SCREEN_OUTPUT=0
export APEX_DISABLE=1
################################################################################
# Compile code
################################################################################
rm -rf build && mkdir build && cd build
# Configure the project
cmake .. -DCMAKE_BUILD_TYPE=Release -DGPRat_DIR=./lib/cmake/GPRat
# Build the project
make -j
################################################################################
# Run code
################################################################################
./gprat_cpp