Use nested namespace for amd::smi
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
[ROCm/amdsmi commit: faca0222f0]
Este cometimento está contido em:
cometido por
Galantsev, Dmitrii
ascendente
3b411b6759
cometimento
15e335ac3f
@@ -25,8 +25,8 @@
|
||||
#include "amd_smi/impl/amd_smi_common.h"
|
||||
|
||||
|
||||
namespace amd {
|
||||
namespace smi {
|
||||
|
||||
namespace amd::smi {
|
||||
|
||||
amdsmi_status_t rsmi_to_amdsmi_status(rsmi_status_t status) {
|
||||
amdsmi_status_t amdsmi_status = AMDSMI_STATUS_MAP_ERROR;
|
||||
@@ -70,5 +70,5 @@ amdsmi_status_t esmi_to_amdsmi_status(esmi_status_t status) {
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace smi
|
||||
} // namespace amd
|
||||
} // namespace amd::smi
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#include "amd_smi/impl/amd_smi_lib_loader.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace amd {
|
||||
namespace smi {
|
||||
|
||||
namespace amd::smi {
|
||||
|
||||
AMDSmiLibraryLoader::AMDSmiLibraryLoader(): libHandler_(nullptr) {
|
||||
}
|
||||
@@ -69,5 +69,5 @@ AMDSmiLibraryLoader::~AMDSmiLibraryLoader() {
|
||||
unload();
|
||||
}
|
||||
|
||||
} // namespace rdc
|
||||
} // namespace amd
|
||||
} // namespace amd::smi
|
||||
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
#include "amd_smi/impl/amd_smi_socket.h"
|
||||
|
||||
|
||||
namespace amd {
|
||||
namespace smi {
|
||||
namespace amd::smi {
|
||||
|
||||
AMDSmiSocket::~AMDSmiSocket() {
|
||||
for (uint32_t i = 0; i < processors_.size(); i++) {
|
||||
@@ -67,6 +66,6 @@ amdsmi_status_t AMDSmiSocket::get_processor_count(processor_type_t type, uint32_
|
||||
return ret;
|
||||
}
|
||||
|
||||
} // namespace smi
|
||||
} // namespace amd
|
||||
} // namespace amd::smi
|
||||
|
||||
|
||||
|
||||
@@ -33,8 +33,7 @@
|
||||
#include "rocm_smi/rocm_smi_main.h"
|
||||
#include <map>
|
||||
|
||||
namespace amd {
|
||||
namespace smi {
|
||||
namespace amd::smi {
|
||||
|
||||
|
||||
#define AMD_SMI_INIT_FLAG_RESRV_TEST1 0x800000000000000 //!< Reserved for test
|
||||
@@ -470,5 +469,5 @@ amdsmi_status_t AMDSmiSystem::gpu_index_to_handle(uint32_t gpu_index,
|
||||
}
|
||||
|
||||
|
||||
} // namespace smi
|
||||
} // namespace amd
|
||||
} // namespace amd::smi
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador