SWDEV-371904 - Adding pseudo fine grain flag to hsa memory allocation for device fine grained memory.
Change-Id: I8cada90f0e3880dfbc5bf5a3fac4554e7a0cb08e
[ROCm/clr commit: e56a611b92]
This commit is contained in:
کامیت شده توسط
Karthik Jayaprakash
والد
9cd8e38967
کامیت
e295beb8ba
@@ -796,7 +796,8 @@ bool Buffer::create(bool alloc_local) {
|
||||
}
|
||||
} else {
|
||||
assert(!isHostMemDirectAccess() && "Runtime doesn't support direct access to GPU memory!");
|
||||
deviceMemory_ = dev().deviceLocalAlloc(size(), (memFlags & CL_MEM_SVM_ATOMICS) != 0);
|
||||
deviceMemory_ = dev().deviceLocalAlloc(size(), (memFlags & CL_MEM_SVM_ATOMICS) != 0,
|
||||
(memFlags & ROCCLR_MEM_HSA_PSEUDO_FINE_GRAIN) != 0);
|
||||
}
|
||||
owner()->setSvmPtr(deviceMemory_);
|
||||
} else {
|
||||
|
||||
مرجع در شماره جدید
Block a user