[HACK] Temporary fix for hipFree for hipManagedMalloc

This commit is contained in:
Rahul Garg
2019-09-13 02:10:21 +05:30
rodzic 6739a6d656
commit fe47b2185c
+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 this when there is proper Managed memeory support
{
if (HIP_SYNC_FREE) {
// Synchronize all devices, all streams
// to ensure all work has finished on all devices.