summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarshula Jayasuriya <harshula.jayasuriya@anu.edu.au>2024-06-14 10:58:50 +1000
committerGitHub <noreply@github.com>2024-06-13 17:58:50 -0700
commit9ed948523a97cf01e844afe2afdba5582c309a1c (patch)
treef124e2a1433c87e68412f6d355ce3f3bbb667d94
parent72d7c2d558203b4aea1fad1fb26eebbf41e95115 (diff)
downloadspack-9ed948523a97cf01e844afe2afdba5582c309a1c.tar.gz
spack-9ed948523a97cf01e844afe2afdba5582c309a1c.tar.bz2
spack-9ed948523a97cf01e844afe2afdba5582c309a1c.tar.xz
spack-9ed948523a97cf01e844afe2afdba5582c309a1c.zip
openmpi: disable remark 10441 for intel classic 2021.7.0 or newer (#44614)
* Compilation of openmpi fails when intel classic compiler 2021.7.0 or newer is used.
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 1eacea683e..d996da98cc 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -1179,6 +1179,23 @@ class Openmpi(AutotoolsPackage, CudaPackage):
# if spec.satisfies("@5.0.0:") and spec.satisfies("%oneapi"):
# config_args.append("--disable-io-romio")
+ # https://www.intel.com/content/www/us/en/developer/articles/release-notes/oneapi-c-compiler-release-notes.html :
+ # Key Features in Intel C++ Compiler Classic 2021.7
+ #
+ # The Intel C++ Classic Compiler is deprecated and an additional
+ # diagnostic message will be output with each invocation. This
+ # diagnostic may impact expected output during compilation. For
+ # example, using the compiler to produce preprocessed information
+ # (icpc -E) will produce the additional deprecation diagnostic,
+ # interfering with the expected preprocessed output.
+ #
+ # This output can be disabled by using -diag-disable=10441 on
+ # Linux/macOS or /Qdiag-disable:10441 on Windows. You can add this
+ # option on the command line, configuration file or option setting
+ # environment variables.
+ if spec.satisfies("%intel@2021.7.0:"):
+ config_args.append("CPPFLAGS=-diag-disable=10441")
+
return config_args
@run_after("install", when="+wrapper-rpath")