Skip to content

Commit df590b7

Browse files
committed
compiler: drop support for icc < 15
1 parent 1b74713 commit df590b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

devito/arch/compiler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,12 @@ def __init__(self, *args, **kwargs):
729729

730730
self.cflags.append("-xhost")
731731

732-
language = kwargs.pop('language', configuration['language'])
733732
platform = kwargs.pop('platform', configuration['platform'])
734733

735734
if configuration['safe-math']:
736735
self.cflags.append("-fp-model=strict")
737736
else:
738-
self.cflags.append('-fast')
737+
self.cflags.append('-fp-model=fast')
739738

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

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

0 commit comments

Comments
 (0)