Home
last modified time | relevance | path

Searched refs:former_context (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_driver.cc404 CUcontext former_context; in CreateContext() local
423 former_context = cuda::CurrentContextOrDie(); in CreateContext()
425 if (former_context != nullptr) { in CreateContext()
429 if (former_context == new_context) { in CreateContext()
430 VLOG(2) << "The primary context " << former_context << " for device " in CreateContext()
434 LOG(WARNING) << "A non-primary context " << former_context in CreateContext()
443 << former_context; in CreateContext()
446 CHECK_EQ(CUDA_SUCCESS, cuCtxSetCurrent(former_context)); in CreateContext()
474 CUcontext former_context = CurrentContext(); in DestroyContext() local
478 cuCtxSetCurrent(former_context); in DestroyContext()