-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into contributor-guide-pt2
- Loading branch information
Showing
213 changed files
with
4,527 additions
and
6,926 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: build and test | ||
|
||
defaults: | ||
run: | ||
shell: bash -exo pipefail {0} | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
cpu: {type: string, required: true} | ||
test_name: {type: string, required: false} | ||
build_script: {type: string, required: false} | ||
test_script: {type: string, required: false} | ||
container_image: {type: string, required: false} | ||
run_tests: {type: boolean, required: false, default: true} | ||
|
||
jobs: | ||
build: | ||
name: Build ${{inputs.test_name}} | ||
uses: ./.github/workflows/run-as-coder.yml | ||
with: | ||
name: Build ${{inputs.test_name}} | ||
runner: linux-${{inputs.cpu}}-cpu16 | ||
image: ${{ inputs.container_image }} | ||
command: | | ||
${{ inputs.build_script }} | ||
test: | ||
needs: build | ||
if: ${{ !cancelled() && ( needs.build.result == 'success' || needs.build.result == 'skipped' ) && inputs.run_tests}} | ||
name: Test ${{inputs.test_name}} | ||
uses: ./.github/workflows/run-as-coder.yml | ||
with: | ||
name: Test ${{inputs.test_name}} | ||
runner: linux-${{inputs.cpu}}-gpu-v100-latest-1 | ||
image: ${{inputs.container_image}} | ||
command: | | ||
nvidia-smi | ||
${{ inputs.test_script }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Build Windows | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
test_name: {type: string, required: false} | ||
build_script: {type: string, required: false} | ||
container_image: {type: string, required: false} | ||
|
||
jobs: | ||
prepare: | ||
name: Build ${{inputs.test_name}} | ||
runs-on: windows-2022 | ||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
SCCACHE_BUCKET: rapids-sccache-devs | ||
SCCACHE_REGION: us-east-2 | ||
SCCACHE_IDLE_TIMEOUT: 0 | ||
SCCACHE_S3_USE_SSL: true | ||
SCCACHE_S3_NO_CREDENTIALS: false | ||
steps: | ||
- name: Get AWS credentials for sccache bucket | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
role-to-assume: arn:aws:iam::279114543810:role/gha-oidc-NVIDIA | ||
aws-region: us-east-2 | ||
role-duration-seconds: 43200 # 12 hours | ||
- name: Fetch ${{ inputs.container_image }} | ||
shell: powershell | ||
run: docker pull ${{ inputs.container_image }} | ||
- name: Run the tests | ||
shell: powershell | ||
run: >- | ||
docker run ${{ inputs.container_image }} powershell -c "[System.Environment]::SetEnvironmentVariable('AWS_ACCESS_KEY_ID','${{env.AWS_ACCESS_KEY_ID}}') | ||
[System.Environment]::SetEnvironmentVariable('AWS_SECRET_ACCESS_KEY','${{env.AWS_SECRET_ACCESS_KEY}}') | ||
[System.Environment]::SetEnvironmentVariable('AWS_SESSION_TOKEN','${{env.AWS_SESSION_TOKEN }}') | ||
[System.Environment]::SetEnvironmentVariable('SCCACHE_BUCKET','${{env.SCCACHE_BUCKET}}') | ||
[System.Environment]::SetEnvironmentVariable('SCCACHE_REGION','${{env.SCCACHE_REGION}}') | ||
[System.Environment]::SetEnvironmentVariable('SCCACHE_IDLE_TIMEOUT','${{env.SCCACHE_IDLE_TIMEOUT}}') | ||
[System.Environment]::SetEnvironmentVariable('SCCACHE_S3_USE_SSL','${{env.SCCACHE_S3_USE_SSL}}') | ||
[System.Environment]::SetEnvironmentVariable('SCCACHE_S3_NO_CREDENTIALS','${{env.SCCACHE_S3_NO_CREDENTIALS}}') | ||
git clone https://github.com/NVIDIA/cccl.git; | ||
cd cccl; | ||
git fetch --all; | ||
git checkout ${{github.ref_name}}; | ||
${{inputs.build_script}};" | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build examples | ||
on: | ||
workflow_call: | ||
inputs: | ||
per_cuda_compiler_matrix: {type: string, required: true} | ||
devcontainer_version: {type: string, required: true} | ||
is_windows: {type: boolean, required: true} | ||
|
||
jobs: | ||
# Using a matrix to dispatch to the build-and-test reusable workflow for each build configuration | ||
# ensures that the build/test steps can overlap across different configurations. For example, | ||
# the build step for CUDA 12.1 + gcc 9.3 can run at the same time as the test step for CUDA 11.0 + clang 11. | ||
build_examples: | ||
name: Build examples | ||
if: ${{ !inputs.is_windows }} | ||
uses: ./.github/workflows/run-as-coder.yml | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: ${{ fromJSON(inputs.per_cuda_compiler_matrix) }} | ||
with: | ||
name: CCCL Examples CUDA${{matrix.cuda}} ${{matrix.compiler.name}}${{matrix.compiler.version}} | ||
runner: linux-${{matrix.cpu}}-gpu-v100-latest-1 | ||
image: rapidsai/devcontainers:${{inputs.devcontainer_version}}-cpp-${{matrix.compiler.name}}${{matrix.compiler.version}}-cuda${{matrix.cuda}}-${{matrix.os}} | ||
command: | | ||
cmake -S . --preset=examples -DCCCL_EXAMPLE_CPM_TAG=${GITHUB_SHA} -DCMAKE_CUDA_COMPILER=nvcc | ||
ctest --preset=examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
*build*/ | ||
.cache | ||
.aws | ||
.config | ||
.config | ||
_deps/catch2-src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.