adding CUDA to Qt
-
Hi, im developing a qt application which would benefit form GPU acceleration, therefore i picked CUDA. However im struggling with connecting Qt and CUDA. I get this error while i build my project:

and due to the only one answer i have found it might be PATH variable issue: http://www.cs.virginia.edu/~mwb7w/cuda_support/libcudart.html , but i had already set them to proper paths

My laptop is running on Ubuntu 18.04 with NVDIA Drivier 396.45. Cuda toolkit-9.2 was installed from runfile downloaded direct from nvidia website.
Part of .pro file:

And ss of nvcc and gcc:

If somebody has a clue how to solve it or how can i move on ( i even consider switching to other SDK ) please let me know.
-
Hi, im developing a qt application which would benefit form GPU acceleration, therefore i picked CUDA. However im struggling with connecting Qt and CUDA. I get this error while i build my project:

and due to the only one answer i have found it might be PATH variable issue: http://www.cs.virginia.edu/~mwb7w/cuda_support/libcudart.html , but i had already set them to proper paths

My laptop is running on Ubuntu 18.04 with NVDIA Drivier 396.45. Cuda toolkit-9.2 was installed from runfile downloaded direct from nvidia website.
Part of .pro file:

And ss of nvcc and gcc:

If somebody has a clue how to solve it or how can i move on ( i even consider switching to other SDK ) please let me know.
Hi @m00lecule,
I have the following tip for you: remove the
QMAKE_LIBDIRline in the project file and change theLIBSline to the following:LIBS += -L$$CUDA_DIR/lib64 -lcuda -lcudartThat way QtCreator will adjust the LD_LIBRARY_PATH correctly.
If that is not enough, go to a terminal, cd to $$CUDA_DIR/lib64 and post the output of
ldd cuda.soandldd cudart.soRegards
PS: if possible, post text files as text here, that makes it way easier for me to copy and modify the values without introducing new errors. Thanks.