summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJustin Stanley <molecuul@users.noreply.github.com>2018-12-27 00:42:44 -0600
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-12-27 07:42:44 +0100
commitc451733f9a75277112cf25c15b60eed830ef1c5d (patch)
tree89655f5e50afb752003d3526edb58b1b9d934952 /var
parent25129d4a3b300a157f25d9c7097e9740c31e931d (diff)
downloadspack-c451733f9a75277112cf25c15b60eed830ef1c5d.tar.gz
spack-c451733f9a75277112cf25c15b60eed830ef1c5d.tar.bz2
spack-c451733f9a75277112cf25c15b60eed830ef1c5d.tar.xz
spack-c451733f9a75277112cf25c15b60eed830ef1c5d.zip
xgboost: new package at 0.81 (#9854)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xgboost/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xgboost/package.py b/var/spack/repos/builtin/packages/xgboost/package.py
new file mode 100644
index 0000000000..011a3fb257
--- /dev/null
+++ b/var/spack/repos/builtin/packages/xgboost/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2018 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 Xgboost(CMakePackage, CudaPackage):
+ """Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM)
+ Library, for Python, R, Java, Scala, C++ and more. Runs on single
+ machine, Hadoop, Spark, Flink and DataFlow"""
+
+ homepage = "https://xgboost.ai/"
+ url = "https://github.com/dmlc/xgboost/releases/download/v0.81/xgboost-0.81.tar.bz2"
+
+ version('0.81', sha256='9d8ff161699111d45c96bd15229aa6d80eb1cab7cbbef7e8eaa60ccfb5a4f806')
+
+ def cmake_args(self):
+ return [
+ '-DUSE_CUDA={0}'.format('YES' if '+cuda' in self.spec else 'NO')
+ ]