Hello ,
I get the folwwing error while trying to import torch library
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/bob/miniconda3/envs/wmlce_env/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module> from torch._C import * ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
Steps to reproduce the error:
Install Ubuntu 20.04 distribution on Windows using wsl --install -d Ubuntu 20.04
Install conda , and create conda new enviroment
install python 3.7 version
In the terminal, run :conda config --prepend channels https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/
In the terminal, run : conda install pytorch powerai-release=1.7.0
I searched for the file libcuda.so.1.1 with the command, sudo find /usr/ -name 'libcuda.so.*
I found it in this directory : /usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/libcuda.so.1.1
Then i tried to set $LD_LIBRARY_PATH variable , i runned this command :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/
and when i checked the variable with echo $LD_LIBRARY_PATH , i get this result
But this didn't work , I tried also to install the pytorch seperatly with
conda install pytorch=1.3.1 -c https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda
I still get the same error, is there any other option i can explore
i resolved this problem by creating a symbol link to the file libcuda.so.1 with the command.
ln -s /usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/libcuda.so.1
Hello , I get the folwwing error while trying to import torch library
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/bob/miniconda3/envs/wmlce_env/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module> from torch._C import * ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
Steps to reproduce the error:
wsl --install -d Ubuntu 20.04
conda config --prepend channels https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/
conda install pytorch powerai-release=1.7.0
Conda List :
I searched for the file libcuda.so.1.1 with the command,
sudo find /usr/ -name 'libcuda.so.*
I found it in this directory : /usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/libcuda.so.1.1Then i tried to set $LD_LIBRARY_PATH variable , i runned this command :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/
and when i checked the variable with
echo $LD_LIBRARY_PATH
, i get this result/usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/libcuda.so.1:/usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/:/home/bob/miniconda3/envs/wmlce_env/extras/CUPTI/lib64::/home/bob/miniconda3/envs/wmlce_env/cuda/lib::/usr/lib/wsl/drivers/nv_dispui.inf_amd64_bbcc419573b233aa/
But this didn't work , I tried also to install the pytorch seperatly with
conda install pytorch=1.3.1 -c https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda
I still get the same error, is there any other option i can explore