Skip to content
Draft
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/self_hosted_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
test:
name: test
runs-on: ubicloud-gpu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Smi
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,26 @@ Houston, we have a problem in section [1,0] From Apollo 13
Houston, we have a problem in section [0,1] From Apollo 13
Houston, we have a problem in section [1,1] From Apollo 13
```

## Run workflow locally

Requirements:
- Docker
- NVIDIA container toolkit
- [act](https://nektosact.com/)

Make sure following command works:
```shell
docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
```

Run workflow with:
```shell
act \
-P ubuntu-latest=nvidia/cuda:12.8.1-devel-ubuntu24.04 \
--container-options "--runtime=nvidia --gpus all" \
-W .github/workflows/self_hosted_ci.yml
# Should run nvdia-smi, compile with nvcc and run the compiled executable
```
(If your workflow does not use `runs-on: ubuntu-latest` then update the `-P` option accordingly.)
(Match the nvidia/cuda image tag with the cuda version reported by `nvidia-smi`)