Skip to content

Commit

Permalink
compiler: drop support for icc < 15
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Apr 19, 2023
1 parent 1b74713 commit d2b4c86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions devito/arch/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,12 @@ def __init__(self, *args, **kwargs):

self.cflags.append("-xhost")

language = kwargs.pop('language', configuration['language'])
platform = kwargs.pop('platform', configuration['platform'])

if configuration['safe-math']:
self.cflags.append("-fp-model=strict")
else:
self.cflags.append('-fast')
self.cflags.append('-fp-model=fast')

if platform is SKX:
# Systematically use 512-bit vectors on skylake
Expand All @@ -746,11 +745,12 @@ def __init__(self, *args, **kwargs):
# Append the OpenMP flag regardless of configuration['language'],
# since icc15 and later versions implement OpenMP 4.0, hence
# they support `#pragma omp simd`
# This class of IntelCompiler, will be dropped in future releases
# in favour of the OneApi IntelCompiler
self.ldflags.append('-qopenmp')
except (TypeError, ValueError):
if language == 'openmp':
# Note: fopenmp, not qopenmp, is what is needed by icc versions < 15.0
self.ldflags.append('-fopenmp')
error("Support for your IntelCompiler version %s has been dropped." % self.version +
"Consider using a version >= 15.0.0")

# Make sure the MPI compiler uses `icc` underneath -- whatever the MPI distro is
if kwargs.get('mpi'):
Expand Down

0 comments on commit d2b4c86

Please sign in to comment.