Merge "SWDEV-301543 SWDEV-276146 : Fix profile output buff allocation" into amd-staging

이 커밋은 다음에 포함됨:
Chun Yang 작성하고 Gerrit Code Review가 2021-09-08 13:27:01 -04:00를 커밋함
커밋 4409957364
1 파일이 변경됨
+4 -1
+4 -1
파일 보기
@@ -331,7 +331,10 @@ class PmcProfile : public Profile {
hsa_status_t Allocate(util::HsaRsrcFactory* rsrc) {
profile_.command_buffer.ptr =
rsrc->AllocateSysMemory(agent_info_, profile_.command_buffer.size);
profile_.output_buffer.ptr = rsrc->AllocateSysMemory(agent_info_, profile_.output_buffer.size);
// Allocate profile output buffer from kernarg memory pool since kernarg
// memory buffer is uncached. So when GPU copies performance counter values
// to this buffer they are guaranteed to be visible to CPU.
profile_.output_buffer.ptr = rsrc->AllocateKernArgMemory(agent_info_, profile_.output_buffer.size);
return (profile_.command_buffer.ptr && profile_.output_buffer.ptr) ? HSA_STATUS_SUCCESS
: HSA_STATUS_ERROR;
}