Bakus123
Bakus123

Reputation: 1399

Cuda - compile local and run remote

I want to compile my program locally and next run on server, because I haven't cuda capable graphics card.

My computer:

Server:

Compilation on local computer:

nvcc kernel.cu

Running on server:

./a.out

But I get following error - "Cuda driver version is insufficient for cuda runtime version." What's wrong? When I compile my code on server it work without problem.

Upvotes: 0

Views: 647

Answers (1)

m.s.
m.s.

Reputation: 16324

The problem might be caused by the fact that you compile on x32 but execute on x64 architecture.

This problem is also described here: https://devtalk.nvidia.com/default/topic/555955/32-bit-executable-fails-with-insufficient-driver-version-on-64-bit-linux-os/

The solution provided there is to install the missing 32bit gcc libraries, which in your case (Ubuntu) should possible through:

sudo apt-get install lib32stdc++6

Upvotes: 2

Related Questions