mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Add helper function for checking kernel memory attributes
Change-Id: I1abcf5209ddc0e5ec3ecb1281d4521dcc8dbe745 Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
@@ -651,6 +651,12 @@ Kernel *Kernel::create(uint32_t productFamily, Module *module,
|
||||
return function;
|
||||
}
|
||||
|
||||
bool KernelImp::hasIndirectAllocationsAllowed() {
|
||||
return (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectHostAllocationsAllowed ||
|
||||
unifiedMemoryControls.indirectSharedAllocationsAllowed);
|
||||
}
|
||||
|
||||
bool KernelImp::hasBarriers() {
|
||||
return getImmutableData()->getDescriptor().kernelAttributes.flags.usesBarriers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user