pub const cudaErrorInvalidDevice: cudaError = 101;
This indicates that the device ordinal supplied by the user does not correspond to a valid CUDA device or that the action requested is invalid for the specified device.