facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.81k stars 1.32k forks source link

RuntimeError: Not compiled with GPU support. #1878

Open dfdu233 opened 1 month ago

dfdu233 commented 1 month ago

RuntimeError: Not compiled with GPU support.

  1. What you observed (including the full logs): rank1: File "/pytorch3d/pytorch3d/ops/knn.py", line 189, in knn_points rank1: p1_dists, p1_idx = _knn_points.apply( rank1: File "/opt/conda/envs/env/lib/python3.12/site-packages/torch/autograd/function.py", line 574, in apply rank1: return super().apply(*args, **kwargs) # type: ignoremisc: File "/pytorch3d/pytorch3d/ops/knn.py", line 74, in forward rank1: idx, dists = _C.knn_points_idx(p1, p2, lengths1, lengths2, norm, K, version)

my conda list related

pytorch 2.4.0 py3.12_cuda12.1_cudnn9.1.0_0 pytorch pytorch-cuda 12.1 ha16c6d3_5 pytorch pytorch-mutex 1.0 cuda pytorch pytorch3d 0.7.8 dev_0

Can you please help with this?thx

bottler commented 1 month ago

How did you install pytorch3d? I think you might've done it from source without having the necessary prerequisites working correctly. perhaps try again in a new environment looking closely at install.md.