P4 to Git Change 1574251 by skudchad@skudchad_rocm on 2018/06/29 01:49:57

SWDEV-145570 - [HIP] Fix hipHostUnregister.

Affected files ...

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


[ROCm/clr commit: 167d628a49]
This commit is contained in:
foreman
2018-06-29 01:59:22 -04:00
parent 7bc91d5c18
commit b5914098d4
@@ -540,6 +540,9 @@ hipError_t hipHostUnregister(void* hostPtr) {
amd::Memory* mem = getMemoryObject(hostPtr, offset);
if(mem) {
hip::syncStreams();
hip::getNullStream()->finish();
amd::MemObjMap::RemoveMemObj(hostPtr);
mem->release();
return hipSuccess;
}