How to exam gpu support

Hello,

how to test my gpu, if it supports cuda or not, and if doesn’t support, how to make my app continue working without crashing?

Thank You.

Link your application statically against the CUDART lib. At the beginning of your application, test for a CUDA GPU using whatever method you like. Something similar to what is presented in the cuda deviceQuery sample application:

[url]CUDA Samples :: CUDA Toolkit Documentation

would be sensible.

If an error is returned from the cudaDeviceGetProperties call:

[url]CUDA Runtime API :: CUDA Toolkit Documentation

Then it is safe to assume you do not have a proper CUDA environment, and should proceed accordingly.

Proper CUDA error checking on all CUDA API calls and kernel calls is always a good practice.