packages/CudaUtils/cuda_utils/Hardware.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Calculate the number of cores per multiprocessor
 *
 * This is derived from information in helper_cuda.h in the cuda samples.
 */
\brief Calculate the number of cores per multiprocessor
This is derived from information in helper_cuda.h in the cuda samples.
\ brief Calculate the number of cores per multiprocessor This is derived from information in helper_cuda . h in the cuda samples .
unsigned int Hardware<Device>::num_cores_per_mp(int major, int minor)
{
    const int val = (major << 4) + minor;
    switch (val)
    {
        case 0x10: return   8; 
        case 0x11: return   8; 
        case 0x12: return   8; 
        case 0x13: return   8; 
        case 0x20: return  32; 
        case 0x21: return  48; 
        case 0x30: return 192; 
        case 0x35: return 192; 
    }
    return 192;
}
unsigned int Hardware < Device > :: num_cores_per_mp ( int major , int minor ) { const int val = ( major << 4 ) + minor ; switch ( val ) { case 0x10 : return 8 ; case 0x11 : return 8 ; case 0x12 : return 8 ; case 0x13 : return 8 ; case 0x20 : return 32 ; case 0x21 : return 48 ; case 0x30 : return 192 ; case 0x35 : return 192 ; } return 192 ; }
\brief Calculate the number of cores per multiprocessor
 This is derived from information in helper_cuda.h in the cuda samples.
\ brief Calculate the number of cores per multiprocessor This is derived from information in helper_cuda . h in the cuda samples .
// Tesla  Generation (SM 1.0) G80   class // Tesla  Generation (SM 1.1) G8x   class // Tesla  Generation (SM 1.2) G9x   class // Tesla  Generation (SM 1.3) GT200 class // Fermi  Generation (SM 2.0) GF100 class // Fermi  Generation (SM 2.1) GF10x class // Kepler Generation (SM 3.0) GK10x class // Kepler Generation (SM 3.5) GK11x class // Unknown SM version