user1456953
user1456953

Reputation: 11

I don't know how to add path to .dll for Cuda

I am completely new to CUDA and C. My eventual goal is to adapt a FORTRAN program for CUDA. For now, I am having trouble getting a simple "Hello world" program to run.

I have been able to compile using nvcc hello_test.cu --machine32 which creates an executable. However when I try to run the .exe, I get a System Error message stating:

The program can't start because cudart32_32_9.dll is missing from your computer. Try reinstalling the program to fix this problem

I imagine I haven't added the path to this file (which I can find in "C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\C\common\bin\"); but I don't know how to add the path. Any help would be appreciated.

Upvotes: 1

Views: 1432

Answers (1)

Bart
Bart

Reputation: 20038

You can go several routes. Either just make a copy of the DLL and put it in the same directory as your executable.

Or you can add the path you mentioned in the PATH environment variable of Windows. Then it should be able to find the DLL.

Upvotes: 1

Related Questions