torch-points3d / torch-points-kernels

Pytorch kernels for spatial operations on point clouds
MIT License
96 stars 25 forks source link

Pip installation error on windows #68

Closed tota1Noob closed 2 years ago

tota1Noob commented 3 years ago

I was trying to install this library with pip on my windows 10 laptop, could not seem to get around these error prompts.

D:\SOFTWARE\Anaconda\envs\torch3d\include\pyerrors.h(490): note: see previous definition of 'HAVE_SNPRINTF' cuda/src/cubic_feature_sampling_gpu.cu(46): error: calling a host function("floorf") from a global__ function("cubic_feature_sampling_kernel ") is not allowed

cuda/src/cubic_feature_sampling_gpu.cu(46): error: identifier "__floorf" is undefined in device code

cuda/src/cubic_feature_sampling_gpu.cu(47): error: calling a host function("ceilf") from a global__ function("cubic_feature_sampling_kernel ") is not allowed

cuda/src/cubic_feature_sampling_gpu.cu(47): error: identifier "__ceilf" is undefined in device code

cuda/src/cubic_feature_sampling_gpu.cu(52): error: calling a host function("floorf") from a global__ function("cubic_feature_sampling_kernel ") is not allowed

cuda/src/cubic_feature_sampling_gpu.cu(52): error: identifier "__floorf" is undefined in device code

cuda/src/cubic_feature_sampling_gpu.cu(53): error: calling a host function("ceilf") from a global__ function("cubic_feature_sampling_kernel ") is not allowed

cuda/src/cubic_feature_sampling_gpu.cu(53): error: identifier "__ceilf" is undefined in device code

cuda/src/cubic_feature_sampling_gpu.cu(58): error: calling a host function("floorf") from a global__ function("cubic_feature_sampling_kernel ") is not allowed

cuda/src/cubic_feature_sampling_gpu.cu(58): error: identifier "__floorf" is undefined in device code

cuda/src/cubic_feature_sampling_gpu.cu(59): error: calling a host function("ceilf") from a global__ function("cubic_feature_sampling_kernel ") is not allowed

cuda/src/cubic_feature_sampling_gpu.cu(59): error: identifier "__ceilf" is undefined in device code

12 errors detected in the compilation of "cuda/src/cubic_feature_sampling_gpu.cu".

Help needed. Thanks in advance!!!

nicolas-chaulet commented 3 years ago

Hi! Sorry I can't be of any help, I don't have windows, so almost impossible to debug here...

mattviney commented 3 years ago

Hi, I'm having the exact same problem on windows.

Python: 3.8 Pytorch: 1.8.1 Cuda: 11.1

I have attached a text file of what happens when I try to run pip install torch-points-kernels==0.6.10.

torch-points-kernels_log.txt

Would be great if you can help! Really want to use the torch-points3d library.

CCInc commented 2 years ago

Closing for now, feel free to reopen if still an issue.