[bugfix]Not set device id in asynchronous compile and run graph

pull/14328/head
lizhenyu 4 years ago
parent ccf5b3d808
commit cf2244f1ef

@ -71,6 +71,7 @@ bool GPUKernelRuntime::Init() {
enable_relation_cache_ = context::GraphKernelFlags::GetInstance().IsEnableGraphKernel();
if (device_init_ == true) {
CHECK_OP_RET_WITH_EXCEPT(CudaDriver::SetDevice(UintToInt(device_id_)), "Failed to set device id");
GPUMemoryAllocator::GetInstance().CheckMaxDeviceMemory();
return true;
}

Loading…
Cancel
Save