diff options
author | Robert Cohn <rscohn2@gmail.com> | 2021-04-28 17:06:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 14:06:36 -0700 |
commit | 239e8db319fc8053db73e513d5bfe0bbfce10ab4 (patch) | |
tree | d1f4b7278ef01f71f3d91cfd76481557f3bc0c09 | |
parent | c8084991b4b0b882482cc28b6f46fcf20707fe7b (diff) | |
download | spack-239e8db319fc8053db73e513d5bfe0bbfce10ab4.tar.gz spack-239e8db319fc8053db73e513d5bfe0bbfce10ab4.tar.bz2 spack-239e8db319fc8053db73e513d5bfe0bbfce10ab4.tar.xz spack-239e8db319fc8053db73e513d5bfe0bbfce10ab4.zip |
intel-oneapi-dnn: fix header/lib paths (#23326)
Help dependents find libraries/headers. Like intel-oneapi-mkl, this
package offers several different versions of libraries that conflict.
This PR chooses one of those versions. When
https://github.com/spack/spack/discussions/22749 is resolved, this
package should be updated to choose which libraries to use.
-rw-r--r-- | var/spack/repos/builtin/packages/intel-oneapi-dnn/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-dnn/package.py b/var/spack/repos/builtin/packages/intel-oneapi-dnn/package.py index 499a98d850..4808303083 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-dnn/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-dnn/package.py @@ -31,3 +31,13 @@ class IntelOneapiDnn(IntelOneApiLibraryPackage): @property def component_dir(self): return 'dnnl' + + @property + def headers(self): + include_path = join_path(self.component_path, 'cpu_dpcpp_gpu_dpcpp', 'include') + return find_headers('dnnl', include_path) + + @property + def libs(self): + lib_path = join_path(self.component_path, 'cpu_dpcpp_gpu_dpcpp', 'lib') + return find_libraries(['libdnnl', 'libmkldnn'], root=lib_path, shared=True) |