Installation on Anaconda
See original GitHub issueHi,
I have trouble installing the py_torch bindings using anaconda. I’m using Ubuntu 14.04.3, and gcc 5.4.1 and cuda 8. Everythings works fine untill i try to import the warp bindings in python:
>>> from warpctc_pytorch import CTCLoss
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sorson/anaconda3/lib/python3.6/site-packages/warpctc_pytorch/__init__.py", line 7, in <module>
from ._warp_ctc import lib as _lib, ffi as _ffi
ImportError: /home/sorson/anaconda3/lib/python3.6/site-packages/torch/lib/../../../../libgomp.so.1: version `GOMP_4.0' not found (required by /home/sorson/warp-ctc/build/libwarpctc.so)
Output of installation:
sorson@phoebe:~/warp-ctc/build$ cmake ..
-- The C compiler identification is GNU 5.4.1
-- The CXX compiler identification is GNU 5.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found CUDA: /usr/local/cuda-8.0 (found suitable version "8.0", minimum required is "6.5")
-- cuda found TRUE
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:
TorchConfig.cmake
torch-config.cmake
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.
-- Torch found Torch_DIR-NOTFOUND
-- Building shared library with GPU support
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sorson/warp-ctc/build
sorson@phoebe:~/warp-ctc/build$ make
[ 25%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/./warpctc_generated_reduce.cu.o
[ 50%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/./warpctc_generated_ctc_entrypoint.cu.o
Scanning dependencies of target warpctc
Linking CXX shared library libwarpctc.so
[ 50%] Built target warpctc
Scanning dependencies of target test_cpu
[ 75%] Building CXX object CMakeFiles/test_cpu.dir/tests/test_cpu.cpp.o
Linking CXX executable test_cpu
[ 75%] Built target test_cpu
[100%] Building NVCC (Device) object CMakeFiles/test_gpu.dir/tests/./test_gpu_generated_test_gpu.cu.o
Scanning dependencies of target test_gpu
Linking CXX executable test_gpu
[100%] Built target test_gpu
sorson@phoebe:~/warp-ctc/pytorch_binding$ python setup.py install
generating build/_warp_ctc.c
regenerated: 'build/_warp_ctc.c'
running install
running build
running build_py
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/warpctc_pytorch
copying warpctc_pytorch/__init__.py -> build/lib.linux-x86_64-3.6/warpctc_pytorch
running build_ext
building 'warpctc_pytorch._warp_ctc' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/build
creating build/temp.linux-x86_64-3.6/home
creating build/temp.linux-x86_64-3.6/home/sorson
creating build/temp.linux-x86_64-3.6/home/sorson/warp-ctc
creating build/temp.linux-x86_64-3.6/home/sorson/warp-ctc/pytorch_binding
creating build/temp.linux-x86_64-3.6/home/sorson/warp-ctc/pytorch_binding/src
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/sorson/anaconda3/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/sorson/anaconda3/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/sorson/anaconda3/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/sorson/warp-ctc/include -I/home/sorson/anaconda3/include/python3.6m -c build/_warp_ctc.c -o build/temp.linux-x86_64-3.6/build/_warp_ctc.o -std=c++11 -fPIC -DWARPCTC_ENABLE_GPU
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/sorson/anaconda3/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include -I/home/sorson/anaconda3/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/TH -I/home/sorson/anaconda3/lib/python3.6/site-packages/torch/utils/ffi/../../lib/include/THC -I/usr/local/cuda/include -I/home/sorson/warp-ctc/include -I/home/sorson/anaconda3/include/python3.6m -c /home/sorson/warp-ctc/pytorch_binding/src/binding.cpp -o build/temp.linux-x86_64-3.6/home/sorson/warp-ctc/pytorch_binding/src/binding.o -std=c++11 -fPIC -DWARPCTC_ENABLE_GPU
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
g++ -pthread -shared -L/home/sorson/anaconda3/lib -Wl,-rpath=/home/sorson/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.6/build/_warp_ctc.o build/temp.linux-x86_64-3.6/home/sorson/warp-ctc/pytorch_binding/src/binding.o -L/home/sorson/warp-ctc/build -L/home/sorson/anaconda3/lib -Wl,--enable-new-dtags,-R/home/sorson/warp-ctc/build -lwarpctc -lpython3.6m -o build/lib.linux-x86_64-3.6/warpctc_pytorch/_warp_ctc.cpython-36m-x86_64-linux-gnu.so
running install_lib
copying build/lib.linux-x86_64-3.6/warpctc_pytorch/_warp_ctc.cpython-36m-x86_64-linux-gnu.so -> /home/sorson/anaconda3/lib/python3.6/site-packages/warpctc_pytorch
copying build/lib.linux-x86_64-3.6/warpctc_pytorch/__init__.py -> /home/sorson/anaconda3/lib/python3.6/site-packages/warpctc_pytorch
byte-compiling /home/sorson/anaconda3/lib/python3.6/site-packages/warpctc_pytorch/__init__.py to __init__.cpython-36.pyc
running install_egg_info
Removing /home/sorson/anaconda3/lib/python3.6/site-packages/warpctc_pytorch-0.1-py3.6.egg-info
Writing /home/sorson/anaconda3/lib/python3.6/site-packages/warpctc_pytorch-0.1-py3.6.egg-info
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Installation — Anaconda documentation
On Windows, macOS, and Linux, it is best to install Anaconda for the local user, which does not require administrator permissions and is...
Read more >Installing on Linux - Anaconda Documentation
In your browser, download the Anaconda installer for Linux. · Search for “terminal” in your applications and click to open. · (Recommended) Verify...
Read more >Installing conda packages - Anaconda Documentation
Open an Anaconda Prompt (terminal on Linux or macOS) and follow these instructions. Installing a conda package¶. Enter the command: conda install package ......
Read more >Installation — Anaconda documentation
The following topic will explain how to install or uninstall Anaconda Navigator. This topic provides guidance on the following actions:.
Read more >Installing on macOS - Anaconda Documentation
Click Change Install Location to install Anaconda Distribution for all users or on a specific disk. · Click Install to install Anaconda in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dlmacedo have you solved the problem ? If yes please share an answer
I Also had that problem untill i checked the path of gcc 😃 It seems to be gcc version 5.4.1 that is the problem. I just compiled and imported after changing to gcc version 4.8.4