wilicc / gpu-burn

Multi-GPU CUDA stress test
BSD 2-Clause "Simplified" License
1.37k stars 295 forks source link

Update gpu_burn-drv.cpp #75

Closed nahmed3536 closed 1 year ago

nahmed3536 commented 1 year ago

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).