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