From 239e8db319fc8053db73e513d5bfe0bbfce10ab4 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Wed, 28 Apr 2021 17:06:36 -0400 Subject: 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. --- var/spack/repos/builtin/packages/intel-oneapi-dnn/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'var') 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) -- cgit v1.2.3-70-g09d2