Updating the error / exit code handling. Instead of exiting with EXIT_FAILURE for not having CUDA Device, exit with ENODEV which represent no device (since no GPU is found).
For exits causes by invalid argument parsing, updating from EXIT_FAILURE to EINVAL which is invalid argument.
These changes makes it hard to track when GPU fails (can translate exit code to issue more quickly).
Updating the error / exit code handling. Instead of exiting with
EXIT_FAILURE
for not having CUDA Device, exit withENODEV
which represent no device (since no GPU is found). For exits causes by invalid argument parsing, updating fromEXIT_FAILURE
toEINVAL
which is invalid argument. These changes makes it hard to track when GPU fails (can translate exit code to issue more quickly).