[HACK] Temporary fix for hipFree for hipManagedMalloc

[ROCm/hip commit: fe47b2185c]
Этот коммит содержится в:
Rahul Garg
2019-09-13 02:10:21 +05:30
родитель e626477f72
Коммит e79f2d0ff8
+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 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.