clab / clab/dynet

failed installing with gpu support on linux server

Open
#1,499 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
3.4k
Forks
701
PR merge metrics
No merged PRs in 30d

Description

So basically I tried installing dynet with gpu support through pip and manually and get same error.

Below is the error if installing manually at stage ` make -j 6
`


dynet/CMakeFiles/dynet.dir/build.make:84: recipe for target 'dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge1.cu.o' failed
make[2]: *** [dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge1.cu.o] Error 1
92 errors detected in the compilation of "/tmp/tmpxft_00005a87_00000000-10_gpu-merge0.compute_52.cpp1.ii".
CMake Error at dynet_generated_gpu-merge0.cu.o.cmake:262 (message):
Error generating file
/home/Parser-v2-master/dynet-base/dynet/build/dynet/CMakeFiles/dynet.dir//./dynet_generated_gpu-merge0.cu.o

dynet/CMakeFiles/dynet.dir/build.make:77: recipe for target 'dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge0.cu.o' failed
make[2]: *** [dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge0.cu.o] Error 1
92 errors detected in the compilation of "/tmp/tmpxft_00005aa7_00000000-10_gpu-merge2.compute_52.cpp1.ii".
CMake Error at dynet_generated_gpu-merge2.cu.o.cmake:262 (message):
Error generating file
/home/Parser-v2-master/dynet-base/dynet/build/dynet/CMakeFiles/dynet.dir//./dynet_generated_gpu-merge2.cu.o

dynet/CMakeFiles/dynet.dir/build.make:91: recipe for target 'dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge2.cu.o' failed
make[2]: *** [dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge2.cu.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'dynet/CMakeFiles/dynet.dir/all' failed
make[1]: *** [dynet/CMakeFiles/dynet.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

And below is the error I got when installing by pip

dynet/CMakeFiles/dynet.dir/build.make:1737: recipe for target 'dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge0.cu.o' failed
make[2]: *** [dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge0.cu.o] Error 1
92 errors detected in the compilation of "/tmp/tmpxft_00005d93_00000000-10_gpu-merge2.compute_52.cpp1.ii".
CMake Error at dynet_generated_gpu-merge2.cu.o.cmake:262 (message):
Error generating file
/tmp/pip-install-Kbfg4Z/dynet/build/py2.7u-64bit/dynet/CMakeFiles/dynet.dir//./dynet_generated_gpu-merge2.cu.o

dynet/CMakeFiles/dynet.dir/build.make:3029: recipe for target 'dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge2.cu.o' failed
make[2]: *** [dynet/CMakeFiles/dynet.dir/dynet_generated_gpu-merge2.cu.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'dynet/CMakeFiles/dynet.dir/all' failed
make[1]: *** [dynet/CMakeFiles/dynet.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
error: /usr/bin/make -j 12

----------------------------------------
Command "/home/lake233/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-Kbfg4Z/dynet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-85WA0F/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-Kbfg4Z/dynet/
`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the GPU build invoked by make and the Python installation path in setup.py, then inspect the generated dynet/CMakeFiles/dynet.dir/build.make failures for the GPU object files. Reproduce the installation with the same Linux setup and gather the missing environment details needed to identify the compiler or GPU-toolchain cause. Done means the supported GPU installation completes successfully or the incompatibility is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, linux, python
Domain
build-system, machine-learning, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.