Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Alt
pystencils
Commits
0fe7727d
Commit
0fe7727d
authored
Apr 29, 2021
by
Michael Kuron
Browse files
Disallow OpenMP + blocking + cacheline-zero
parent
e9bd89c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/kernelcreation.py
View file @
0fe7727d
...
...
@@ -107,6 +107,12 @@ def create_kernel(assignments,
vectorize
(
ast
)
elif
isinstance
(
cpu_vectorize_info
,
dict
):
vectorize
(
ast
,
**
cpu_vectorize_info
)
if
cpu_openmp
and
cpu_blocking
and
'nontemporal'
in
cpu_vectorize_info
and
\
cpu_vectorize_info
[
'nontemporal'
]
and
'cachelineZero'
in
ast
.
instruction_set
:
# This condition is stricter than it needs to be: if blocks along the fastest axis start on a
# cache line boundary, it's okay. But we cannot determine that here.
# We don't need to disallow OpenMP collapsing because it is never applied to the inner loop.
raise
ValueError
(
"Blocking cannot be combined with cacheline-zeroing"
)
else
:
raise
ValueError
(
"Invalid value for cpu_vectorize_info"
)
elif
target
==
'llvm'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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