Skip to content

Commit

Permalink
Use comma-separated build arch list
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Aug 21, 2023
1 parent a7a2a4d commit 858f7a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
build:
needs: devcontainer_image
if: inputs.build_script != '' && needs.devcontainer_image.outputs.image_name != ''
name: Build ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}
name: Build ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}/SM${{inputs.gpu_build_archs}}
uses: ./.github/workflows/run-as-coder.yml
with:
name: Build ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}
name: Build ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}SM${{inputs.gpu_build_archs}}
runner: linux-${{inputs.cpu}}-cpu16
image: ${{ needs.devcontainer_image.outputs.image_name }}
command: |
Expand All @@ -67,10 +67,10 @@ jobs:
test:
needs: [devcontainer_image, build]
if: ${{ !cancelled() && ( needs.build.result == 'success' || needs.build.result == 'skipped' ) && inputs.test_script != '' && needs.devcontainer_image.outputs.image_name != '' && inputs.run_tests}}
name: Test ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}
name: Test ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}/SM${{inputs.gpu_build_archs}}
uses: ./.github/workflows/run-as-coder.yml
with:
name: Test ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}
name: Test ${{inputs.compiler}}${{inputs.compiler_version}}/C++${{inputs.std}}SM${{inputs.gpu_build_archs}}
runner: linux-${{inputs.cpu}}-gpu-v100-latest-1
image: ${{ needs.devcontainer_image.outputs.image_name }}
command: |
Expand Down
5 changes: 2 additions & 3 deletions ci/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ devcontainer_version: '23.08'
# version: The compiler version
# exe: The unverionsed compiler binary name
# To use the system's default compiler set "exe: 'c++'" or "name: 'cc'"
# gpu_build_archs: The GPU architectures to build for using the syntax of CMAKE_CUDA_ARCHITECTURES (semi-colon separated list)
# gpu_build_archs: The GPU architectures to build for (comma-separated list)
# std: The C++ standards to build for
# This field is unique as it will generate an independent build/test job for each value

Expand All @@ -44,5 +44,4 @@ pull_request:
# There is currently only one CUDA 11.8 image available which comes with the system's default C++ compiler. For ubuntu22.04, we know that the default CC is gcc11.3
- {cuda: *cuda_oldest, os: 'ubuntu22.04', cpu: 'amd64', compiler: {name: 'gcc', version: '11', exe: 'c++'}, gpu_build_archs: '60', std: [17], jobs: ['build', 'test']}
- {cuda: *cuda_newest, os: 'ubuntu22.04', cpu: 'amd64', compiler: {name: 'gcc', version: '12', exe: 'g++'}, gpu_build_archs: '70', std: [17], jobs: ['build', 'test']}
- {cuda: *cuda_newest, os: 'ubuntu22.04', cpu: 'amd64', compiler: {name: 'gcc', version: '12', exe: 'g++'}, gpu_build_archs: '80', std: [17], jobs: ['build']}
- {cuda: *cuda_newest, os: 'ubuntu22.04', cpu: 'amd64', compiler: {name: 'gcc', version: '12', exe: 'g++'}, gpu_build_archs: '90', std: [17], jobs: ['build']}
- {cuda: *cuda_newest, os: 'ubuntu22.04', cpu: 'amd64', compiler: {name: 'gcc', version: '12', exe: 'g++'}, gpu_build_archs: '80,90', std: [17], jobs: ['build']}

0 comments on commit 858f7a0

Please sign in to comment.