Skip to content

Commit

Permalink
Merge branch 'main' of github.com:rapidsai/legateboost into ensemble
Browse files Browse the repository at this point in the history
  • Loading branch information
RAMitchell committed Nov 13, 2024
2 parents 8c5e216 + b061133 commit 2dd3e4c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ rapids-mamba-retry install \

rapids-print-env

# Force minimal resource use as auto-configure may fail with few cores.
LEGATE_CONFIG="--cpus=1 --gpus=0 --omps=0 --utility=1" \
make -C docs html
4 changes: 2 additions & 2 deletions conda/environments/all_cuda-122.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ dependencies:
- cuda-cudart-dev
- cuda-nvcc
- cuda-version>=12.2
- cunumeric==24.09.*,>=0.0.0.dev0
- cunumeric==25.01.*,>=0.0.0.dev0
- hypothesis>=6
- legate==24.09.*,>=0.0.0.dev0
- legate==25.01.*,>=0.0.0.dev0
- libcublas-dev
- make
- matplotlib>=3.9
Expand Down
7 changes: 2 additions & 5 deletions conda/recipes/legate-boost/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ gpu_enabled:
- false

cunumeric_version:
# .dev116: https://github.com/nv-legate/legate.core.internal/issues/1409
- "=24.09.*,>=0.0.0.dev0,!=24.09.00.dev116"
- "=25.01.*,>=0.0.0.dev0"

legate_version:
# .dev319: https://github.com/nv-legate/legate.core.internal/pull/1401
# .dev329: https://github.com/nv-legate/legate.core.internal/issues/1409
- "=24.09.*,>=0.0.0.dev0,!=24.09.00.dev319,!=24.09.00.dev329"
- "=25.01.*,>=0.0.0.dev0"
14 changes: 8 additions & 6 deletions conda/recipes/legate-boost/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ requirements:
test:
# import tests at build time do not work for the CUDA packages,
# because builds happen on machines without a GPU
commands:
{% if not gpu_enabled_bool %}
imports:
- legateboost
- legateboost.metrics
- legateboost.models
- legateboost.objectives
# Force minimal resource use as auto-configure may fail with few cores
# otherwise, should use `imports:` section.
- LEGATE_CONFIG="--cpus=1 --gpus=0 --omps=0 --utility=1"
python -c "import legateboost;
import legateboost.metrics;
import legateboost.models;
import legateboost.objectives"
{% endif %}
commands:
- pip show legate-boost

about:
Expand Down
4 changes: 2 additions & 2 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ dependencies:
- output_types: [conda, pyproject, requirements]
packages:
- cmake>=3.24.0,!=3.30.0
- &legate legate==24.09.*,>=0.0.0.dev0
- &legate legate==25.01.*,>=0.0.0.dev0
- ninja>=1.11.1.1
- scikit-build>=0.18.0
- setuptools>=70.0
Expand Down Expand Up @@ -123,7 +123,7 @@ dependencies:
- typing-extensions>=4.0
- output_types: [conda, pyproject, requirements]
packages:
- cunumeric==24.09.*,>=0.0.0.dev0
- cunumeric==25.01.*,>=0.0.0.dev0
- *legate
test:
common:
Expand Down
3 changes: 2 additions & 1 deletion legateboost/test/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def test_benchmark(benchmark_dir):
del env["LEGATE_CONFIG"]

subprocess.run(
"legate --cpus 2 legateboost_scaling.py --nrows 100 --ncols 5 --niter 2"
"legate --cpus=2 --gpus=0"
+ " legateboost_scaling.py --nrows 100 --ncols 5 --niter 2"
+ " --model_types tree,linear,krr,nn",
shell=True,
check=True,
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"cmake>=3.24.0,!=3.30.0",
"legate==24.09.*,>=0.0.0.dev0",
"legate==25.01.*,>=0.0.0.dev0",
"ninja>=1.11.1.1",
"scikit-build>=0.18.0",
"setuptools>=70.0",
Expand All @@ -24,8 +24,8 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]
dependencies = [
"cunumeric==24.09.*,>=0.0.0.dev0",
"legate==24.09.*,>=0.0.0.dev0",
"cunumeric==25.01.*,>=0.0.0.dev0",
"legate==25.01.*,>=0.0.0.dev0",
"numpy",
"scikit-learn",
"typing-extensions>=4.0",
Expand Down

0 comments on commit 2dd3e4c

Please sign in to comment.