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 committed 2018-05-01 19:01:10 -04:00
1 родитель 9c7b328101
Коммит 5f549b62e8
1 file changed
+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;
}