-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcpu-Release
executable file
·42 lines (34 loc) · 1.69 KB
/
cpu-Release
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
#! /usr/bin/env bash
#~----------------------------------------------------------------------------~#
# placeholder
#~----------------------------------------------------------------------------~#
#------------------------------------------------------------------------------#
# Get the path to the project from which this script was called
#------------------------------------------------------------------------------#
src_dir="${0%/*}/.."
#------------------------------------------------------------------------------#
# Check required environment variables
#------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# Call CMake command
#------------------------------------------------------------------------------#
# The flag -rdynamic removes warnings of the form:
# Unable to find a safely writable symbol that corresponds to address 432af0
# (the closest match was "(null)" from "./lpi_2d_F6_test.Linux"). Writing out
# the raw address instead and keeping my fingers crossed.
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_INTEGRATED_TESTS=ON \
-DENABLE_UNIT_TESTS=ON \
-DBUILD_INTERNAL_KOKKOS=ON \
-DKokkos_ARCH_ZEN2=ON \
-DKokkos_ENABLE_PTHREAD=OFF \
-DKokkos_ENABLE_OPENMP=ON \
-DCMAKE_CXX_FLAGS="-g -O2 -rdynamic" \
$src_dir
#------------------------------------------------------------------------------#
# vim: syntax=sh
#------------------------------------------------------------------------------#
#~---------------------------------------------------------------------------~-#
# placeholder
#~---------------------------------------------------------------------------~-#