Sunday, 4 June 2017

How to find out number of gpus in your system?


                 We can find out number of CUDA enabled gpus in our system by calling cudaGetDeviceCount() function.

 e.g.
int count;
cudaGetDeviceCount(&count);

Note: In this example, after calling cudaGetDeviceCount() function, value of variable count gives number of gpus present in our system. 

No comments:

Post a comment