rocr: Add executable flag for memory allocations
Change-Id: I8307cd3562c3ab9c12fef8c457a59916e33b7923
[ROCm/ROCR-Runtime commit: d58c9dea0a]
이 커밋은 다음에 포함됨:
1 부모
d0c5158374
커밋
35187a00df
2 파일이 변경됨
+7
검색과 일치하는 파일 없음
@@ -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
|
||||
|
||||
@@ -1574,6 +1574,10 @@ typedef enum hsa_amd_memory_pool_flag_s {
|
||||
* Allocates physically contiguous memory
|
||||
*/
|
||||
HSA_AMD_MEMORY_POOL_CONTIGUOUS_FLAG = (1 << 1),
|
||||
/**
|
||||
* Allocates executable memory
|
||||
*/
|
||||
HSA_AMD_MEMORY_POOL_EXECUTABLE_FLAG = (1 << 2),
|
||||
|
||||
} hsa_amd_memory_pool_flag_t;
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단