tensorflow/stream_executor/rocm/rocm_driver.cc
// Returns a stringified memory space associated with pointer, primarily for
// logging purposes. Returns "?" if the memory space could not be successfully
// queried.
Returns a stringified memory space associated with pointer, primarily for
logging purposes. Returns "?" if the memory space could not be successfully
queried.
Returns a stringified memory space associated with pointer primarily for logging purposes . Returns " ? " if the memory space could not be successfully queried .
string ROCMPointerToMemorySpaceString(hipDeviceptr_t pointer) {
  auto value = GpuDriver::GetPointerMemorySpace(pointer);
  if (value.ok()) {
    return MemorySpaceString(value.ValueOrDie());
  }
  LOG(ERROR) << "could not query device: " << value.status();
  return "?";
}
string ROCMPointerToMemorySpaceString ( hipDeviceptr_t pointer ) { auto value = GpuDriver :: GetPointerMemorySpace ( pointer ) ; if ( value . ok ( ) ) { return MemorySpaceString ( value . ValueOrDie ( ) ) ; } LOG ( ERROR ) << " " << value . status ( ) ; return " " ; }
Returns a stringified memory space associated with pointer, primarily for
logging purposes.
Returns a stringified memory space associated with pointer primarily for logging purposes .