An accident caused by a school power failure.
UserWarning: CUDA initialization: CUDA unknown error – this may be due
to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero. (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:109.) return torch._C._cuda_getDeviceCount() > 0
Solution.
I did reinstall pytorch and then restarted.
But today’s hiccups were more than that.
UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
Solution:
conda install -c anaconda keras-gpu
But there are new mistakes:
ImportError: cannot import name ‘keras_ export’
I’m completely stuck and can only remove it:
conda list
Viewing all the packages configured in our CONDA environment, we can see that the following three packages are associated with tensorflow:
there is no way. We can only uninstall one package and reconfigure the environment:
pip uninstall ‘Package Name’
Read More:
- [Solved] CUDA error:-UserWarning: CUDA initialization: CUDA unknown error
- 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
- CUDA_ERROR_SYSTEM_DRIVER_MISMATCH [How to Solve]
- [Solved] RuntimeError: CUDA error: out of memory
- [Solved] RuntimeError: CUDA error: invalid device ordinal
- PyCharm Error: RuntimeError: CUDA out of memory [How to Solve]
- [Solved] NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL ,unhandled cuda error, NCCLversion 2.7.8
- CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublasCreate(handle)`
- [Solved] Runtimeerror: CUDA error: device side assert triggered
- [Solved] RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling `cublasCreate(handle)`
- How to Solve error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe‘ failed
- [Solved] CUDA fails to compile in visual studio and throws error msb3721 and nvcc fatal
- [Solved] matlab Error: CUDA_ERROR_SYSTEM_NOT_READY
- [Solved] CUDA error: device side assert triggered classification task error
- Tensorflow Error polling for event status: failed to query event: CUDA_ERROR_ILLEGAL_ADDRESS
- Error 1 error MSB3721: Command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe” -genco
- [Solved] torch Do Targer Detection Error: RuntimeError: CUDA error: device-side assert triggered
- TensorRT model quantization error: Error Code 1: Cuda Runtime (an illegal memory access was encountered)
- Deep learning model error + 1: CUDA error: device side assert triggered