tensorflow/stream_executor/rocm/rocm_driver.cc
// Actually performs the work of ROCM initialization. Wrapped up in one-time
// execution guard.
Actually performs the work of ROCM initialization. Wrapped up in one-time
execution guard.
Actually performs the work of ROCM initialization . Wrapped up in one - time execution guard .
static port::Status InternalInit() {
  hipError_t res = hipErrorNoDevice;
  if (FLAGS_gpuexec_rocm_driver_inject_init_error) {
    LOG(ERROR) << "injecting ROCM init error; initialization will fail";
  } else {
    res = tensorflow::wrap::hipInit(0 );
  }
  if (res == hipSuccess) {
    return port::Status::OK();
  }
  LOG(ERROR) << "failed call to hipInit: " << ToString(res);
  Diagnostician::LogDiagnosticInformation();
  return port::Status{port::error::ABORTED,
                      absl::StrCat("failed call to hipInit: ", ToString(res))};
}
static port :: Status InternalInit ( ) { hipError_t res = hipErrorNoDevice ; if ( FLAGS_gpuexec_rocm_driver_inject_init_error ) { LOG ( ERROR ) << " " ; } else { res = tensorflow :: wrap :: hipInit ( 0 ) ; } if ( res == hipSuccess ) { return port :: Status :: OK ( ) ; } LOG ( ERROR ) << " " << ToString ( res ) ; Diagnostician :: LogDiagnosticInformation ( ) ; return port :: Status { port :: error :: ABORTED , absl :: StrCat ( " " , ToString ( res ) ) } ; }
Actually performs the work of ROCM initialization.
Actually performs the work of ROCM initialization .
/* = flags */