Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between lcuda and lcudart in CUDA SDK 7.5?

Tags:

linux

cuda

clang

I have Nvidea SDK 7.5. I want to compile OpenMP for CUDA. On step "Clone, build & install OpenMP target backends" I get: enter image description here

Yet I see no libcuda.lib at all in my SDK: enter image description here

So I wonder what is difference between lcuda and lcudart and if there is any where one can find lcuda in CUDA 7.5 SDK?

like image 749
DuckQueen Avatar asked Oct 23 '25 14:10

DuckQueen


1 Answers

The l you are discussing in "lcuda" and "lcudart" is actually part of the compiler switch. The library is cuda or libcuda, and cudart or libcudart.

On linux, I don't think these libraries end in .lib either. They should end in .so That's pretty evident in your printout - take a look.

Anyway, libcuda.so is installed by the GPU driver installer, not the toolkit.

(except possibly for stubs, which you should not use) libcuda.so will not be found in the toolkit location but somewhere else where the driver puts it. This particular location will vary depending on the specific linux distro.

So I suggest using find or a similar linux command to locate it on your machine. It may be in /usr/lib or /usr/lib64 or someplace like that.

If you can't find it at all, then the likely explanation is that you have not installed (properly) the GPU driver on your machine.

In a nutshell, libcuda.so provides access to the CUDA driver API, whereas libcudart.so provides access to the CUDA runtime API.

By the way, in the future, please post text output, not pictures, for actual text output from your console.

like image 58
Robert Crovella Avatar answered Oct 26 '25 06:10

Robert Crovella



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!