rocr: return preferred SDMA engine mask

- Add a new AMD extension API to return preferred SDMA engine mask.
This can use used in conjunction with copy_on_engine API to get
optimal bandwidth.
This commit is contained in:
Saleel Kudchadker
2025-04-10 14:47:00 +00:00
committato da Kudchadker, Saleel
parent bdb6e43b54
commit 57c0c643ce
13 ha cambiato i file con 119 aggiunte e 19 eliminazioni
+10
Vedi File
@@ -283,6 +283,16 @@ class Runtime {
hsa_status_t CopyMemoryStatus(core::Agent* dst_agent, core::Agent* src_agent,
uint32_t *engine_ids_mask);
/// @brief Get preferred SDMA engine for the copy direction
///
/// @param [in] dst_agent Destination agent.
/// @param [in] src_agent Source agent.
/// @param [out] recommended_ids_mask Mask of recommended_ids.
///
/// @retval HSA_STATUS_SUCCESS For mask returned
hsa_status_t GetPreferredEngine(core::Agent* dst_agent, core::Agent* src_agent,
uint32_t* recommended_ids_mask);
/// @brief Fill the first @p count of uint32_t in ptr with value.
///
/// @param [in] ptr Memory address to be filled.