How to set --runtime nvidia in YAML file of k3s pod deployment for a GPU application?

Jetson NX
Jetpack 4.6

I want to run a GPU program in a k3s pod, but it shows the error

ImportError: cannot open shared object file: No such file or directory

it seems it cannot use GPU resource, because when I use docker run --runtime nvidia … it works. How to set something like “–runtime nvidia” in the YAML for k3s deployment?


Below is a sharing for k3s with GPU support:


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.