A common error is that nvidia-smi outputs an error instead of the expected data.
Example:
# nvidia-smi
Failed to initialize NVML: Driver/library version mismatch
NVML library version: 535.161
# echo $?
18
This needs to be handled in the code.
(Pull request coming up)
A common error is that
nvidia-smioutputs an error instead of the expected data.Example:
This needs to be handled in the code.
(Pull request coming up)