Merge pull request #1416 from gargrahul/HACK_hipFreeForManangedMalloc

[HACK] Temporary fix in hipFree for hipManagedMalloc use

[ROCm/clr commit: 8e2f68c2a0]
This commit is contained in:
Evgeny Mankov
2019-09-13 18:57:21 +03:00
کامیت شده توسط GitHub
کامیت 4ba645fc09
@@ -1989,7 +1989,8 @@ hipError_t hipFree(void* ptr) {
#endif
am_status_t status = hc::am_memtracker_getinfo(&amPointerInfo, ptr);
if (status == AM_SUCCESS) {
if (amPointerInfo._hostPointer == NULL) {
/*if (amPointerInfo._hostPointer == NULL) */ //TODO: Fix it when there is proper managed memory support
{
if (HIP_SYNC_FREE) {
// Synchronize all devices, all streams
// to ensure all work has finished on all devices.