Error Message:
RuntimeError: CUDA error: invalid device ordinal
Solution:
args.device = torch.device('cuda:' + str(args.gpu_id))
Used the gpu_id exceeds that of the GPU card
My code is written in the above way. Different codes are written in different ways. In the final analysis, just change the number after CUDA: to be appropriate
Read More:
- [Solved] Runtimeerror: CUDA error: device side assert triggered
- Cuda Runtime error (38) : no CUDA-capable device is detected
- TensorFlow-gpu Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
- [Solved] torch Do Targer Detection Error: RuntimeError: CUDA error: device-side assert triggered
- [Solved] RuntimeError: CUDA error: out of memory
- [Solved] RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`
- [Solved] CUDA error: device side assert triggered classification task error
- Deep learning model error + 1: CUDA error: device side assert triggered
- [Solved] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and
- PyCharm Error: RuntimeError: CUDA out of memory [How to Solve]
- [Solved] CUDA error:-UserWarning: CUDA initialization: CUDA unknown error
- [Solved] UserWarning: CUDA initialization: CUDA unknown error
- [Solved] MindSpore Error: “RuntimeError: Invalid data, Page size.”
- [Solved] Bringing up interface eth0: Error: No suitable device found: no device found for connection ‘System eth0’.
- Audit reported an error: “the device settings could not be applied because of the following error: Mme device internal error“
- CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublasCreate(handle)`
- [Solved] NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL ,unhandled cuda error, NCCLversion 2.7.8
- CUDA_ERROR_SYSTEM_DRIVER_MISMATCH [How to Solve]
- [Solved] matlab Error: CUDA_ERROR_SYSTEM_NOT_READY
- Error 1 error MSB3721: Command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe” -genco