Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rocclr/device/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,13 @@ bool Device::IpcCreate(void* dev_ptr, size_t* mem_size, char* handle, size_t* me
return false;
}

// VMM allocations must use hipMemExportToShareableHandle for IPC.
if (amd_mem_obj->getMemFlags() & CL_MEM_VA_RANGE_AMD) {
ClPrint(amd::LOG_DETAIL_DEBUG, amd::LOG_MEM,
"IPC is not supported for VMM allocations (dev_ptr: 0x%x)", dev_ptr);
return false;
}

// Get the original pointer from the amd::Memory object
void* orig_dev_ptr = nullptr;
if (amd_mem_obj->getSvmPtr() != nullptr) {
Expand Down
Loading