aqlprofile API: _aqlprofile_start() returns required profile buffer sizes if undersized

Change-Id: Ib14b2cb2e7e2026c3af0b7bd2f08f51e48e598b2


[ROCm/ROCR-Runtime commit: bb8eaf3ac8]
这个提交包含在:
Evgeny 于 2017-11-09 20:03:55 -06:00 提交
1 父节点 76c28f38c4
当前提交 fd81986bb2
2 个文件已更改
+30 -1

没有与搜索条件相匹配的文件

@@ -763,9 +763,15 @@ hsa_status_t hsa_ven_amd_aqlprofile_validate_event(
return core::Runtime::runtime_singleton_->extensions_.aqlprofile_api.hsa_ven_amd_aqlprofile_validate_event_fn(agent, event, result);
}
#ifndef HSA_AQLPROFILE_START_NEW_API
hsa_status_t hsa_ven_amd_aqlprofile_start(
const hsa_ven_amd_aqlprofile_profile_t* profile, // [in] profile contex object
hsa_ext_amd_aql_pm4_packet_t* aql_start_packet) // [out] profile start AQL packet
#else
hsa_status_t hsa_ven_amd_aqlprofile_start(
hsa_ven_amd_aqlprofile_profile_t* profile, // [in/out] profile contex object
hsa_ext_amd_aql_pm4_packet_t* aql_start_packet) // [out] profile start AQL packet
#endif
{
return core::Runtime::runtime_singleton_->extensions_.aqlprofile_api.hsa_ven_amd_aqlprofile_start_fn(profile, aql_start_packet);
}