Repository navigation
Closed
Labels
Description
Hello,
Thanks for good library and developers.
I'm trying to install for C++.
But, I get error messages when I type following command.
cmake .. -DEIGEN3_INCLUDE_DIR=/home/robot/opt/eigen3 -DENABLE_CPP_EXAMPLES=ON -DBACKEND=cuda -DCUDNN_ROOT=/usr/local/cuda
And I get following error messages.
-- BACKEND: cuda
CUDA_LIBRARIES: /usr/local/cuda/lib64/libcudart_static.a;-lpthread;dl;/usr/lib/x86_64-linux-gnu/librt.so;/usr/local/cuda/lib64/libcurand.so
-- Found CUDNN (include: /usr/local/cuda/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Successfully include CUDNN flags
-- Eigen dir is /home/robot/opt/eigen3
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
linked by target "dynet" in directory /home/robot/opt/dynet/dynet
linked by target "1_linear_regression" in directory /home/robot/opt/dynet/tutorial
linked by target "0_multiply" in directory /home/robot/opt/dynet/tutorial
linked by target "xor-multidevice" in directory /home/robot/opt/dynet/examples
linked by target "xor" in directory /home/robot/opt/dynet/examples
linked by target "rnnlm-aevb" in directory /home/robot/opt/dynet/examples
linked by target "fflm" in directory /home/robot/opt/dynet/examples
linked by target "xor-batch" in directory /home/robot/opt/dynet/examples
linked by target "imdb" in directory /home/robot/opt/dynet/examples
linked by target "tok-embed" in directory /home/robot/opt/dynet/examples
linked by target "rnnlm-batch" in directory /home/robot/opt/dynet/examples
linked by target "embed-cl" in directory /home/robot/opt/dynet/examples
linked by target "xor-autobatch" in directory /home/robot/opt/dynet/examples
linked by target "mnist" in directory /home/robot/opt/dynet/examples
linked by target "rnnlm-batch-nce" in directory /home/robot/opt/dynet/examples
linked by target "rnn-autobatch" in directory /home/robot/opt/dynet/examples
linked by target "poisson-regression" in directory /home/robot/opt/dynet/examples
linked by target "read-write" in directory /home/robot/opt/dynet/examples
linked by target "rnnlm" in directory /home/robot/opt/dynet/examples
linked by target "attention" in directory /home/robot/opt/dynet/examples
linked by target "encdec" in directory /home/robot/opt/dynet/examples
linked by target "tag-bilstm" in directory /home/robot/opt/dynet/examples
linked by target "rnnlm-cfsm" in directory /home/robot/opt/dynet/examples
-- Configuring incomplete, errors occurred!
See also "/home/robot/opt/dynet/build/CMakeFiles/CMakeOutput.log".
See also "/home/robot/opt/dynet/build/CMakeFiles/CMakeError.log".
More nvidia library is needed?
I already installed cudnn and cuda tool kit.
By the way, my nvidia environment is as below.
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.48 Driver Version: 410.48 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... Off | 00000000:01:00.0 On | N/A |
| 23% 28C P8 12W / 250W | 287MiB / 11175MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1061 G /usr/lib/xorg/Xorg 180MiB |
| 0 1282 G /usr/bin/gnome-shell 98MiB |
| 0 1940 G /usr/lib/firefox/firefox 2MiB |
| 0 2191 G /usr/lib/firefox/firefox 2MiB |
+-----------------------------------------------------------------------------+
Please tell me how to solve this problem.
Thanks in advance.
Reacted by Elaine and Luca Cappelletti
Reacted by Elaine, sonnt-0456 and Mehdi
Activity
pmichel31415 commentedon Sep 21, 2018
Hi, can you give your CUDA and compiler version, as well as the output of a clean cmake (remove the build dir, recreate it and rerun cmake)?
pmichel31415 commentedon Sep 21, 2018
Please also tell us the version of dynet (exact commit) you're trying to install
harumo11 commentedon Sep 24, 2018
Hi, @pmichel31415
Thanks for replaying.
My CUDA version and other information are as below.
7.3.0
10.0
v7.3.0
Sorry, I don't know how to confirm dynet version.
I copied dynet from github on last Friday(21 Sep. 2018).
And I can get following information.
I tried to delete build directory and rebuild,
But I got same errors.
harumo11 commentedon Sep 24, 2018
And my OS environment is Ubuntu18.04.
codelilei commentedon Sep 24, 2018
I also got the problem when I compiled caffe with the latest CUDA 10.0, and after upgrading CMake from 3.12.1 to 3.12.2 it's done @harumo11
pmichel31415 commentedon Sep 24, 2018
Yes I suspect this is an issue with CUDA 10.0 @harumo11 if you can confirm that @codelilei 's fix is working for you on Dynet let us know so we can update the documentation
texttheater commentedon Sep 25, 2018
Confirmed: I had the same problem (Ubuntu 18.04, CUDA 10.0) and installing CMake 3.12.2 (instead of the distro's 3.10.2) fixed it.
harumo11 commentedon Sep 26, 2018
Thanks @texttheater
I tried to install CMake 3.12.2, and the error was not appeared.
But I got another error in stead of the error as below.
I tried following command.
The command gave me no error, although default back-end set libeigen.
Should do I re-install cuDNN?
harumo11 commentedon Sep 26, 2018
There is no relationship between CUDA_cublas_device_LIBRARY (ADVANCED) and runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in: .
Sorry, I solved runtime library [libcudnn.so.7] in /usr/lib/x86_64-linux-gnu may be hidden by files in: error with this thread.
harumo11 commentedon Sep 26, 2018
I solved this CMake error.
Thanks a lot for @pmichel31415, @texttheater and @codelilei.
Therefore I will close this issue.
Thanks again!
[MXNET-703] Install CUDA 10 compatible cmake
3 remaining items
[MXNET-703] Install CUDA 10 compatible cmake
[MXNET-703] Install CUDA 10 compatible cmake
[MXNET-703] Update to TensorRT 5, ONNX IR 3. Fix inference bugs. (#13310
[v1.4.x] [MXNET-703] Update to TensorRT 5, ONNX IR 3. Fix inference b…
merge upstream to resolve use_mkldnn issue (#557)
[MXNET-703] Update to TensorRT 5, ONNX IR 3. Fix inference bugs. (apa…
[v1.4.x] [MXNET-703] Update to TensorRT 5, ONNX IR 3. Fix inference b…
switched to a more recent cmake version.
[v1.4.x] [MXNET-703] Update to TensorRT 5, ONNX IR 3. Fix inference b…
[MXNET-703] Update to TensorRT 5, ONNX IR 3. Fix inference bugs. (apa…
bravegag commentedon Aug 29, 2019
This solved the issue for me too! thank you!
suryadesu commentedon Dec 11, 2020
Hi,
I have been facing similar error while installing Torch on my server.
Cuda version - 11.0
CMake version - 3.18.2
Ubuntu version - 20.04
I see the above solutions work for CMake version >=3.12.2
Can someone please help with this.
Thanks
b4zz4 commentedon Jul 6, 2021
I have the same problem.
with cuda 11.3
youyuxiansen commentedon Jul 14, 2021
find the
${CUDA_CUBLAS_LIBRARIES}and comment it in your CMakeList.txthsen-dev commentedon Nov 8, 2021
solution: https://codeyarns.com/tech/2019-03-20-caffe-cuda_cublas_device_library-error.html