Closed Chopper-233 closed 3 weeks ago
Same problem , are you figure it out?
@Chopper-233 hey bro, have you figure out this problem? thanks!
Use PyTorch version: 1.13 with CUDA Toolkit version 11.7
conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.7 -c pytorch -c nvidia
Then install CUDA toolkit version 11.7 as well: https://developer.nvidia.com/cuda-11-7-0-download-archive
Once installed make sure to add the following to bashrc/zshrc:
export LD_LIBRARY_PATH="/usr/local/cuda-11.7/lib64:$LD_LIBRARY_PATH"
export PATH="/usr/local/cuda-11.7/bin:$PATH"
Start new shell, run pip install -r requirements.txt
. It will work.
I was trying with latest version of pyTorch with CUDA toolkit version 12.1 but it was failing to compile.
Be aware that you don't need to downgrade the driver while installing outdated version of CUDA toolkit. I am using 530 driver.
I am still getting the same error even with pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.7 . Did anyone solved it??
I am having this issue and none of the recommendations are working. If anyone who has been able to get the CUDA kernels to build successfully can help, that would be much appreciated.
@plebbyd did you have any success with this? I installed PyTorch 1.13 with CUDA 11.7 as @Pipe-Runner advised. Also Installed the CUDA toolkit version 11.7 and then set the environment variables properly as suggested above and in other issues on this repo. I am still not able to run the pip install -r requirements.txt successfully.
I am on Ubuntu 22.04.3 LTS in a Conda virtual env.
Any advise?
@Pipe-Runner Thanks a lot bro,your advice works for me!!!
@plebbyd did you have any success with this? I installed PyTorch 1.13 with CUDA 11.7 as @Pipe-Runner advised. Also Installed the CUDA toolkit version 11.7 and then set the environment variables properly as suggested above and in other issues on this repo. I am still not able to run the pip install -r requirements.txt successfully.
I am on Ubuntu 22.04.3 LTS in a Conda virtual env.
Any advise?
@TouqeerAhmad this is Plebbyd on the company GitHub account. I was able to get it installed by using a very specific OS and set of libraries. See here: https://github.com/junshengzhou/3D-OAE/issues/4#issuecomment-1817906072
@TouqeerAhmad did you got any solution??? I was working on Ubuntu 22.04.3 LTS in a Conda virtual env but got few errors and later figured out pip install -r requirements.txt needs gcc version < 10.0 which is not possible with Ubuntu 22.04 LTS.
I was able to run pip install -r requirements.txt on Ubuntu 20.04 LTS in a conda virtual env with gcc version 9.4.0
PyTorch version: 1.13 with CUDA Toolkit version 11.7
The following problems occur: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pointnet2_ops Running setup.py clean for pointnet2_ops error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed cleaning build dir for pointnet2_ops Failed to build pointnet2_ops ERROR: Could not build wheels for pointnet2_ops, which is required to install pyproject.toml-based projects
I solved it by revising setup.py in pointcloud2_ops_lib: from
os.environ["TORCH_CUDA_ARCH_LIST"] = "3.7+PTX;5.0;6.0;6.1;6.2;7.0;7.5"
to
os.environ["TORCH_CUDA_ARCH_LIST"] = "8.6"
As the GPU arch does not match that of my computer. To customize the arch on your own PC, you can find it in this https://stackoverflow.com/questions/68496906/pytorch-installation-for-different-cuda-architectures
The solution by @JINXER000 worked for me on a A100 GPU.
Solution by @JINXER000 worked for me, on A6000. Thanks a lot man!!
I solved it by revising setup.py in pointcloud2_ops_lib: from
os.environ["TORCH_CUDA_ARCH_LIST"] = "3.7+PTX;5.0;6.0;6.1;6.2;7.0;7.5"
to
os.environ["TORCH_CUDA_ARCH_LIST"] = "8.6"
As the GPU arch does not match that of my computer. To customize the arch on your own PC, you can find it in this https://stackoverflow.com/questions/68496906/pytorch-installation-for-different-cuda-architectures
Thank you so much. It worked for me on a 3050.
Use PyTorch version: 1.13 with CUDA Toolkit version 11.7
conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.7 -c pytorch -c nvidia
Then install CUDA toolkit version 11.7 as well: https://developer.nvidia.com/cuda-11-7-0-download-archive
Once installed make sure to add the following to bashrc/zshrc:
export LD_LIBRARY_PATH="/usr/local/cuda-11.7/lib64:$LD_LIBRARY_PATH" export PATH="/usr/local/cuda-11.7/bin:$PATH"
Start new shell, run
pip install -r requirements.txt
. It will work. I was trying with latest version of pyTorch with CUDA toolkit version 12.1 but it was failing to compile.Be aware that you don't need to downgrade the driver while installing outdated version of CUDA toolkit. I am using 530 driver.
life saver, man
I solved it by revising setup.py in pointcloud2_ops_lib: from
os.environ["TORCH_CUDA_ARCH_LIST"] = "3.7+PTX;5.0;6.0;6.1;6.2;7.0;7.5"
to
os.environ["TORCH_CUDA_ARCH_LIST"] = "8.6"
As the GPU arch does not match that of my computer. To customize the arch on your own PC, you can find it in this https://stackoverflow.com/questions/68496906/pytorch-installation-for-different-cuda-architectures
Can this fix be added in the main repository? I think it should just be a matter of appending ";8.6" to the existing string?
os:python3.8 cuda 11.3 pytorch 1.10.1 while i'm running the command pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib", i meet the issue following,and i try many solutions found on the internet but no one worked,i hope you can help me solve it nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). ninja: build stopped: subcommand failed. Traceback (most recent call last): File "D:\Anaconda\envs\ulip\lib\site-packages\torch\utils\cpp_extension.py", line 1723, in _run_ninja_build env=env) File "D:\Anaconda\envs\ulip\lib\subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> pointnet2_ops
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.