Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler: Keep -qopenmp by default after icx 2023.2 #2164

Merged
merged 3 commits into from
Jul 21, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion devito/arch/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def sniff_compiler_version(cc):
compiler = "clang"
elif ver.startswith("Homebrew clang"):
compiler = "clang"
elif ver.startswith("Intel"):
compiler = "icx"
elif ver.startswith("icc"):
compiler = "icc"
elif ver.startswith("icx"):
Expand Down Expand Up @@ -761,7 +763,8 @@ def __init__(self, *args, **kwargs):
platform = kwargs.pop('platform', configuration['platform'])
language = kwargs.pop('language', configuration['language'])

if language == 'openmp':
georgebisbas marked this conversation as resolved.
Show resolved Hide resolved
# Earlier to versions to OneAPI 2023.2.0 (clang17 underneath), have an OpenMP bug
georgebisbas marked this conversation as resolved.
Show resolved Hide resolved
if self.version < Version('17.0.0') and language == 'openmp':
self.ldflags.remove('-qopenmp')
self.ldflags.append('-fopenmp')

Expand Down
Loading