rocr: Add executable flag for memory allocations

Change-Id: I8307cd3562c3ab9c12fef8c457a59916e33b7923


[ROCm/ROCR-Runtime commit: d58c9dea0a]
This commit is contained in:
David Yat Sin
2024-10-15 16:52:00 +00:00
parent d0c5158374
commit 35187a00df
2 changed files with 7 additions and 0 deletions
@@ -792,6 +792,9 @@ hsa_status_t hsa_amd_memory_pool_allocate(hsa_amd_memory_pool_t memory_pool, siz
if (flags & HSA_AMD_MEMORY_POOL_CONTIGUOUS_FLAG)
alloc_flag |= core::MemoryRegion::AllocateContiguous;
if (flags & HSA_AMD_MEMORY_POOL_EXECUTABLE_FLAG)
alloc_flag |= core::MemoryRegion::AllocateExecutable;
#ifdef SANITIZER_AMDGPU
alloc_flag |= core::MemoryRegion::AllocateAsan;
#endif