Merge pull request #1416 from gargrahul/HACK_hipFreeForManangedMalloc

[HACK] Temporary fix in hipFree for hipManagedMalloc use

[ROCm/clr commit: 8e2f68c2a0]
Этот коммит содержится в:
Evgeny Mankov
2019-09-13 18:57:21 +03:00
коммит произвёл GitHub
родитель 6238b80b9d f79ffd587e
Коммит 4ba645fc09
+2 -1
Просмотреть файл
@@ -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.