Skip to content

Commit 59565c0

Browse files
committed
Testing RAPIDS w/ 2.8
[skip-matrix][skip-matx][skip-docs][skip-vdc]
1 parent cd6a090 commit 59565c0

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

.github/workflows/build-rapids.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ name: Build all RAPIDS repositories
33
on:
44
workflow_call:
55
inputs:
6+
override_cccl_tag:
7+
description: "If set, override the tag used for the CCCL repository."
8+
required: false
9+
default: ""
10+
type: string
11+
override_cccl_version:
12+
description: "If set, override the version used by rapids-cmake to patch CCCL."
13+
required: false
14+
default: ""
15+
type: string
616
enable_slack_alerts:
717
description: "If true, a message will be posted to the CCCL GHA CI Alert channel if the workflow fails."
818
required: false
@@ -57,6 +67,8 @@ jobs:
5767
role-duration-seconds: 43200 # 12h
5868
- name: Run command # Do not change this step's name, it is checked in parse-job-times.py
5969
env:
70+
CCCL_TAG: ${{ inputs.override_cccl_tag }}
71+
CCCL_VERSION: ${{ inputs.override_cccl_version }}
6072
CI: true
6173
RAPIDS_LIBS: ${{ matrix.libs }}
6274
# Uncomment any of these to customize the git repo and branch for a RAPIDS lib:
@@ -146,6 +158,8 @@ jobs:
146158
--docker \
147159
--cuda ${{matrix.cuda}} \
148160
--host rapids-conda \
161+
--env "CCCL_TAG=${CCCL_TAG}" \
162+
--env "CCCL_VERSION=${CCCL_VERSION}" \
149163
--env "AWS_ROLE_ARN=" \
150164
--env "AWS_REGION=$AWS_REGION" \
151165
--env "SCCACHE_REGION=$AWS_REGION" \

.github/workflows/ci-workflow-pull-request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ jobs:
201201
contents: read
202202
pull-requests: read
203203
uses: ./.github/workflows/build-rapids.yml
204+
with:
205+
override_cccl_tag: "branch/2.8.x"
206+
override_cccl_version: "2.8.0"
204207

205208
build-matx:
206209
name: Build MatX

ci/rapids/post-create-command.sh

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,31 @@ _create_rapids_cmake_override_json() {
6464
rapids_cmake_upstream="$(yq '.x-git-defaults.upstream' /opt/rapids-build-utils/manifest.yaml)";
6565
fi
6666

67+
# Define CCCL_TAG to override the default CCCL SHA. Otherwise the current HEAD of the local checkout is used.
68+
if test -n "${CCCL_TAG-}"; then
69+
# If CCCL_TAG is defined, fetch it to the local checkout
70+
git fetch origin "${CCCL_TAG}";
71+
cccl_sha="$(git -C "${HOME}/cccl" rev-parse FETCH_HEAD)";
72+
else
73+
cccl_sha="$(git -C "${HOME}/cccl" rev-parse HEAD)";
74+
fi
75+
echo "CCCL_VERSION: ${CCCL_VERSION-}";
76+
echo "CCCL_TAG: ${CCCL_TAG-}";
77+
echo "cccl_sha: ${cccl_sha}";
78+
6779
curl -fsSL -o- "https://raw.githubusercontent.com/${rapids_cmake_upstream}/rapids-cmake/${rapids_cmake_tag}/rapids-cmake/cpm/versions.json" \
68-
| jq -r ".packages.CCCL *= {\"git_url\": \"${HOME}/cccl\", \"git_tag\": \"$(git -C "${HOME}/cccl" rev-parse HEAD)\", \"always_download\": true}" \
69-
| tee ~/rapids-cmake-override-versions.json;
80+
| jq -r ".packages.CCCL *= {\"git_url\": \"${HOME}/cccl\", \"git_tag\": \"${cccl_sha}\", \"always_download\": true}" \
81+
> ~/rapids-cmake-override-versions-cccl-repo.json;
82+
83+
# Patch the override verision if CCCL_VERSION is defined:
84+
if test -n "${CCCL_VERSION-}"; then
85+
jq -r ".packages.CCCL.version = \"${CCCL_VERSION}\"" ~/rapids-cmake-override-versions-cccl-repo.json
86+
> ~/rapids-cmake-override-versions.json;
87+
else
88+
mv ~/rapids-cmake-override-versions-cccl-repo.json ~/rapids-cmake-override-versions.json;
89+
fi
90+
91+
cat ~/rapids-cmake-override-versions.json;
7092

7193
# Define default CMake args for each repo
7294
local -a cmake_args=(BUILD_TESTS BUILD_BENCHMARKS BUILD_PRIMS_BENCH BUILD_CUGRAPH_MG_TESTS);

0 commit comments

Comments
 (0)