RuntimeError: cuda runtime error (30)
I have been puzzled by this inexplicable error before. When I was ready to re install the driver and CUDA, I suddenly realized the root cause of this problem
the thing is, every time I want to run a program and go back to have a rest, I come back the next day to check. I’m disappointed that the program reported this error after running for a short time. Moreover, running the program after this error does not work. Only a simple and rude computer restart can solve the problem temporarily. But later found that if I have been using the computer during the day, the program will naturally run to the end, will not report such errors
so! It’s really CUDA, GPU’s problem, but it’s not because they have bugs, but because they are not playing a role in the rest, resulting in program errors! The fundamental reason is that my computer set a fixed time after the lock screen and automatically hang, so it is not CUDA. So there are such errors
If I set “don’t hang up” later, no such error will occur
write down your experience for the first time. I hope it can help you!
Read More:
- RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/
- (29)RuntimeError: cuda runtime error (999)
- RuntimeError: cuda runtime error (801) : operation not supported at ..
- RuntimeError:cuda runtime error (11) : invalid argument at /pytorch/aten/src/THC/generic
- FCOS No CUDA runtime is found, using CUDA_HOME=’/usr/local/cuda-10.0′
- (Solved) pytorch error: RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED (install cuda)
- Error: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
- Successfully solved the problem that visual studio code could not go to the definition, and there was no mouse prompt
- Successfully solved the problem of “runtimee” in RESNET dataset classification rror:expected scalar type Long but found Float”
- Successfully solved opencv error: assertion failed (SCN = = 3 | SCN = = 4) in CV:: cvtcolor
- [Solved] RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`
- RuntimeError: CUDA error: out of memory solution (valid for pro-test)
- RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`
- Runtimeerror using Python training model: CUDA out of memory error resolution
- RuntimeError: CUDA out of memory. Tried to allocate 600.00 MiB (GPU 0; 23.69 GiB total capacity)
- RuntimeError: reciprocal is not implemented for type torch.cuda.LongTensor
- [MMCV]RuntimeError: CUDA error: no kernel image is available for execution on the device
- RuntimeError: CUDA error: device-side assert triggered
- PyTorch Error: RuntimeError: CUDA error: CUBLAS_STATUS_INVALID_VALUE when calling cublasSgemm()
- RuntimeError: ‘lengths’ argument should be a 1D CPU int64 tensor, but got 1D cuda:0 Long tensor