Skip to content

Commit

Permalink
Add xgboost-proc to allow CPU/GPU selection
Browse files Browse the repository at this point in the history
As only the C++ library changes between CPU and GPU builds, add a meta
package to allow selection between the two builds of the C++ library.
Since this does not include GPU builds yet, simply set the selection
package to CPU only.
  • Loading branch information
jakirkham committed Oct 29, 2019
1 parent 19c435d commit 236c6c3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% set name = "xgboost" %}
{% set version = "0.90" %}

{% set xgboost_proc_type = "cpu" %}

package:
name: {{ name|lower }}
version: {{ version }}
Expand Down Expand Up @@ -32,6 +34,20 @@ requirements:
- llvm-openmp # [osx]

outputs:
- name: xgboost-proc
version: 1.0.0
build:
number: 0
string: "{{ xgboost_proc_type }}"
test:
commands:
- exit 0
about:
home: https://github.com/conda-forge/xgboost-feedstock
license: BSD-3-Clause
license_family: BSD
summary: A meta-package to select CPU or GPU xgboost build.

- name: libxgboost
script: install-libxgboost.sh
requirements:
Expand All @@ -46,6 +62,8 @@ outputs:
- llvm-openmp # [osx]
run:
- llvm-openmp # [osx]
run_constrained:
- xgboost-proc * {{ xgboost_proc_type }}

- name: py-xgboost
script: install-py-xgboost.sh
Expand Down

0 comments on commit 236c6c3

Please sign in to comment.