Skip to content

Commit fdb9cf2

Browse files
authored
Intel/oneapi compilers: correct version ranges for diab-disable flag (spack#47428)
* c/c++ flags should have been modified for all 2023.x.y versions, but upper bound was too low * Fortran flags should have been modified for all 2024.x.y versions, but likewise the upper bound was too low
1 parent a546441 commit fdb9cf2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/spack/spack/compilers/intel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def setup_custom_environment(self, pkg, env):
124124
# Edge cases for Intel's oneAPI compilers when using the legacy classic compilers:
125125
# Always pass flags to disable deprecation warnings, since these warnings can
126126
# confuse tools that parse the output of compiler commands (e.g. version checks).
127-
if self.real_version >= Version("2021") and self.real_version <= Version("2023"):
127+
if self.real_version >= Version("2021") and self.real_version < Version("2024"):
128128
env.append_flags("SPACK_ALWAYS_CFLAGS", "-diag-disable=10441")
129129
env.append_flags("SPACK_ALWAYS_CXXFLAGS", "-diag-disable=10441")
130-
if self.real_version >= Version("2021") and self.real_version <= Version("2024"):
130+
if self.real_version >= Version("2021") and self.real_version < Version("2025"):
131131
env.append_flags("SPACK_ALWAYS_FFLAGS", "-diag-disable=10448")

lib/spack/spack/compilers/oneapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ def setup_custom_environment(self, pkg, env):
155155
# icx+icpx+ifx or icx+icpx+ifort. But to be on the safe side (some users may
156156
# want to try to swap icpx against icpc, for example), and since the Intel LLVM
157157
# compilers accept these diag-disable flags, we apply them for all compilers.
158-
if self.real_version >= Version("2021") and self.real_version <= Version("2023"):
158+
if self.real_version >= Version("2021") and self.real_version < Version("2024"):
159159
env.append_flags("SPACK_ALWAYS_CFLAGS", "-diag-disable=10441")
160160
env.append_flags("SPACK_ALWAYS_CXXFLAGS", "-diag-disable=10441")
161-
if self.real_version >= Version("2021") and self.real_version <= Version("2024"):
161+
if self.real_version >= Version("2021") and self.real_version < Version("2025"):
162162
env.append_flags("SPACK_ALWAYS_FFLAGS", "-diag-disable=10448")
163163

164164
# 2024 release bumped the libsycl version because of an ABI

0 commit comments

Comments
 (0)