-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.inc
28 lines (24 loc) · 921 Bytes
/
make.inc
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
# If you want to run with C/OpenMP backend (-c_kernels or -use_RACE),
# you need to specify a compiler and flags here.
# Note that it can be challenging to pick a good combination with Python
# as Numba uses LLVM and this may interfere with, e.g., GCC multi-threading.
# In our experience, using the LLVM-based Intel compiler (icx) gives best results,
# in combination with explicitly disabling the garbage collector (gc.disable() in Python).
## GCC
#CC=gcc
#CFLAGS=-fPIC -O3 -fopenmp -march=native
#CXX=g++
#CXXFLAGS=${CFLAGS}
## Intel LLVM-based compiler
CC=icx
CFLAGS=-fPIC -O3 -qopenmp -fimf-use-svml=true #-Xclang -target-feature -Xclang +prefer-no-gather
CXX=icpx
CXXFLAGS=${CFLAGS}
## Intel legacy compilers
#CC=icc
#CFLAGS=-fPIC -O3 -qopenmp -xHOST
#CXX=icpc
#CXXFLAGS=${CFLAGS}
# In order to enable RACE cache-blocking, you also have to set these variables:
RACE_INCDIR=${PWD}/include
RACE_LIBDIR=${PWD}/lib