rocr:Fix compile warnings
Tento commit je obsažen v:
1 rodič
0d70045817
revize
11da1293de
5 files changed
+9
-5
No files matched your search
@@ -115,10 +115,11 @@ GpuAgent::GpuAgent(HSAuint32 node, const HsaNodeProperties& node_props, bool xna
|
||||
scratch_cache_(
|
||||
[this](void* base, size_t size, bool large) { ReleaseScratch(base, size, large); }),
|
||||
trap_handler_tma_region_(NULL),
|
||||
rec_sdma_eng_override_(false),
|
||||
pcs_hosttrap_data_(),
|
||||
pcs_stochastic_data_(),
|
||||
xgmi_cpu_gpu_(false),
|
||||
rec_sdma_eng_override_(false) {
|
||||
large_bar_enabled_(false){
|
||||
const bool is_apu_node = (properties_.NumCPUCores > 0);
|
||||
profile_ = (is_apu_node) ? HSA_PROFILE_FULL : HSA_PROFILE_BASE;
|
||||
|
||||
|
||||
@@ -443,7 +443,7 @@ bool BuildTopology() {
|
||||
// Using one pcie sdma for device to device copy with limited XGMI SDMA engine.
|
||||
// This will help improve all to all copy with limited XGMI SDMA engine.
|
||||
if (rec_sdma_engine_override) {
|
||||
uint32_t sdma_engine_mask = (1 << ((AMD::GpuAgent*)src_gpu)->properties().NumSdmaEngines - 1);
|
||||
uint32_t sdma_engine_mask = (1 << (((AMD::GpuAgent*)src_gpu)->properties().NumSdmaEngines - 1));
|
||||
rec_sdma_eng_id_mask = !IsPowerOfTwo(rec_sdma_eng_id_mask) ?
|
||||
sdma_engine_mask : rec_sdma_eng_id_mask;
|
||||
}
|
||||
|
||||
Reference in new issue
Zablokovat Uživatele