diff --git a/.github/workflows/self_hosted_ci.yml b/.github/workflows/self_hosted_ci.yml index d6f4481..44e7209 100644 --- a/.github/workflows/self_hosted_ci.yml +++ b/.github/workflows/self_hosted_ci.yml @@ -8,7 +8,7 @@ on: jobs: test: name: test - runs-on: ubicloud-gpu + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Smi diff --git a/README.md b/README.md index 241f422..89bccbf 100644 --- a/README.md +++ b/README.md @@ -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`)