From d2b4c86ac7c063b125a8a00c73910f4b7373cff0 Mon Sep 17 00:00:00 2001 From: George Bisbas Date: Wed, 19 Apr 2023 16:57:48 +0300 Subject: [PATCH] compiler: drop support for icc < 15 --- devito/arch/compiler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/devito/arch/compiler.py b/devito/arch/compiler.py index 86c6e85e124..f9d0262c77a 100644 --- a/devito/arch/compiler.py +++ b/devito/arch/compiler.py @@ -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 @@ -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'):