[HACK] Temporary fix for hipFree for hipManagedMalloc
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user