P4 to Git Change 1548560 by skudchad@skudchad_rocm on 2018/05/01 18:53:54

SWDEV-145570 - [HIP] - Fix hipDeviceSynchronize.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#8 edit
这个提交包含在:
foreman 于 2018-05-01 19:01:10 -04:00 提交
1 父节点 9c7b328101
当前提交 5f549b62e8
1 个文件已更改
+7
+7
查看文件
@@ -375,6 +375,13 @@ hipError_t hipDeviceSetSharedMemConfig ( hipSharedMemConfig config ) {
}
hipError_t hipDeviceSynchronize ( void ) {
amd::HostQueue* queue = hip::getNullStream();
if (!queue) {
return hipErrorOutOfMemory;
}
queue->finish();
return hipSuccess;
}