Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .devcontainer/cuda12.5-gcc13/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:25.08-cpp-gcc13-cuda12.5",
"hostRequirements": {
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
"-c",
"mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}; mkdir -m 0755 -p ${localWorkspaceFolder}/{build,wheelhouse}; if test -z ${localEnv:WSLENV}; then docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/build --opt o=bind cccl-build; docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/wheelhouse --opt o=bind cccl-wheelhouse; else docker volume create cccl-build; docker volume create cccl-wheelhouse; fi;"
],
"containerEnv": {
"SCCACHE_REGION": "us-east-2",
"SCCACHE_BUCKET": "rapids-sccache-devs",
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
"DEVCONTAINER_NAME": "cuda12.5-gcc13",
"CCCL_CUDA_VERSION": "12.5",
"CCCL_HOST_COMPILER": "gcc",
"CCCL_HOST_COMPILER_VERSION": "13",
"CCCL_BUILD_INFIX": "cuda12.5-gcc13",
"CCCL_CUDA_EXTENDED": "false",
"HOST_WORKSPACE": "${localWorkspaceFolder}"
},
"workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent",
"mounts": [
"source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent",
"source=cccl-build,target=/home/coder/cccl/build",
"source=cccl-wheelhouse,target=/home/coder/cccl/wheelhouse"
],
"customizations": {
"vscode": {
"extensions": [
"llvm-vs-code-extensions.vscode-clangd",
"seaube.clangformat",
"nvidia.nsight-vscode-edition",
"ms-vscode.cmake-tools"
],
"settings": {
"editor.defaultFormatter": "seaube.clangformat",
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
"files.trimTrailingWhitespace": true
}
}
},
"name": "cuda12.5-gcc13"
}
56 changes: 56 additions & 0 deletions .devcontainer/cuda12.6-gcc13/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:25.08-cpp-gcc13-cuda12.6",
"hostRequirements": {
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
"-c",
"mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}; mkdir -m 0755 -p ${localWorkspaceFolder}/{build,wheelhouse}; if test -z ${localEnv:WSLENV}; then docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/build --opt o=bind cccl-build; docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/wheelhouse --opt o=bind cccl-wheelhouse; else docker volume create cccl-build; docker volume create cccl-wheelhouse; fi;"
],
"containerEnv": {
"SCCACHE_REGION": "us-east-2",
"SCCACHE_BUCKET": "rapids-sccache-devs",
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
"DEVCONTAINER_NAME": "cuda12.6-gcc13",
"CCCL_CUDA_VERSION": "12.6",
"CCCL_HOST_COMPILER": "gcc",
"CCCL_HOST_COMPILER_VERSION": "13",
"CCCL_BUILD_INFIX": "cuda12.6-gcc13",
"CCCL_CUDA_EXTENDED": "false",
"HOST_WORKSPACE": "${localWorkspaceFolder}"
},
"workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent",
"mounts": [
"source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent",
"source=cccl-build,target=/home/coder/cccl/build",
"source=cccl-wheelhouse,target=/home/coder/cccl/wheelhouse"
],
"customizations": {
"vscode": {
"extensions": [
"llvm-vs-code-extensions.vscode-clangd",
"seaube.clangformat",
"nvidia.nsight-vscode-edition",
"ms-vscode.cmake-tools"
],
"settings": {
"editor.defaultFormatter": "seaube.clangformat",
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
"files.trimTrailingWhitespace": true
}
}
},
"name": "cuda12.6-gcc13"
}
56 changes: 56 additions & 0 deletions .devcontainer/cuda12.8-gcc13/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:25.08-cpp-gcc13-cuda12.8",
"hostRequirements": {
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
"-c",
"mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}; mkdir -m 0755 -p ${localWorkspaceFolder}/{build,wheelhouse}; if test -z ${localEnv:WSLENV}; then docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/build --opt o=bind cccl-build; docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/wheelhouse --opt o=bind cccl-wheelhouse; else docker volume create cccl-build; docker volume create cccl-wheelhouse; fi;"
],
"containerEnv": {
"SCCACHE_REGION": "us-east-2",
"SCCACHE_BUCKET": "rapids-sccache-devs",
"AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs",
"HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history",
"DEVCONTAINER_NAME": "cuda12.8-gcc13",
"CCCL_CUDA_VERSION": "12.8",
"CCCL_HOST_COMPILER": "gcc",
"CCCL_HOST_COMPILER_VERSION": "13",
"CCCL_BUILD_INFIX": "cuda12.8-gcc13",
"CCCL_CUDA_EXTENDED": "false",
"HOST_WORKSPACE": "${localWorkspaceFolder}"
},
"workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent",
"mounts": [
"source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent",
"source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent",
"source=cccl-build,target=/home/coder/cccl/build",
"source=cccl-wheelhouse,target=/home/coder/cccl/wheelhouse"
],
"customizations": {
"vscode": {
"extensions": [
"llvm-vs-code-extensions.vscode-clangd",
"seaube.clangformat",
"nvidia.nsight-vscode-edition",
"ms-vscode.cmake-tools"
],
"settings": {
"editor.defaultFormatter": "seaube.clangformat",
"editor.formatOnSave": true,
"clang-format.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--header-insertion=never",
"--compile-commands-dir=${workspaceFolder}"
],
"files.eol": "\n",
"files.trimTrailingWhitespace": true
}
}
},
"name": "cuda12.8-gcc13"
}
132 changes: 132 additions & 0 deletions .github/actions/upload-artifacts/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
name: "Upload Artifacts"
description: "Upload an arbitrary (but limited) number of artifacts."

inputs:
artifacts:
description: "JSCN array objects produced via ci/util/artifacts/upload/print_matrix.sh. Each object must include 'name', 'path', 'retention_days', and 'compression_level'."
required: true

runs:
using: "composite"
steps:
- name: Parse artifact array
id: parse
shell: bash --noprofile --norc -euo pipefail {0}
run: |
# Save artifacts json for parsing:
jq -r '.' <<< '${{ inputs.artifacts }}' > artifacts.json

echo "::group::List of artifacts to upload"
cat artifacts.json
echo "::endgroup::"

max_artifacts=10

count=$(jq '. | length' artifacts.json)
if [ "$count" -gt "$max_artifacts" ]; then
echo "Error: Too many artifacts to upload. Maximum is $max_artifacts, got $count."
echo "Update the action to support more artifacts if needed."
exit 1
fi

for i in $(seq 0 $((count - 1))); do
name=$(jq -r ".[$i].name" artifacts.json)
path=$(jq -r ".[$i].path" artifacts.json)
retention_days=$(jq -r ".[$i].retention_days" artifacts.json)
compression_level=$(jq -r ".[$i].compression_level" artifacts.json)

echo "enabled$i=true" >> "${GITHUB_OUTPUT}"
echo "name$i=$name" >> "${GITHUB_OUTPUT}"
echo "path$i=$path" >> "${GITHUB_OUTPUT}"
echo "retention_days$i=$retention_days" >> "${GITHUB_OUTPUT}"
echo "compression_level$i=$compression_level" >> "${GITHUB_OUTPUT}"
done

for i in $(seq $((count)) $((max_artifacts - 1))); do
echo "enabled$i=false" >> "${GITHUB_OUTPUT}"
echo "name$i=" >> "${GITHUB_OUTPUT}"
echo "path$i=" >> "${GITHUB_OUTPUT}"
echo "retention_days$i=" >> "${GITHUB_OUTPUT}"
echo "compression_level$i=" >> "${GITHUB_OUTPUT}"
done

- name: Upload artifact 0
if: ${{ steps.parse.outputs.enabled0 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name0 }}
path: ${{ steps.parse.outputs.path0 }}
retention-days: ${{ steps.parse.outputs.retention_days0 }}
compression-level: ${{ steps.parse.outputs.compression_level0 }}
- name: Upload artifact 1
if: ${{ steps.parse.outputs.enabled1 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name1 }}
path: ${{ steps.parse.outputs.path1 }}
retention-days: ${{ steps.parse.outputs.retention_days1 }}
compression-level: ${{ steps.parse.outputs.compression_level1 }}
- name: Upload artifact 2
if: ${{ steps.parse.outputs.enabled2 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name2 }}
path: ${{ steps.parse.outputs.path2 }}
retention-days: ${{ steps.parse.outputs.retention_days2 }}
compression-level: ${{ steps.parse.outputs.compression_level2 }}
- name: Upload artifact 3
if: ${{ steps.parse.outputs.enabled3 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name3 }}
path: ${{ steps.parse.outputs.path3 }}
retention-days: ${{ steps.parse.outputs.retention_days3 }}
compression-level: ${{ steps.parse.outputs.compression_level3 }}
- name: Upload artifact 4
if: ${{ steps.parse.outputs.enabled4 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name4 }}
path: ${{ steps.parse.outputs.path4 }}
retention-days: ${{ steps.parse.outputs.retention_days4 }}
compression-level: ${{ steps.parse.outputs.compression_level4 }}
- name: Upload artifact 5
if: ${{ steps.parse.outputs.enabled5 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name5 }}
path: ${{ steps.parse.outputs.path5 }}
retention-days: ${{ steps.parse.outputs.retention_days5 }}
compression-level: ${{ steps.parse.outputs.compression_level5 }}
- name: Upload artifact 6
if: ${{ steps.parse.outputs.enabled6 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name6 }}
path: ${{ steps.parse.outputs.path6 }}
retention-days: ${{ steps.parse.outputs.retention_days6 }}
compression-level: ${{ steps.parse.outputs.compression_level6 }}
- name: Upload artifact 7
if: ${{ steps.parse.outputs.enabled7 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name7 }}
path: ${{ steps.parse.outputs.path7 }}
retention-days: ${{ steps.parse.outputs.retention_days7 }}
compression-level: ${{ steps.parse.outputs.compression_level7 }}
- name: Upload artifact 8
if: ${{ steps.parse.outputs.enabled8 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name8 }}
path: ${{ steps.parse.outputs.path8 }}
retention-days: ${{ steps.parse.outputs.retention_days8 }}
compression-level: ${{ steps.parse.outputs.compression_level8 }}
- name: Upload artifact 9
if: ${{ steps.parse.outputs.enabled9 == 'true' }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.parse.outputs.name9 }}
path: ${{ steps.parse.outputs.path9 }}
retention-days: ${{ steps.parse.outputs.retention_days9 }}
compression-level: ${{ steps.parse.outputs.compression_level9 }}
44 changes: 40 additions & 4 deletions .github/actions/workflow-build/build-workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def get_job_type_info(job):
result["gpu"] = False
if "cuda_ext" not in result:
result["cuda_ext"] = False
if "force_producer_ctk" not in result:
result["force_producer_ctk"] = None
if "needs" not in result:
result["needs"] = None
if "invoke" not in result:
Expand Down Expand Up @@ -378,7 +380,6 @@ def is_nvhpc(matrix_job):

def generate_dispatch_group_name(matrix_job):
project = get_project(matrix_job["project"])
ctk = matrix_job["ctk"]
device_compiler = get_device_compiler(matrix_job)
host_compiler = get_host_compiler(matrix_job["cxx"])

Expand All @@ -390,11 +391,12 @@ def generate_dispatch_group_name(matrix_job):
else:
compiler_info = f"{device_compiler['name']}-{device_compiler['version']} {host_compiler['name']}"

return f"{project['name']} CTK{ctk} {compiler_info}"
return f"{project['name']} {compiler_info}"


def generate_dispatch_job_name(matrix_job, job_type):
job_info = get_job_type_info(job_type)
ctk = matrix_job["ctk"]

@alliepiper alliepiper Jun 17, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change just moves CTK info from the CI group name -> CI job name to support producers/consumers on different CTK versions. This is to allow Python to build wheels on 12.9 and test on older 12.x.

std_str = ("C++" + str(matrix_job["std"]) + " ") if "std" in matrix_job else ""
cpu_str = matrix_job["cpu"]
gpu_str = (", " + matrix_job["gpu"].upper()) if job_info["gpu"] else ""
Expand All @@ -410,7 +412,7 @@ def generate_dispatch_job_name(matrix_job, job_type):

host_compiler = get_host_compiler(matrix_job["cxx"])

config_tag = f"{std_str}{host_compiler['name']}{host_compiler['version']}"
config_tag = f"CTK{ctk} {std_str}{host_compiler['name']}{host_compiler['version']}"

extra_info = (
f":{cuda_compile_arch}{cmake_options}"
Expand Down Expand Up @@ -549,7 +551,41 @@ def generate_dispatch_job_json(matrix_job, job_type):

# Create a single build producer, and a separate consumer for each test_job_type:
def generate_dispatch_two_stage_json(matrix_job, producer_job_type, consumer_job_types):
producer_json = generate_dispatch_job_json(matrix_job, producer_job_type)
# If any consumer job types have 'force_producer_ctk' set, use that CTK for the producer job.
producer_ctk = matrix_job["ctk"]
for consumer_job_type in consumer_job_types:
job_info = get_job_type_info(consumer_job_type)
if job_info["force_producer_ctk"]:
producer_ctk = job_info["force_producer_ctk"]

# Verify that all consumer jobs require the same producer ctk.
# If this is needed down the road, we'll need to detect this and split the two-stage job
# at an earlier level.
for consumer_job_type in consumer_job_types:
job_info = get_job_type_info(consumer_job_type)
if (
job_info["force_producer_ctk"]
and job_info["force_producer_ctk"] != producer_ctk
):
raise Exception(
f"'force_producer_ctk' value mismatch for consumer job '{consumer_job_type}': "
f"expected '{producer_ctk}', got '{job_info['force_producer_ctk']}'"
f" in matrix job: {matrix_job['origin']['original_matrix_job']}"
)

if producer_ctk != matrix_job["ctk"]:
print(
f"Producer job '{producer_job_type}' for matrix job '{matrix_job['origin']['workflow_name']}' "
+ f"will use a forced CTK version '{producer_ctk}' instead of the matrix job version '{matrix_job['ctk']}'",
file=sys.stderr,
)

producer_matrix_job = copy.deepcopy(matrix_job)
producer_matrix_job["ctk"] = producer_ctk
else:
producer_matrix_job = matrix_job

producer_json = generate_dispatch_job_json(producer_matrix_job, producer_job_type)

consumers_json = []
for consumer_job_type in consumer_job_types:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/workflow-results/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
uses: actions/download-artifact@v4
with:
path: jobs
pattern: jobs-*
pattern: zz_jobs-*
merge-multiple: true

- name: Clean up job artifacts
Expand Down
Loading