PDA

View Full Version : NVidia implementation works on ATI?



Gamingdrake
06-08-2011, 03:46 PM
Hey guys,

If I use the NVidia SDK, can I still run my code on an ATI card? I am trying to get the card to process an algorithm for me, but i need it platform independent. I know that there will be a hit in efficiency, but will there actually be errors if I run the program on an ATI card?

david.garcia
06-08-2011, 03:52 PM
If I use the NVidia SDK, can I still run my code on an ATI card?

If you want to run code on your ATI card you will need to install AMD's SDK. If you want to run code on an nVidia card you must install NVidia's SDK.

Your code can be platform-independent but you will need the drivers that come bundled with the respective SDKs. Otherwise your program will simply not run.

Gamingdrake
06-08-2011, 03:58 PM
Thank you for your reply.

Will the application itself (exe after build) run on both cards? I know I need to compile using respective SDKs, but I need to know if the final application is platform independent.

david.garcia
06-08-2011, 05:11 PM
Yes, the application itself will be platform-independent.

Gamingdrake
06-10-2011, 02:17 PM
David,

I got it. If I get the library from NVidia (It comes prepackaged with the latest driver), then I link to that and use the OpenCL libraries stored in a folder (opencl/CL), then my program works using only OpenCL without the relative SDKs and without downloading either SDK.

Thank you for your help