cuInit errors

In theory, cuInit() can returnCUDA_ERROR_INVALID_VALUE or CUDA_ERROR_INVALID_DEVICE.

  • About CUDA_ERROR_INVALID_VALUE : Is that returned when flags is not 0?
  • About CUDA_ERROR_INVALID_DEVICE: When is this returned? Is it when there aren’t any CUDA devices? Even then it doesn’t make that much sense.