DuckQueen
DuckQueen

Reputation: 810

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

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?

Upvotes: 3

Views: 6433

Answers (1)

Robert Crovella
Robert Crovella

Reputation: 152173

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.

Upvotes: 19

Related Questions