Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cuda: check for gpu instead of /dev/nvidiactl
The check for `/dev/nvidiactl` to determine if the CUDA plugin can be used is unreliable because in some cases the default path for driver installation is different [1]. This patch changes the logic to check if a GPU device is available in `/proc/driver/nvidia/gpus/`. This is a more accurate indicator, and the subsequent check for `--action` option would confirm if the NVIDIA driver supports checkpoint/restore. [1] https://github.com/NVIDIA/gpu-operator Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
- Loading branch information