Pointnet2.PyTorch icon indicating copy to clipboard operation
Pointnet2.PyTorch copied to clipboard

THC\THC.h can't find

Open zhou-SHU164 opened this issue 2 years ago • 9 comments

1648721360(1) Did anyone encounter this problem and know how to fix it ?

zhou-SHU164 avatar Mar 31 '22 10:03 zhou-SHU164

pytorch(1.11) has removed THC.h

0vvO avatar Apr 07 '22 07:04 0vvO

pytorch(1.11) has removed THC.h

I have found it. Thank you so much!

zhou-SHU164 avatar Apr 07 '22 07:04 zhou-SHU164

//Comment Out /src/ball_query.cpp group_points.cpp interpolate.cpp pointnet2_api.cpp sampling.cpp //#include <THE/THC.h> //extern THCState *state; //cudaStream_t stream = THCState_getCurrentStream(state);

//Replace with #include <ATen/cuda/CUDAContext.h> #include <ATen/cuda/CUDAEvent.h> cudaStream_t stream = at::cuda::getCurrentCUDAStream();

then replace the AT_CHECK with TORCH_CHECK in the ball_query.cpp

flandrewries avatar Aug 24 '22 14:08 flandrewries

//Comment Out /src/ball_query.cpp group_points.cpp interpolate.cpp pointnet2_api.cpp sampling.cpp //#include <THE/THC.h> //extern THCState *state; //cudaStream_t stream = THCState_getCurrentStream(state);

//Replace with #include <ATen/cuda/CUDAContext.h> #include <ATen/cuda/CUDAEvent.h> cudaStream_t stream = at::cuda::getCurrentCUDAStream();

then replace the AT_CHECK with TORCH_CHECK in the ball_query.cpp

This solution proposal worked for me. Thanks.

fusturnu avatar Sep 01 '22 06:09 fusturnu

//Comment Out /src/ball_query.cpp group_points.cpp interpolate.cpp pointnet2_api.cpp sampling.cpp //#include <THE/THC.h> //extern THCState *state; //cudaStream_t stream = THCState_getCurrentStream(state);

//Replace with #include <ATen/cuda/CUDAContext.h> #include <ATen/cuda/CUDAEvent.h> cudaStream_t stream = at::cuda::getCurrentCUDAStream();

then replace the AT_CHECK with TORCH_CHECK in the ball_query.cpp

This solution works for me, thanks

tdcsu avatar Dec 29 '23 11:12 tdcsu