diff options
author | Howard Pritchard <howardp@lanl.gov> | 2022-09-29 03:58:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 03:58:03 -0600 |
commit | eab148288a6dec638fb23da1ec316a4070d46881 (patch) | |
tree | ff41297ce72ac329af07ffc417ff0335d4063f8b /var | |
parent | 17d9960424c68a23fb4aa931d0e87411357c77ac (diff) | |
download | spack-eab148288a6dec638fb23da1ec316a4070d46881.tar.gz spack-eab148288a6dec638fb23da1ec316a4070d46881.tar.bz2 spack-eab148288a6dec638fb23da1ec316a4070d46881.tar.xz spack-eab148288a6dec638fb23da1ec316a4070d46881.zip |
superlu:oneapi-deal with non ISO C99 compliance (#32685)
superlu:oneapi-deal with non ISO C99 complianc in the package.
The Intel OneAPI compilers are based on LLVM 14. A recent enhancement to LLVM -
https://reviews.llvm.org/D122983
results in superlu-dist not compiling because of some non ISO C99 compliant stuff.
A workaround is to use an llvm compile line option noted in the above URL.
Signed-off-by: Howard Pritchard <howardp@lanl.gov>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/superlu-dist/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py index b87c506278..67e993f6d5 100644 --- a/var/spack/repos/builtin/packages/superlu-dist/package.py +++ b/var/spack/repos/builtin/packages/superlu-dist/package.py @@ -97,6 +97,13 @@ class SuperluDist(CMakePackage, CudaPackage, ROCmPackage): if (spec.satisfies("%xl") or spec.satisfies("%xl_r")) and spec.satisfies("@:6.1.1"): append_define("CMAKE_C_FLAGS", "-DNoChange") + if spec.satisfies("%oneapi"): + # + # 2022 and later Intel OneAPI compilers throws errors compiling + # some of the non ISO C99 compliant code in this package + # see https://reviews.llvm.org/D122983 + # + append_define("CMAKE_C_FLAGS", "-Wno-error=implicit-function-declaration") append_define("XSDK_INDEX_SIZE", "64" if "+int64" in spec else "32") |