Skip to content

Commit 8a9be2b

Browse files
committed
pass PARALLEL_LEVEL through
1 parent fbe71f8 commit 8a9be2b

4 files changed

Lines changed: 22 additions & 19 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
node_type: cpu16
5656
script: ci/build_cpp.sh
5757
sha: ${{ inputs.sha }}
58+
5859
rocky8-clib-standalone-build-matrix:
5960
permissions:
6061
contents: read

.github/workflows/pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ jobs:
555555
build_type: pull-request
556556
script: ci/test_python.sh
557557
rocky8-clib-standalone-build-matrix:
558+
needs: checks
558559
permissions:
559560
contents: read
560561
uses: rapidsai/shared-workflows/.github/workflows/compute-matrix.yaml@release/26.10

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ if hasArg tarball; then
649649
-v "${BUILD_OUTPUT_DIR_ABS}:/build:rw" \
650650
"${DOCKER_ENV_VARS[@]}" \
651651
--env CI="${CI:-false}" \
652+
--env PARALLEL_LEVEL="${PARALLEL_LEVEL}" \
652653
--env RAPIDS_BUILD_TYPE="${RAPIDS_BUILD_TYPE:-}" \
653654
--env-file <(env | grep -E '^AWS_(ACCESS_KEY_ID|SECRET_ACCESS_KEY|SESSION_TOKEN)=') \
654655
"${CUVS_TARBALL_IMAGE_NAME}" \

fern/pages/build.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,18 @@ The helper accepts the following environment variables:
7373

7474
| Variable | Default | Purpose |
7575
| --- | --- | --- |
76-
| `CUVS_TARBALL_CUDA_VERSION` | `13.3.0` | Selects the CUDA version in the `rapidsai/ci-wheel` base image. |
77-
| `CUVS_TARBALL_PYTHON_VERSION` | `3.14` | Selects the Python version in the `rapidsai/ci-wheel` base image. |
78-
| `CUVS_TARBALL_BUILD_OUTPUT_DIR` | `./build` | Selects the host directory where the tarball is written. |
76+
| `CUVS_TARBALL_CUDA_VERSION` | `13.3.0` | CUDA version for the `rapidsai/ci-wheel` base image. |
77+
| `CUVS_TARBALL_PYTHON_VERSION` | `3.14` | Python version for the `rapidsai/ci-wheel` base image. |
78+
| `CUVS_TARBALL_BUILD_OUTPUT_DIR` | `./build` | Host directory where the tarball is written. |
7979

80-
To select CUDA and Python versions, set environment variables to exact versions from a valid [`rapidsai/ci-wheel` image tag](https://hub.docker.com/r/rapidsai/ci-wheel/tags). For example:
80+
CUDA and Python versions should match an existing `rapidsai/ci-wheel` tag.
81+
See https://hub.docker.com/r/rapidsai/ci-wheel/tags
82+
83+
For example:
8184

8285
```bash
83-
CUVS_TARBALL_CUDA_VERSION=12.9.2 \
84-
CUVS_TARBALL_PYTHON_VERSION=3.11 \
86+
CUVS_TARBALL_CUDA_VERSION=13.3.0 \
87+
CUVS_TARBALL_PYTHON_VERSION=3.14 \
8588
./build.sh tarball
8689
```
8790

@@ -108,28 +111,25 @@ The archive contains the headers, libraries, CMake configuration, and license in
108111
If you do not want to use the helper script, build the image directly from the repository root:
109112

110113
```bash
111-
docker build -f Dockerfile.standalone -t cuvs-standalone-c .
114+
docker build \
115+
-f Dockerfile.standalone \
116+
--build-arg CUDA_VERSION="13.3.0" \
117+
--build-arg PYTHON_VERSION="3.14" \
118+
--build-arg RAPIDS_VERSION="$(head -1 ./VERSION | cut -d. -f1,2 )" \
119+
-t cuvs-standalone-c:local \
120+
.
112121
```
113122

114-
This command builds from the published `rapidsai/ci-wheel` base image and tags the resulting local image as `cuvs-standalone-c`. The following `docker run` examples use that same local tag; Docker does not pull an image named `cuvs-standalone-c` from a registry.
123+
This command builds a local image and tags it as `cuvs-standalone-c:local`.
115124

116-
Run the build and mount the repository plus an output directory:
125+
Run the build in a container using that image and mount the repository plus an output directory:
117126

118127
```bash
119128
mkdir -p build
120129
docker run --rm \
121130
-v "${PWD}:/workspace" \
122131
-v "${PWD}/build:/build" \
123-
cuvs-standalone-c
124-
```
125-
126-
To select different CUDA and Python versions, pass build arguments:
127-
128-
```bash
129-
docker build -f Dockerfile.standalone \
130-
--build-arg CUDA_VERSION=12.9.2 \
131-
--build-arg PYTHON_VERSION=3.11 \
132-
-t cuvs-standalone-c .
132+
cuvs-standalone-c:local
133133
```
134134

135135
Mount another host directory at `/build` to change the output location:

0 commit comments

Comments
 (0)