diff --git a/vdi/hip_memory.cpp b/vdi/hip_memory.cpp index 3fc1a2921a..083b855fa9 100644 --- a/vdi/hip_memory.cpp +++ b/vdi/hip_memory.cpp @@ -64,16 +64,7 @@ hipError_t ihipMalloc(void** ptr, size_t sizeBytes, unsigned int flags) *ptr = amd::SvmBuffer::malloc(*amdContext, flags, sizeBytes, amdContext->devices()[0]->info().memBaseAddrAlign_); if (*ptr == nullptr) { - - for (auto& dev : g_devices) { - hip::getNullStream(*dev->asContext())->finish(); - hip::syncStreams(dev->deviceId()); - } - - *ptr = amd::SvmBuffer::malloc(*amdContext, flags, sizeBytes, amdContext->devices()[0]->info().memBaseAddrAlign_); - if (*ptr == nullptr) { - return hipErrorOutOfMemory; - } + return hipErrorOutOfMemory; } ClPrint(amd::LOG_INFO, amd::LOG_API, "ihipMalloc ptr=0x%zx", *ptr); return hipSuccess;