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

Method Init

tensorflow/stream_executor/cuda/cuda_driver.cc:315–322  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

InternalInitFunction · 0.70

Tested by

no test coverage detected