summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRobert Cohn <robert.s.cohn@intel.com>2021-07-09 05:56:02 -0400
committerGitHub <noreply@github.com>2021-07-09 11:56:02 +0200
commit0b9b3f6f79fffdfe4a499d3561695fd2fd17af6d (patch)
treeb4ff52494bde38fb5ce94d71e93523017fccb6e5 /var
parent5b5f99bbd4d3a6538796aedc2dfae091e87d8b4d (diff)
downloadspack-0b9b3f6f79fffdfe4a499d3561695fd2fd17af6d.tar.gz
spack-0b9b3f6f79fffdfe4a499d3561695fd2fd17af6d.tar.bz2
spack-0b9b3f6f79fffdfe4a499d3561695fd2fd17af6d.tar.xz
spack-0b9b3f6f79fffdfe4a499d3561695fd2fd17af6d.zip
intel-oneapi-dpl: new package (#24793)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/intel-oneapi-dpl/package.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-dpl/package.py b/var/spack/repos/builtin/packages/intel-oneapi-dpl/package.py
new file mode 100644
index 0000000000..fa02762989
--- /dev/null
+++ b/var/spack/repos/builtin/packages/intel-oneapi-dpl/package.py
@@ -0,0 +1,37 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+import platform
+
+from spack import *
+
+
+class IntelOneapiDpl(IntelOneApiLibraryPackage):
+ """Intel oneAPI DPL."""
+
+ maintainers = ['rscohn2', 'danvev']
+
+ homepage = 'https://github.com/oneapi-src/oneDPL'
+
+ if platform.system() == 'Linux':
+ version('2021.4.0',
+ url='https://registrationcenter-download.intel.com/akdlm/irc_nas/17889/l_oneDPL_p_2021.4.0.337_offline.sh',
+ sha256='540ef0d308c4b0f13ea10168a90edd42a56dc0883024f6f1a678b94c10b5c170',
+ expand=False)
+
+ @property
+ def component_dir(self):
+ return 'dpl'
+
+ @property
+ def headers(self):
+ include_path = join_path(self.component_path, 'linux', 'include')
+ headers = find_headers('*', include_path, recursive=True)
+ # Force this directory to be added to include path, even
+ # though no files are here because all includes are relative
+ # to this path
+ headers.directories = [include_path]
+ return headers