-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_config.py
48 lines (33 loc) · 1.2 KB
/
build_config.py
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
# extra_compile_args = ['-fopenmp']
# extra_link_args = ['-fopenmp']
# # Let local_compiler be None in order to use the default compiler
# local_compiler = None
# local_linker = local_compiler
# Example: Explicitly use gcc
#
local_compiler = 'gcc'
extra_compile_args = ['-fPIC', '-fopenmp', '-Ofast', '-march=native', '-std=c99']
local_linker = local_compiler
local_link_shared = ['-shared']
extra_link_args = ['-fopenmp']
# # Example: Use icc instead of the default compiler
# #
# local_compiler = 'icc'
# extra_compile_args = ['-openmp', '-xHOST', '-O3', '-fno-alias', '-fPIC', '-std=c99']
# local_linker = local_compiler
# local_link_shared = ['-shared']
# extra_link_args = ['-openmp']
# # Example: Use pgcc instead of the default compiler
# #
# local_compiler = 'pgcc'
# extra_compile_args = ['-mp=numa', '-O4', '-Msafeptr', '-fPIC', '-c99']
# local_linker = local_compiler
# local_link_shared = ['-shared']
# extra_link_args = ['-mp']
# # Example: Use pgcc to generate GPU-code using OpenACC directives
# #
# local_compiler = 'pgcc'
# extra_compile_args = ['-acc', '-ta=nvidia', '-O4', '-g', '-Minfo=acc', '-fPIC']
# local_linker = local_compiler
# local_link_shared = ['-shared']
# extra_link_args = ['-acc']