warp-ctc icon indicating copy to clipboard operation
warp-ctc copied to clipboard

'THC.h' file not found error

Open revskill10 opened this issue 10 years ago • 4 comments

I've tried to install torch binding, but always got error

/tmp/luarocks_warp-ctc-scm-1-3075/warp-ctc/torch_binding/binding.cpp:16:14: fatal error:
  'THC.h' file not found
#include "THC.h"

I'm using Mac OSX 11. Could you please tell me which kind is this error ?

revskill10 avatar Jan 16 '16 08:01 revskill10

suppose you don't have the torch development files such as their C headers.

xman avatar Jan 16 '16 09:01 xman

This happens when CUDA is installed but cutorch is not. The build system will detect CUDA and then assume the cutorch headers are there. Please install cutorch and retry.

ghost avatar Jan 16 '16 18:01 ghost

@dxyzab Is it possible to catch this problem in CMake and give a better error message?

bryancatanzaro avatar Jan 16 '16 18:01 bryancatanzaro

I also got the same problem,how to fix it?

zzw922cn avatar Mar 05 '16 10:03 zzw922cn