unlimblue / KNN_CUDA

pytorch knn [cuda version]
292 stars 37 forks source link

ImportError: DLL load failed while importing knn with branch windows #19

Closed YingZhang2561 closed 1 year ago

YingZhang2561 commented 2 years ago

I've cloned the branch windows. After typing 'make' or 'python setup.py install', I got the message: ImportError: DLL load failed while importing knn

OS: Windows 10 Python: 3.8 CUDA: 11.3 TORCH: 1.11.0

_Originally posted by @YingZhang2561 in https://github.com/unlimblue/KNN_CUDA/issues/9#issuecomment-1132999277_

blukaz commented 2 years ago

did you run "make" in the power shell or in cmd?

YingZhang2561 commented 2 years ago

Hi, I got knn finally compiled with ninja. I use cmd in anaconda terminal. The problem is in cpp_extension of torch. Thanks!

Ying

On Mon, May 23, 2022, 4:58 AM Bare Luka Zagar @.***> wrote:

did you run "make" in the power shell or in cmd?

— Reply to this email directly, view it on GitHub https://github.com/unlimblue/KNN_CUDA/issues/19#issuecomment-1134385514, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRZIEH2AY6T2BUQSVRMPETVLNCEBANCNFSM5WPXJTVA . You are receiving this because you were mentioned.Message ID: @.***>

YisiLuo commented 2 years ago

Hi, I got knn finally compiled with ninja. I use cmd in anaconda terminal. The problem is in cpp_extension of torch. Thanks! Ying On Mon, May 23, 2022, 4:58 AM Bare Luka Zagar @.> wrote: did you run "make" in the power shell or in cmd? — Reply to this email directly, view it on GitHub <#19 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRZIEH2AY6T2BUQSVRMPETVLNCEBANCNFSM5WPXJTVA . You are receiving this because you were mentioned.Message ID: @.>

Hi, how can I solve the problem in cpp_extension? I got the same problem. Thanks so much!

basteran commented 1 year ago

Hi, I got knn finally compiled with ninja. I use cmd in anaconda terminal. The problem is in cpp_extension of torch. Thanks! Ying On Mon, May 23, 2022, 4:58 AM Bare Luka Zagar @.> wrote: did you run "make" in the power shell or in cmd? — Reply to this email directly, view it on GitHub <#19 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRZIEH2AY6T2BUQSVRMPETVLNCEBANCNFSM5WPXJTVA . You are receiving this because you were mentioned.Message ID: @.>

Hi, how did you solve it? I think I have the same problem: cpp_extension.py cannot find the file knn.so and I suspect it's a problem with the building of ninja.