diff options
author | Robert Cohn <robert.s.cohn@intel.com> | 2024-01-18 14:33:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 12:33:00 -0700 |
commit | eb625321aea55e1c53f8f3f462ad7620acf30160 (patch) | |
tree | 5a8a467c30696ef086b133f9573f258fa06fb275 | |
parent | ddfec30941b655942c7532a6ecd750f537c48699 (diff) | |
download | spack-eb625321aea55e1c53f8f3f462ad7620acf30160.tar.gz spack-eb625321aea55e1c53f8f3f462ad7620acf30160.tar.bz2 spack-eb625321aea55e1c53f8f3f462ad7620acf30160.tar.xz spack-eb625321aea55e1c53f8f3f462ad7620acf30160.zip |
[intel-oneapi-mkl] patch mkl install to workaround cmake issue (#42146)
-rw-r--r-- | var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py index 76d0b4d903..3bf6dfd225 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py @@ -134,6 +134,20 @@ class IntelOneapiMkl(IntelOneApiLibraryPackage): provides("mkl") provides("lapack", "blas") + @run_after("install") + def fixup_installation(self): + # fixup missing path in mkl cmake files. This issue was new in + # 2024.0.0 and expected to be fixed in the next release. + if self.spec.satisfies("@2024.0.0"): + # cannot use spack patch because this is applied to the + # installed mkl, not sources + filter_file( + 'PATH_SUFFIXES "lib"', + 'PATH_SUFFIXES "lib" "../../compiler/latest/lib"', + self.component_prefix.lib.cmake.mkl.join("MKLConfig.cmake"), + backup=False, + ) + @property def v2_layout_versions(self): return "@2024:" |