Closed ahmedmazari closed 7 years ago
Hi @ahmedmazari , have you solved this problem? Thanks!
@zhanghang1989 , Yes l did. Let me know if you still encounter the same problem to post the steps that allowed me to solve the problem
Thanks @ahmedmazari ! I did a hacky way by manually set the path. Let me know if there is a better solution! Thanks again
set(TORCH_BUILD_DIR "/anaconda/lib/python3.6/site-packages/torch/lib")
# Find the include files
set(TORCH_TH_INCLUDE_DIR "${TORCH_BUILD_DIR}/include/TH")
set(TORCH_THC_INCLUDE_DIR "${TORCH_BUILD_DIR}/include/THC")
set(TORCH_THC_UTILS_INCLUDE_DIR "$ENV{HOME}/pytorch/torch/lib/THC")
set(Torch_INSTALL_INCLUDE "${TORCH_BUILD_DIR}/include" ${TORCH_TH_INCLUDE_DIR} ${TORCH_THC_INCLUDE_DIR} ${TORCH_THC_UTILS_INCLUDE_DIR})
# Find the libs. We need to find libraries one by one.
set(TORCH_LIB_HINTS "${TORCH_BUILD_DIR}" "/usr/local/lib" "/root/torch/install/lib")
find_library(THC_LIBRARIES NAMES THC THC.1 PATHS ${TORCH_BUILD_DIR} PATH_SUFFIXES lib)
find_library(TH_LIBRARIES NAMES TH TH.1 PATHS ${TORCH_BUILD_DIR} PATH_SUFFIXES lib)
Hi @zhanghang1989 , you're welcome
The problem is related to cuda and cudnn . you have to update first torch then install cudnn.
Before :
be sure that you have gcc 4.9 or 4.8 installed
Do the following :
luarocks install torch
luarocks install nn
luarocks install cutorch
luarocks install cunn
If doesn't work downgrade your gcc to 4.9 and try again .
Please et me know if it works
I ran into the same issue, none of the above suggestions worked, but I could fix it by installing both pytorch AND torch (the latter from from http://torch.ch/docs/getting-started.html) from source, then installing warp-ctc as per the instructions at https://github.com/SeanNaren/warp-ctc
Got the same issue.
Solution: export Torch_DIR as env variable before cmake
e.g. i am using python virtual env on linux, and installed pytorch using 'pip'.
export Torch_DIR=/home/my/pyenv/py3.7-torch1.0/lib/python3.7/site-packages/torch/share/cmake/Torch
cmake blablabla
make
Hello, My error is related to line 48 from this file code https://github.com/SeanNaren/warp-ctc/blob/pytorch_bindings/CMakeLists.txt
After installing pytorch corrctly. l want to install the Fast parallel CTC https://github.com/SeanNaren/warp-ctc l started installing as follow :
then l stacked at the (cmake command)
cmake ../
l don't understand the error :
**"_CMake Warning at CMakeLists.txt:48 (FIND_PACKAGE): By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Torch", but CMake did not find one.
Could not find a package configuration file provided by "Torch" with any of the following names:
Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set "Torch_DIR" to a directory containing one of the above files. If "Torch" provides a separate development package or SDK, be sure it has been installed. "**