forked from codeplaysoftware/cutlass-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to run cuda unit tests (codeplaysoftware#103)
Add a new workflow to build Cutlass for SM90a using cuda and run the unit tests
- Loading branch information
1 parent
c64deb0
commit 386f854
Showing
1 changed file
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Cuda Test" | ||
|
||
on: | ||
push: | ||
branches: [ "sycl-develop" ] | ||
pull_request: | ||
branches: [ "sycl-develop" ] | ||
workflow_dispatch: | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
run-tests: | ||
name: Run cuda tests | ||
runs-on: cp-nvidia-gpu | ||
timeout-minutes: 120 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
nvidia-smi | ||
export CUDACXX=/usr/local/cuda/bin/nvcc | ||
cmake -G Ninja -DCUTLASS_NVCC_ARCHS="90a" | ||
cmake --build . | ||
- name: Unit test | ||
shell: bash | ||
run: | | ||
cmake --build . --target test_unit -j |