baidu-research / warp-ctc

Fast parallel CTC.
Apache License 2.0
4.07k stars 1.04k forks source link

'THC.h' file not found error #6

Open revskill10 opened 8 years ago

revskill10 commented 8 years ago

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 ?

xman commented 8 years ago

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

ghost commented 8 years ago

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.

bryancatanzaro commented 8 years ago

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

zzw922cn commented 8 years ago

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