Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
ed4bb4c7
Commit
ed4bb4c7
authored
Mar 29, 2019
by
Julian Hammer
Browse files
added mac compiler defaults
parent
42e2698d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/cpu/cpujit.py
View file @
ed4bb4c7
...
...
@@ -143,7 +143,6 @@ def read_config():
(
'flags'
,
'-Ofast -DNDEBUG -fPIC -march=native -fopenmp -std=c++11'
),
(
'restrict_qualifier'
,
'__restrict__'
)
])
elif
platform
.
system
().
lower
()
==
'windows'
:
default_compiler_config
=
OrderedDict
([
(
'os'
,
'windows'
),
...
...
@@ -152,6 +151,13 @@ def read_config():
(
'flags'
,
'/Ox /fp:fast /openmp /arch:avx'
),
(
'restrict_qualifier'
,
'__restrict'
)
])
elif
platform
.
system
().
lower
()
==
'darwin'
:
default_compiler_config
=
OrderedDict
([
(
'os'
,
'darwin'
),
(
'command'
,
'clang++'
),
(
'flags'
,
'-Ofast -DNDEBUG -fPIC -march=native -fopenmp -std=c++11'
),
(
'restrict_qualifier'
,
'__restrict__'
)
])
default_cache_config
=
OrderedDict
([
(
'object_cache'
,
os
.
path
.
join
(
user_cache_dir
(
'pystencils'
),
'objectcache'
)),
(
'clear_cache_on_start'
,
False
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment