I only install anaconda from Anaconda3-2022.10-Linux-x86_64.sh
And then run conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
import torch gives
File “/home/fenaux/anaconda3/lib/python3.9/site-packages/torch/init.py”, line 191, in
_load_global_deps()
File “/home/fenaux/anaconda3/lib/python3.9/site-packages/torch/init.py”, line 153, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File “/home/fenaux/anaconda3/lib/python3.9/ctypes/init.py”, line 382, in init
self._handle = _dlopen(self._name, mode)
OSError: libcufft.so.10: cannot open shared object file: No such file or directory
when I check in anaconda3/lib I only find libcufft.so.11
I also tried with
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia
an d result is exactly the same
I have no other environment and no other installation of pytorch
I made a new installation
After anaconda installation I ran conda install -c "nvidia/label/cuda-11.7.1" cuda-toolkit
and notice that the associated package include libcufft-10.7.2.91
then conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
import torch
torch.version.cuda
Out[4]: ‘11.7’
torch.backends.cudnn.enabled
Out[5]: True
but …
torch.cuda.is_available()
Out[2]: False
And I still have the problem after rebooting my computer
I do not know if that help, some additionnal informations
$ python -m torch.utils.collect_env
Collecting environment information…
PyTorch version: 2.0.0.dev20221210
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A
OS: Ubuntu 22.04.1 LTS (x86_64)
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.35
Python version: 3.9.13 (main, Aug 25 2022, 23:26:10) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.35
Is CUDA available: False
CUDA runtime version: 11.7.99
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Problem seems to be solved
I reinstall nvidia drivers with ubuntu package manager ( in parameters) nvidia-driver-525
Then reinstall anaconda and pytorch with conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch-nightly -c nvidia