rocr/aie: Changing variable names
This commit is contained in:
committed by
Yat Sin, David
parent
fb33e2e724
commit
c7936334cf
@@ -3,7 +3,7 @@
|
|||||||
// The University of Illinois/NCSA
|
// The University of Illinois/NCSA
|
||||||
// Open Source License (NCSA)
|
// Open Source License (NCSA)
|
||||||
//
|
//
|
||||||
// Copyright (c) 2022-2024, Advanced Micro Devices, Inc. All rights reserved.
|
// Copyright (c) 2022-2025, Advanced Micro Devices, Inc. All rights reserved.
|
||||||
//
|
//
|
||||||
// Developed by:
|
// Developed by:
|
||||||
//
|
//
|
||||||
@@ -76,9 +76,9 @@ hsa_status_t AieAgent::VisitRegion(bool include_peer,
|
|||||||
AMD::callback_t<decltype(callback)> call(callback);
|
AMD::callback_t<decltype(callback)> call(callback);
|
||||||
for (const auto r : regions_) {
|
for (const auto r : regions_) {
|
||||||
hsa_region_t region_handle(core::MemoryRegion::Convert(r));
|
hsa_region_t region_handle(core::MemoryRegion::Convert(r));
|
||||||
hsa_status_t status = call(region_handle, data);
|
hsa_status_t err = call(region_handle, data);
|
||||||
if (status != HSA_STATUS_SUCCESS) {
|
if (err != HSA_STATUS_SUCCESS) {
|
||||||
return status;
|
return err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return HSA_STATUS_SUCCESS;
|
return HSA_STATUS_SUCCESS;
|
||||||
@@ -102,8 +102,8 @@ hsa_status_t AieAgent::IterateSupportedIsas(
|
|||||||
void* data) const {
|
void* data) const {
|
||||||
AMD::callback_t<decltype(callback)> call(callback);
|
AMD::callback_t<decltype(callback)> call(callback);
|
||||||
for (const auto& isa : supported_isas()) {
|
for (const auto& isa : supported_isas()) {
|
||||||
hsa_status_t stat = call(core::Isa::Handle(isa), data);
|
hsa_status_t err = call(core::Isa::Handle(isa), data);
|
||||||
if (stat != HSA_STATUS_SUCCESS) return stat;
|
if (err != HSA_STATUS_SUCCESS) return err;
|
||||||
}
|
}
|
||||||
return HSA_STATUS_SUCCESS;
|
return HSA_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user