Do not move arrival_token in barrier::try_wait_* #1017
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 is the main workflow that runs on every PR and push to main | |
name: pr | |
defaults: | |
run: | |
shell: bash -euo pipefail {0} | |
on: | |
push: | |
branches: | |
- main | |
- "pull-request/[0-9]+" | |
# Only runs one instance of this workflow at a time for a given PR and cancels any in-progress runs when a new one starts. | |
concurrency: | |
group: ${{ github.workflow }}-on-${{ github.event_name }}-from-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
compute-nvcc-matrix: | |
name: Compute NVCC matrix | |
runs-on: ubuntu-latest | |
outputs: | |
CUDA_VERSIONS: ${{ steps.set-outputs.outputs.CUDA_VERSIONS }} | |
HOST_COMPILERS: ${{ steps.set-outputs.outputs.HOST_COMPILERS }} | |
PER_CUDA_COMPILER_MATRIX: ${{ steps.set-outputs.outputs.PER_CUDA_COMPILER_MATRIX }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Get full nvcc matrix | |
id: compute-nvcc-matrix | |
uses: ./.github/actions/compute-matrix | |
with: | |
matrix_file: './ci/matrix.yaml' | |
matrix_query: '.pull_request.nvcc' | |
- name: Set outputs | |
id: set-outputs | |
run: | | |
FULL_MATRIX='${{steps.compute-nvcc-matrix.outputs.matrix}}' | |
CUDA_VERSIONS=$(echo $FULL_MATRIX | jq -c '[.[] | .cuda] | unique') | |
echo "CUDA_VERSIONS=$CUDA_VERSIONS" | tee -a "$GITHUB_OUTPUT" | |
HOST_COMPILERS=$(echo $FULL_MATRIX | jq -c '[.[] | .compiler.name] | unique') | |
echo "HOST_COMPILERS=$HOST_COMPILERS" | tee -a "$GITHUB_OUTPUT" | |
PER_CUDA_COMPILER_MATRIX=$(echo $FULL_MATRIX | jq -c ' group_by(.cuda + .compiler.name) | map({(.[0].cuda + "-" + .[0].compiler.name): .}) | add') | |
echo "PER_CUDA_COMPILER_MATRIX=$PER_CUDA_COMPILER_MATRIX" | tee -a "$GITHUB_OUTPUT" | |
thrust: | |
name: Thrust CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }} | |
needs: compute-nvcc-matrix | |
uses: ./.github/workflows/dispatch-build-and-test.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
cuda_version: ${{ fromJSON(needs.compute-nvcc-matrix.outputs.CUDA_VERSIONS) }} | |
compiler: ${{ fromJSON(needs.compute-nvcc-matrix.outputs.HOST_COMPILERS) }} | |
with: | |
per_cuda_compiler_matrix: ${{ toJSON(fromJSON(needs.compute-nvcc-matrix.outputs.PER_CUDA_COMPILER_MATRIX)[ format('{0}-{1}', matrix.cuda_version, matrix.compiler) ]) }} | |
build_script: "./ci/build_thrust.sh" | |
test_script: "./ci/test_thrust.sh" | |
cub: | |
name: CUB CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }} | |
needs: compute-nvcc-matrix | |
uses: ./.github/workflows/dispatch-build-and-test.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
cuda_version: ${{ fromJSON(needs.compute-nvcc-matrix.outputs.CUDA_VERSIONS) }} | |
compiler: ${{ fromJSON(needs.compute-nvcc-matrix.outputs.HOST_COMPILERS) }} | |
with: | |
per_cuda_compiler_matrix: ${{ toJSON(fromJSON(needs.compute-nvcc-matrix.outputs.PER_CUDA_COMPILER_MATRIX)[ format('{0}-{1}', matrix.cuda_version, matrix.compiler) ]) }} | |
build_script: "./ci/build_cub.sh" | |
test_script: "./ci/test_cub.sh" | |
libcudacxx: | |
name: libcudacxx CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }} | |
needs: compute-nvcc-matrix | |
uses: ./.github/workflows/dispatch-build-and-test.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
cuda_version: ${{ fromJSON(needs.compute-nvcc-matrix.outputs.CUDA_VERSIONS) }} | |
compiler: ${{ fromJSON(needs.compute-nvcc-matrix.outputs.HOST_COMPILERS) }} | |
with: | |
per_cuda_compiler_matrix: ${{ toJSON(fromJSON(needs.compute-nvcc-matrix.outputs.PER_CUDA_COMPILER_MATRIX)[ format('{0}-{1}', matrix.cuda_version, matrix.compiler) ]) }} | |
build_script: "./ci/build_libcudacxx.sh" | |
test_script: "./ci/test_libcudacxx.sh" | |
# This job is the final job that runs after all other jobs and is used for branch protection status checks. | |
# See: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks | |
ci: | |
runs-on: ubuntu-latest | |
name: CI | |
needs: | |
- libcudacxx | |
- cub | |
- thrust | |
steps: | |
- run: echo "CI success" |