point-transformer icon indicating copy to clipboard operation
point-transformer copied to clipboard

Compiling pointops without THC

Open maxim0815 opened this issue 1 year ago • 1 comments

Hey thanks for the code. I don't want to draw attention to a bug here, but just mention a small thing.

I just tried compiling pointops and ran into the following error:

src/knnquery/knnquery_cuda.cpp:2:10: fatal error: THC/THC.h: No such file or directory
    2 | #include <THC/THC.h>
      |          ^~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

According to this post "TH/THC namespace is dead". Removing the includes for THC within all .cpp files and recompiling works fine. It is therefore no longer required for newer cuda versions.

maxim0815 avatar Jul 18 '23 13:07 maxim0815

Thank you! I also encountered the same problem but your solution fixed it.

JunbongJang avatar Aug 08 '23 03:08 JunbongJang