rocr:Only set asan flag on GPU agents
이 커밋은 다음에 포함됨:
1 부모
9a950ab788
커밋
3944da1d76
1 파일이 변경됨
+2
-1
@@ -834,7 +834,8 @@ hsa_status_t hsa_amd_memory_pool_allocate(hsa_amd_memory_pool_t memory_pool, siz
|
||||
alloc_flag |= core::MemoryRegion::AllocateExecutable;
|
||||
|
||||
#ifdef SANITIZER_AMDGPU
|
||||
alloc_flag |= core::MemoryRegion::AllocateAsan;
|
||||
if (mem_region->owner()->device_type() == core::Agent::kAmdGpuDevice)
|
||||
alloc_flag |= core::MemoryRegion::AllocateAsan;
|
||||
#endif
|
||||
|
||||
return core::Runtime::runtime_singleton_->AllocateMemory(mem_region, size, alloc_flag, ptr);
|
||||
|
||||
새 이슈에서 참조
사용자 차단