Use nested namespace for amd::smi
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Cette révision appartient à :
révisé par
Galantsev, Dmitrii
Parent
4a863b27ab
révision
eacec681dd
@@ -32,8 +32,7 @@
|
||||
#include "rocm_smi/rocm_smi.h"
|
||||
#include "rocm_smi/rocm_smi_main.h"
|
||||
|
||||
namespace amd {
|
||||
namespace smi {
|
||||
namespace amd::smi {
|
||||
|
||||
|
||||
std::string AMDSmiDrm::find_file_in_folder(const std::string& folder,
|
||||
@@ -204,6 +203,4 @@ uint32_t AMDSmiDrm::get_vendor_id() {
|
||||
return vendor_id;
|
||||
}
|
||||
|
||||
} // namespace smi
|
||||
} // namespace amd
|
||||
|
||||
} // namespace amd::smi
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
#include "rocm_smi/rocm_smi_utils.h"
|
||||
#include "rocm_smi/rocm_smi_logger.h"
|
||||
|
||||
namespace amd {
|
||||
namespace smi {
|
||||
namespace amd::smi {
|
||||
|
||||
uint32_t AMDSmiGPUDevice::get_gpu_id() const {
|
||||
return gpu_id_;
|
||||
@@ -311,5 +310,4 @@ std::vector<uint64_t> AMDSmiGPUDevice::get_bitmask_from_numa_node(int32_t node_i
|
||||
return bitmask;
|
||||
}
|
||||
|
||||
} // namespace smi
|
||||
} // namespace amd
|
||||
} // namespace amd::smi
|
||||
|
||||
@@ -37,8 +37,7 @@
|
||||
// NOTE: This is a *temporary solution* until we get a better approach, likely
|
||||
// a driver API that can give us the capabilities of a GPU in question.
|
||||
//
|
||||
namespace amd {
|
||||
namespace smi {
|
||||
namespace amd::smi {
|
||||
|
||||
const AMDGpuOpModeList_t amdgpu_opmode_check_list {
|
||||
{AMDGpuPropertyOpModeTypes_t::kBareMetal, "Bare Metal"},
|
||||
@@ -541,5 +540,4 @@ rsmi_status_t Device::run_amdgpu_property_reinforcement_query(const AMDGpuProper
|
||||
}
|
||||
|
||||
|
||||
} // namespace smi
|
||||
} // namespace amd
|
||||
} // namespace amd::smi
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur