diff options
author | Jen Herting <jen@herting.cc> | 2020-11-06 13:55:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 12:55:29 -0600 |
commit | 1b18e8fbadb1f3fb06b8c1541a8b7e7fbf403528 (patch) | |
tree | 99d447cc0c2355721abd2d81d48ec73c550a4ee3 | |
parent | 3953f6af950f562cee42c023bc09b2964286fa78 (diff) | |
download | spack-1b18e8fbadb1f3fb06b8c1541a8b7e7fbf403528.tar.gz spack-1b18e8fbadb1f3fb06b8c1541a8b7e7fbf403528.tar.bz2 spack-1b18e8fbadb1f3fb06b8c1541a8b7e7fbf403528.tar.xz spack-1b18e8fbadb1f3fb06b8c1541a8b7e7fbf403528.zip |
New Package: libcumlprims (#19108)
* [libcumlprims] created template
* [libcumlprims] setting up version urls and added versions
* [libcumlprims] added dependencies
* [libcumlprims] installing prebuild binaries
* [libcumlprims] fixing dependencies
* [libcumlprims] trying to fix cumlprims includedir
* [libcumlprims] updated envvar to SPACK_INCLUDE_DIRS
* [libcumlprims] typoo
* [libcumlprims] added homepage and description. removed fixmes
* [libcumlprims] cp -> install_tree
* [libcumlprims] removed unused import
* [libcumlprims] using new version of updating header files env vars
* [libcumlprims] flake8
-rw-r--r-- | var/spack/repos/builtin/packages/libcumlprims/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libcumlprims/package.py b/var/spack/repos/builtin/packages/libcumlprims/package.py new file mode 100644 index 0000000000..2373c0e8d9 --- /dev/null +++ b/var/spack/repos/builtin/packages/libcumlprims/package.py @@ -0,0 +1,35 @@ +# Copyright 2013-2020 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) + +from spack import * + + +class Libcumlprims(Package): + """libcuMLPrims library""" + + homepage = "https://rapids.ai" + url = "https://anaconda.org/nvidia/libcumlprims/0.15.0/download/linux-64/libcumlprims-0.15.0-cuda11.0_gdbd0d39_0.tar.bz2" + + version('0.15.0-cuda11.0_gdbd0d39_0', sha256='0edc55767f06f533fbff7a0fecaf6e6d4f82eec39604b3874a07b5609f79ece8') + version('0.15.0-cuda10.2_gdbd0d39_0', sha256='b7a8740de0d15380829f42fcb078567e73ab7d29b14be073376153bf2d8ec945') + version('0.15.0-cuda10.1_gdbd0d39_0', sha256='f055f904b5ef67995869b0bc648d9fe30839b08e77cb335573bf9f1c816d4d9b') + + depends_on('cuda@11.0.0:11.0.999', when='@0.15.0-cuda11.0_gdbd0d39_0') + depends_on('cuda@10.2.0:10.2.999', when='@0.15.0-cuda10.2_gdbd0d39_0') + depends_on('cuda@10.1.0:10.1.999', when='@0.15.0-cuda10.1_gdbd0d39_0') + + @property + def headers(self): + headers = find_headers('*', self.prefix.include, recursive=True) + headers.directories = [self.prefix.include, + self.prefix.include.cumlprims] + return headers + + def url_for_version(self, version): + url = "https://anaconda.org/nvidia/libcumlprims/{0}/download/linux-64/libcumlprims-{1}.tar.bz2" + return url.format(version.up_to(3), version) + + def install(self, spec, prefix): + install_tree('.', self.prefix) |