Can anyone tell me how to find the GPU type (Fermi, Tesla or Kepler) by the program, so that the would call the correct function depending on the GPU type.
Through cudaDeviceProp.major, I was able to differentiate Fermi and Tesla through their compute capability. But I am not able to differentiate between Fermi and Kepler.
Do anyone know how to find it.