mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
[7/n] Unified Shared Memory.
- Add basic allocation support for shared allocations - Add kernel support for shared allocations. Related-To: NEO-3148 Change-Id: Ie0523acc3a444eef6a5aeb6a56a041280df6a02e Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
57f88ee197
commit
3a75c4fb71
@@ -950,6 +950,10 @@ void Kernel::setUnifiedMemoryProperty(cl_kernel_exec_info infoType, bool infoVal
|
||||
this->unifiedMemoryControls.indirectHostAllocationsAllowed = infoValue;
|
||||
return;
|
||||
}
|
||||
if (infoType == CL_KERNEL_EXEC_INFO_INDIRECT_SHARED_ACCESS_INTEL) {
|
||||
this->unifiedMemoryControls.indirectSharedAllocationsAllowed = infoValue;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void Kernel::setUnifiedMemoryExecInfo(GraphicsAllocation *unifiedMemoryAllocation) {
|
||||
@@ -1015,7 +1019,8 @@ void Kernel::makeResident(CommandStreamReceiver &commandStreamReceiver) {
|
||||
gtpinNotifyMakeResident(this, &commandStreamReceiver);
|
||||
|
||||
if (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectHostAllocationsAllowed) {
|
||||
unifiedMemoryControls.indirectHostAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectSharedAllocationsAllowed) {
|
||||
this->getContext().getSVMAllocsManager()->makeInternalAllocationsResident(commandStreamReceiver, unifiedMemoryControls.generateMask());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user