try-gpu #1
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
name: Test Self Hosted Runners | |
on: push | |
jobs: | |
job1_cpu: | |
runs-on: linux-amd64-cpu8 | |
steps: | |
- name: hello | |
run: echo "hello" | |
job2_gpu: | |
runs-on: linux-amd64-gpu-v100-latest-1 | |
container: # GPU jobs must run in a container | |
image: nvidia/cuda:12.0.0-base-ubuntu22.04 | |
env: | |
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} # GPU jobs must set this container env variable | |
steps: | |
- name: hello | |
run: | | |
echo "hello" | |
nvidia-smi |