SWDEV-543723 - Execute permission for kernArg buf (#728)

- Refactor deviceLocalAlloc arguments
- Refactor hostAlloc code, have cleaner interface
- Kern args buffer need to have execute flag set as CP enforces this on
  certain newer HW.
Этот коммит содержится в:
SaleelK authored and GitHub committed 2025-09-08 12:21:30 -07:00
1 родитель dcc526e1fd
Коммит e197aa83ba
8 files changed
+57 -49

No files matched your search

+3 -1
Просмотреть файл
@@ -758,7 +758,9 @@ bool GraphKernelArgManager::AllocGraphKernargPool(size_t pool_size, amd::Device*
// callback thread.
device_ = device;
if (device->info().largeBar_) {
graph_kernarg_base = reinterpret_cast<address>(device->deviceLocalAlloc(pool_size));
amd::Device::AllocationFlags flags = {};
flags.executable_ = true;
graph_kernarg_base = reinterpret_cast<address>(device->deviceLocalAlloc(pool_size, flags));
device_kernarg_pool_ = true;
} else {
graph_kernarg_base = reinterpret_cast<address>(