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.
Šī revīzija ir iekļauta:
@@ -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>(
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user