Open sbharadwajj opened 3 years ago
This could be because you aren't using pytorch 1.6?
Compiling from source is the recommended way to install the package
I am using pytorch 1.6, cuda 10.1
But I will try compiling from source now. I am using a singularity environment thats why I used pip.
Ah yes - could also be a cuda error. The pypi package was compiled with CUDA 9.0 iirc
okay, I dont have a torch 1.6 cuda 9 compatible docker. Will compiling from source work?
should work :)
I am unable to build from source because I dont have root access. Is there anything I can change?
What are the specs for PyPi package? Cuda 9.0 and torch 1.6?
As far as I know you wouldn't need root access to build from source. The recommended way is to use a conda / virtualenv environment
Hi Krishna,
I was revisiting this repo today and I remember facing a similar issue. I tried it with PyTorch 1.5, 1.6 and CUDA 10.1. I was building from source.
What version of PyTorch / Cuda do you have?
I just reran CI on my end and I can confirm the following pytorch and CUDA versions work
pytorch 1.5, 1.6, 1.7 CUDA 9.2, 10.0, 10.1, 10.2
It would help to know more details about the error
Here is a screenshot of the error I get.
Edit: I also tried building from source on my Windows machine but couldn't get it to build. Attached log file. pytorch: 1.6, CUDA 10.2 and pytorch 1.7, CUDA 11.0 error.log
Can you try running example.py
from this repo?
Similar error I guess.
@AkbarShah96 From the error log you posted for building from source, it seems like you're building from source with python setup.py build
. Try uninstalling chamferdist and removing the build/
folder, then re-installing with pip install .
. I remember getting some build errors on windows without pip
in the past.
@saryazdi I tried your suggestion however I am getting another error. Seems like there might be some additional prerequisite steps to consider. Similar errors also occurred today when I tried to get the chamferdist from PyTorch3D on Windows.
Interesting note, thanks. Question: Does the same error occur if you do python setup.py build develop
?
Yes, I think so.
Just for reference: cuda is available when i launch python in the environment!
Relevent Versions fromconda list
:
Hey guys,
I managed to resolve this issue with the pytorch3d team after debugging for that repo.
There were 3 changes that I made that could have possibly have resolved this issue:
Uninstalled other old versions of CUDA and reinstalled CUDA 10.1. Make sure the CUDA environment variables are set to the correct version!
The CUDA_HOME environment variable was set to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
which was by default pointing to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin
for me.
For Windows 10 there are some changes that need to be made to the header files in PyTorch. PR#323 (pytorch3d).
Hope it helps someone facing similar issues.
I just reran CI on my end and I can confirm the following pytorch and CUDA versions work
pytorch 1.5, 1.6, 1.7 CUDA 9.2, 10.0, 10.1, 10.2
It would help to know more details about the error
Got similar error although my cuda version is 10.2 (one of those versions mentioned above). Here is the error message:
File "/home/user/env_pytorch16/lib/python3.6/site-packages/chamferdist/__init__.py", line 1, in <module>
from .chamfer import ChamferDistance
File "/home/user/env_pytorch16/lib/python3.6/site-packages/chamferdist/chamfer.py", line 12, in <module>
from chamferdist import _C
ImportError: libcudart.so.10.1: cannot open shared object file: No such file or directory
Any suggestion? Many thanks!
Hi, guys
I have got the error RuntimeError: Not compiled with GPU support.
The reason is that my cuda version is 10.1, while the torch version is xx+cu12.1. When I reinstall cuda12.1 and reinstall chamferdist manually, the error is been solved.
It seems not necessary to use old version cuda or torch.
My os is wsl2+ubuntu20.04 in windows11.
Hope it could help you.
Hi,
so I
pip install chamferdist
, installed via pip. But when I run my training loop where bothsource
andtarget
is incuda.()
, I get the following error: