Loading src/TNL/Hip/DeviceInfo.hpp +3 −32 Original line number Diff line number Diff line Loading @@ -177,38 +177,9 @@ DeviceInfo:: getHipCoresPerMultiprocessors( int deviceNum ) { #ifdef HAVE_HIP return -1; // TODO: The following is very unlikely to work /*int major = DeviceInfo::getArchitectureMajor( deviceNum ); int minor = DeviceInfo::getArchitectureMinor( deviceNum ); switch( major ) { case 1: // Tesla generation, G80, G8x, G9x classes return 8; case 2: // Fermi generation switch( minor ) { case 0: // GF100 class return 32; case 1: // GF10x class return 48; } case 3: // Kepler generation -- GK10x, GK11x classes return 192; case 5: // Maxwell generation -- GM10x, GM20x classes return 128; case 6: // Pascal generation switch( minor ) { case 0: // GP100 class // TODO: check if this is general enough // 64 taken from https://en.wikipedia.org/wiki/Graphics_Core_Next#Compute_units return 64; case 1: // GP10x classes case 2: return 128; } default: return -1; }*/ #else throw Exceptions::HipSupportMissing(); #endif Loading Loading
src/TNL/Hip/DeviceInfo.hpp +3 −32 Original line number Diff line number Diff line Loading @@ -177,38 +177,9 @@ DeviceInfo:: getHipCoresPerMultiprocessors( int deviceNum ) { #ifdef HAVE_HIP return -1; // TODO: The following is very unlikely to work /*int major = DeviceInfo::getArchitectureMajor( deviceNum ); int minor = DeviceInfo::getArchitectureMinor( deviceNum ); switch( major ) { case 1: // Tesla generation, G80, G8x, G9x classes return 8; case 2: // Fermi generation switch( minor ) { case 0: // GF100 class return 32; case 1: // GF10x class return 48; } case 3: // Kepler generation -- GK10x, GK11x classes return 192; case 5: // Maxwell generation -- GM10x, GM20x classes return 128; case 6: // Pascal generation switch( minor ) { case 0: // GP100 class // TODO: check if this is general enough // 64 taken from https://en.wikipedia.org/wiki/Graphics_Core_Next#Compute_units return 64; case 1: // GP10x classes case 2: return 128; } default: return -1; }*/ #else throw Exceptions::HipSupportMissing(); #endif Loading