Closed lanqiugit closed 4 years ago
Hi, @lanqiugit ! Thank you for your interest in UGENE
Did you setup the following envvars?
CUDA_LIB_PATH
CUDA_INC_PATH
On my Ubuntu 18.04 I set them to the following values:
CUDA_INC_PATH=/usr/local/cuda/include
CUDA_LIB_PATH=/usr/local/cuda/lib
You can check these vars by the env
command:
$ env | grep CUDA
My CUDA version:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Wed_Apr_11_23:16:29_CDT_2018
Cuda compilation tools, release 9.2, V9.2.88
$ which nvcc
/usr/local/cuda/bin/nvcc
Best regards, --Igor
Thanks for reply! @ichebyki Sorry, I didn't do that.
After I did as follows, another 2 errors happened.
export CUDA_INC_PATH=/usr/local/cuda/include
export CUDA_LIB_PATH=/usr/local/cuda/lib
First error was
sys/cdefs.h No such file or directory
This error has been solved by changing qmake -r
to qmake -r CONFIG+=x64
.
Second error was
-lcudart No such file or directory
This error has been solved by changing -lcudart
to -L/usr/local/cuda/lib64
in /ugene-master/src/plugins/smith_waterman/smith_waterman.pri.
After that, completed build.
And I ran ugene -ui
and checked Preferences/CUDA.
Cannot load CUDA driver dynamic library.
It is necessary to install latest Nvidia GPU driver for runnning
GPU-accelerated algorithms on Nvidia hardware.
Why doesn't CUDA work?
Hi,
Please check LD_LIBRARY_PATH var It must contain the path to cuda's lib dir
--Igor
Also, you can try to run nvidia-smi
command to verify that gpu driver is installed correctly
This is output of the nvidia-smi
on my system:
$ nvidia-smi
Wed Oct 2 21:49:27 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.00 Driver Version: 418.87.00 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla K20c Off | 00000000:01:00.0 Off | 0 |
| 30% 32C P8 16W / 225W | 0MiB / 4743MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
Hi,
LD_LIBRARY_PATH var is
$echo $LD_LIBRARY_PATH
:/usr/local/cuda/lib
Driver information
$nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.00 Driver Version: 418.87.00 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| 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 RTX 2080 On | 00000000:01:00.0 On | N/A |
| 34% 34C P8 3W / 215W | 368MiB / 7949MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1148 G /usr/lib/xorg/Xorg 18MiB |
| 0 1234 G /usr/bin/gnome-shell 57MiB |
| 0 1558 G /usr/lib/xorg/Xorg 97MiB |
| 0 1718 G /usr/bin/gnome-shell 185MiB |
| 0 5196 G .../Qt5.13.1/Tools/QtCreator/bin/qtcreator 6MiB |
+-----------------------------------------------------------------------------+
$which nvcc
/usr/local/cuda/bin/nvcc
$nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243
And I overlooked error messages of qmake -r CONFIG+=x64
Reading /home/.../ugene-master/src/plugins/smith_waterman/smith_waterman.pro
QDir::mkpath: Empty or null file name
WARNING: nvzz: Cannot access directory ''
Hi, @ichebyki
I try to solve the the error of qmake -r CONFIG+=x64
.
The error message is as follow.
Reading /home/.../ugene-master/src/plugins/smith_waterman/smith_waterman.pro
QDir::mkpath: Empty or null file name
WARNING: nvzz: Cannot access directory ''
But I can't solve this.
Would you lend me a hand, please?
Close as the issue is too old
Hello, I am trying to build Ugene from source, because I want it to work with Cuda.
The error is as follows.
I did
I already checked this http://ugene.net/forum/YaBB.pl?num=1528031285/3, but I can't build Ugene. Why can't I build Ugene?
Environment: Ubuntu 18.04 RTX 2080 NVIDIA Version 418.87.00 CUDA Version 10.1 Qt 5.13.1