1, problem
after the torch gpu version is installed, torch.cuda.is_available() always returns False; But the execution of the torch. Backends. Cudnn. Enabled is TRUE. p>
execute nvidia-smi command without error, can display the driver information;
on the Internet, search the solution: execute the command:
sudo apt-get install nvidia-cuda-toolkit
still gives an error.
p>
2, problem analysis
try various way, or still returns False, normal if installed correctly, return TRUE, the problem is that version of the problem, either a video card driver versions do not match, either install packages do not match.
3. Solution:
(1) method 1: update the video card driver. This method is risky and troublesome to operate, so it is not recommended.
(2) method two: find the corresponding version of cudatoolkit for installation: the specific version of each driver support, as follows:
https://docs.nvidia.com/deploy/cuda-compatibility/#binary-compatibility
installation method:
conda install pytorch torchvision cudatoolkit=xxx(选择对应的版本) -c pytorch
p>
div>
Read More:
- FCOS No CUDA runtime is found, using CUDA_HOME=’/usr/local/cuda-10.0′
- RuntimeError: reciprocal is not implemented for type torch.cuda.LongTensor
- RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the
- Error: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
- After the new video card rtx3060 arrives, configure tensorflow and run “TF. Test. Is”_ gpu_ The solution of “available ()” output false
- RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:784 torch
- predict_proba is not available when probability=False
- RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/
- After the model is instantiated by keras, the result returns nonetype
- [MMCV]RuntimeError: CUDA error: no kernel image is available for execution on the device
- Tensorflow 2.1.0 error resolution: failed call to cuinit: CUDA_ ERROR_ NO_ DEVICE: no CUDA-capable device is detected
- Virtual host running ASP error resolution: HTTP/1.1 New Application Failed when allowSessionState is set to false in web.config
- CUDA Error: no kernel image is available for execution on device
- download (‘point’) False
- ValueError: Object arrays cannot be loaded when allow_ Pickle = false solution
- How to use torch.sum()
- CONDA install torch error
- RegOpenKeyEx returns error value 5
- ImportError: cannot import name ‘Optional‘ from ‘torch.jit.annotations‘ (F:\Python37\lib\site-packag
- Non 7z achieve. Error reported during CUDA installation. Solution: the installation file is damaged