MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Init

Method Init

tensorflow/stream_executor/rocm/rocm_driver.cc:314–321  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

312} // namespace
313
314/* static */ port::Status GpuDriver::Init() {
315 // Cached return value from calling InternalInit(), as hipInit need only be
316 // called once, but GpuDriver::Init may be called many times.
317 static port::Status* init_retval = [] {
318 return new port::Status(InternalInit());
319 }();
320 return *init_retval;
321}
322
323/* static */ port::Status GpuDriver::GetDevice(int device_ordinal,
324 hipDevice_t* device) {

Callers

nothing calls this directly

Calls 1

InternalInitFunction · 0.70

Tested by

no test coverage detected