SWDEV-398047 - Disable arena for XNACK.

Change-Id: If6c98490bd5b8146a357f45ed132f687def0877f
This commit is contained in:
Jaydeep Patel
2023-05-09 10:03:33 +00:00
committed by Jaydeepkumar Patel
parent a7041d15a7
commit ffa1deef27
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -3235,9 +3235,10 @@ device::Signal* Device::createSignal() const {
amd::Memory* Device::GetArenaMemObj(const void* ptr, size_t& offset, size_t size) {
// Only create arena_mem_object if CPU memory is accessible from HMM
// or if runtime received an interop from another ROCr's client
// Disable arena for XNACK
hsa_amd_pointer_info_t ptr_info = {};
ptr_info.size = sizeof(hsa_amd_pointer_info_t);
if (!info_.hmmCpuMemoryAccessible_ && !IsValidAllocation(ptr, size, &ptr_info)) {
if (!IsValidAllocation(ptr, size, &ptr_info)) {
return nullptr;
}