P4 to Git Change 2031768 by cpaquot@cpaquot-ocl-lc-lnx on 2019/11/16 17:21:58

SWDEV-212440 - [HIP] Memory access fault observed on Pytorch while running performance tests with Microbenchmarking script
	We need to loop through all the default stream to sync them in case
	the app call hipFree on a different current stream and another current stream
	is using the memory.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#85 edit


[ROCm/hip commit: 9529795fab]
此提交包含在:
foreman committed 2019-11-16 17:25:59 -05:00
1 父節點 4bfac94e66
當前提交 e7931a8649
1 file changed
+3 -1
+3 -1
查看文件
@@ -209,7 +209,9 @@ hipError_t hipFree(void* ptr) {
}
if (amd::SvmBuffer::malloced(ptr)) {
hip::syncStreams();
hip::getNullStream()->finish();
for (size_t i=0; i<g_devices.size(); ++i) {
hip::getNullStream(*g_devices[i])->finish();
}
amd::SvmBuffer::free(*hip::getCurrentContext(), ptr);
HIP_RETURN(hipSuccess);
}