Merge pull request #1416 from gargrahul/HACK_hipFreeForManangedMalloc

[HACK] Temporary fix in hipFree for hipManagedMalloc use

[ROCm/hip commit: e51880cbca]
This commit is contained in:
Evgeny Mankov
2019-09-13 18:57:21 +03:00
zatwierdzone przez GitHub
+2 -1
Wyświetl plik
@@ -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.