Created
April 10, 2023 20:45
-
-
Save stantonk/679637e75ed3cea3f17c5ab54902bddb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: gpu-test-vector-add | |
spec: | |
runtimeClassName: nvidia | |
restartPolicy: Never | |
containers: | |
- name: cuda-container | |
image: nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda10.2 | |
resources: | |
limits: | |
nvidia.com/gpu: 1 # requesting 1 GPU | |
tolerations: | |
- key: nvidia.com/gpu | |
operator: Exists | |
effect: NoSchedule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment