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:
zatwierdzone przez
Kudchadker, Saleel
rodzic
bdb6e43b54
commit
57c0c643ce
@@ -3,7 +3,7 @@
|
||||
// The University of Illinois/NCSA
|
||||
// Open Source License (NCSA)
|
||||
//
|
||||
// Copyright (c) 2014-2024, Advanced Micro Devices, Inc. All rights reserved.
|
||||
// Copyright (c) 2014-2025, Advanced Micro Devices, Inc. All rights reserved.
|
||||
//
|
||||
// Developed by:
|
||||
//
|
||||
@@ -1007,7 +1007,16 @@ hsa_status_t HSA_API
|
||||
hsa_status_t HSA_API
|
||||
hsa_amd_memory_copy_engine_status(hsa_agent_t dst_agent, hsa_agent_t src_agent,
|
||||
uint32_t *engine_ids_mask) {
|
||||
return amdExtTable->hsa_amd_memory_copy_engine_status_fn(dst_agent, src_agent, engine_ids_mask);
|
||||
return amdExtTable->hsa_amd_memory_copy_engine_status_fn(dst_agent, src_agent,
|
||||
engine_ids_mask);
|
||||
}
|
||||
|
||||
// Mirrors Amd Extension Apis
|
||||
hsa_status_t HSA_API
|
||||
hsa_amd_memory_get_preferred_copy_engine(hsa_agent_t dst_agent, hsa_agent_t src_agent,
|
||||
uint32_t* recommended_ids_mask) {
|
||||
return amdExtTable->hsa_amd_memory_get_preferred_copy_engine_fn(dst_agent, src_agent,
|
||||
recommended_ids_mask);
|
||||
}
|
||||
|
||||
// Mirrors Amd Extension Apis
|
||||
|
||||
Reference in New Issue
Block a user