22 sSMtoCores nGpuArchCoresPerSM[] =
37 while (nGpuArchCoresPerSM[index].SM != -1)
39 if (nGpuArchCoresPerSM[index].SM == ((major << 4) + minor))
41 return nGpuArchCoresPerSM[index].Cores;
48 printf(
"MapSMtoCores for SM %d.%d is undefined. Default to use %d Cores/SM\n", major, minor, nGpuArchCoresPerSM[7].Cores);
49 return nGpuArchCoresPerSM[7].Cores;