The Microk8s Addon's GPU is not working.
another-tee opened this issue · comments
I try to follow this guide on my laptop https://microk8s.io/docs/addon-gpu, it gives me an error "Failed to allocate device vector A (error code CUDA driver version is insufficient for CUDA runtime version)!
[Vector addition of 50000 elements]"
Solved:
apiVersion: v1
kind: Pod
metadata:
name: cuda-vector-add
spec:
runtimeClassName: nvidia
restartPolicy: OnFailure
containers:
- name: cuda-vector-add
env:- name: NVIDIA_VISIBLE_DEVICES
value: all - name: NVIDIA_DRIVER_CAPABILITIES
value: compute,utility
image: "k8s.gcr.io/cuda-vector-add:v0.1"
resources:
limits:
nvidia.com/gpu: 1
- name: NVIDIA_VISIBLE_DEVICES