Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Runtime] Use cudaGetDeviceCount to check if device exists (#16377)
Using `cudaDeviceGetAttribute` will set the global error code when the device doesn't exist and will impact subsequent CUDA API calls.
- Loading branch information