Commit 68ed0d86 authored by Francois Tessier's avatar Francois Tessier

Factorize the code for the memory abstraction for Cray XC40

parent 0f6d8fdb
...@@ -270,27 +270,7 @@ int Memory::memUncache ( ) { ...@@ -270,27 +270,7 @@ int Memory::memUncache ( ) {
/* |-- Utils */ /* |-- Utils */
/**********************/ /**********************/
char* Memory::memName ( ) { char* Memory::memName ( ) {
switch ( this->mem_ ) return this->memName ( this->mem_ );
{
case DDR:
return "DDR";
break;
case HBM:
return "HBM";
break;
case PFS:
return "PFS";
break;
case NLS:
return "NLS";
break;
case NVR:
return "NVR";
break;
default:
printMsg ( ERROR, "Wrong memory type!\n" );
MPI_Abort ( MPI_COMM_WORLD, -1 );
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment