Skip to content

Commit

Permalink
CI: Try to force low resource use in recipe test and doc build
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Berg <[email protected]>
  • Loading branch information
seberg committed Nov 12, 2024
1 parent 3351eae commit a3235e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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
15 changes: 9 additions & 6 deletions conda/recipes/legate-boost/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,17 @@ 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

0 comments on commit a3235e3

Please sign in to comment.