caffe-distri/src/main/cpp/util/rdma.cpp
// Switch to hexadecimal to simplify transfer using text-based tools
Switch to hexadecimal to simplify transfer using text-based tools
Switch to hexadecimal to simplify transfer using text - based tools
static string hex(uint8_t* data, size_t size) {
  string hex(size * 2, ' ');
  for (int i = 0; i < size; ++i) {
    snprintf(&hex[i * 2], hex.length(), "%02x", data[i]);
  }
  return hex;
}
static string hex ( uint8_t * data , size_t size ) { string hex ( size * 2 , ' ' ) ; for ( int i = 0 ; i < size ; ++ i ) { snprintf ( & hex [ i * 2 ] , hex . length ( ) , " " , data [ i ] ) ; } return hex ; }
Switch to hexadecimal to simplify transfer using text-based tools
Switch to hexadecimal to simplify transfer using text - based tools