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