CUDA app linking with cuda.lib and nvcuvid.lib How to use it in PCs without CUDA

Hi all,

I am developing an application that uses CUDA, it links with cuda.lib and nvcuvid.lib. The idea is tu run this application, check whether or not CUDA and nvidia GPU are present on the system and run it on CUDA mode or CPU mode. This is the code:

err = cuInit(0);

if (err != CUDA_SUCCESS)

{

   _logger->Error("Error in cuInit(0) ");

   //Use CPU code instead

}

The main problem here is that when I try to run this application in a PC that has an AMD/ATI gpu then Windows will say that it couldn´t even start the application.

Can somebody help me to understand how is it supposed to make a CUDA cappable application that can run on now CUDA capable PCs??

Thank you very much!

The error that I am getting is:

“The application was unable to start correctly (0xc000007b). Click OK to close the application.”

No replies?

you have to dynamically link against those DLLs in your app. then you can handle the loader failures when the DLLs aren’t present.