summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2020-11-11 13:27:12 -0500
committerGitHub <noreply@github.com>2020-11-11 12:27:12 -0600
commit3dab441986ef62fb9d31dc993d3775b778fcbf86 (patch)
tree514a8c8fa66a18f4dd0240c3cf665c572f9d71fd /var
parentd1ca322aefed4dec481b753f1794c0d05a7345c5 (diff)
downloadspack-3dab441986ef62fb9d31dc993d3775b778fcbf86.tar.gz
spack-3dab441986ef62fb9d31dc993d3775b778fcbf86.tar.bz2
spack-3dab441986ef62fb9d31dc993d3775b778fcbf86.tar.xz
spack-3dab441986ef62fb9d31dc993d3775b778fcbf86.zip
New package: py-cuml (#19474)
* [py-cuml] created template * [py-cuml] setup phases and added build_directory * [py-cuml] added dependencies * [py-cuml] depends on libcumlprims * [py-cuml] requiring multigpu version * [py-cuml] figuring out the best way to get concretization to happen cleanly * [py-cuml] removed singlegpu variat from libcuml * [py-cuml] depends on py-cudf * [py-cuml] depends on cupy * [py-cuml] fixed typoo * [py-cuml] depends on py-scipy * [py-cuml] depends on py-treelite * [py-cuml] py-treelite is now a variant of treelite * [py-cuml] depends on joblib * [py-cuml] depends on py-scikit-learn * [py-cuml] flake8 * [py-cuml] added homepage and description. removed fixmes * [py-cuml] updated checksum
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-cuml/package.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-cuml/package.py b/var/spack/repos/builtin/packages/py-cuml/package.py
new file mode 100644
index 0000000000..05d09fe3d5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-cuml/package.py
@@ -0,0 +1,42 @@
+# 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 PyCuml(PythonPackage):
+ """cuML is a suite of libraries that implement machine
+ learning algorithms and mathematical primitives functions
+ that share compatible APIs with other RAPIDS projects."""
+
+ homepage = "https://github.com/rapidsai/cuml"
+ url = "https://github.com/rapidsai/cuml/archive/v0.15.0.tar.gz"
+
+ version('0.15.0', sha256='5c9c656ae4eaa94a426e07d7385fd5ea0e5dc7abff806af2941aee10d4ca99c7')
+
+ depends_on('python@3.7:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-cython', type='build')
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-numba', type=('build', 'run'))
+ depends_on('py-cudf', type=('build', 'run'))
+ depends_on('cuda')
+ depends_on('py-cupy', type=('build', 'run'))
+ depends_on('py-scipy', type=('build', 'run'))
+ depends_on('treelite+python', type=('build', 'run'))
+ depends_on('py-joblib', type=('build', 'run'))
+ depends_on('py-scikit-learn', type=('build', 'run'))
+
+ for v in ('11.0', '10.2', '10.1'):
+ depends_on(
+ 'libcumlprims@0.15.0-cuda{0}_gdbd0d39_0'.format(v),
+ when='^cuda@{0}'.format(v))
+
+ for v in ('@0.15.0',):
+ depends_on('libcuml{0}'.format(v), when=v)
+
+ phases = ['build_ext', 'install']
+
+ build_directory = 'python'