Searched refs:former_context (Results 1 – 1 of 1) sorted by relevance
401 CUcontext former_context; in CreateContext() local420 former_context = cuda::CurrentContextOrDie(); in CreateContext()422 if (former_context != nullptr) { in CreateContext()426 if (former_context == new_context) { in CreateContext()427 VLOG(2) << "The primary context " << former_context << " for device " in CreateContext()431 LOG(WARNING) << "A non-primary context " << former_context in CreateContext()440 << former_context; in CreateContext()443 CHECK_EQ(CUDA_SUCCESS, cuCtxSetCurrent(former_context)); in CreateContext()472 CUcontext former_context = CurrentContext(); in DestroyContext() local476 cuCtxSetCurrent(former_context); in DestroyContext()