Re-organize function documentation into sections
[ROCm/rocm_smi_lib commit: 89fb40fbe5]
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -85,16 +85,15 @@ void TestErrCntRead::Close() {
|
||||
void TestErrCntRead::Run(void) {
|
||||
rsmi_status_t err;
|
||||
rsmi_error_count_t ec;
|
||||
|
||||
TestBase::Run();
|
||||
|
||||
TestBase::Run();
|
||||
|
||||
for (uint32_t i = 0; i < num_monitor_devs(); ++i) {
|
||||
PrintDeviceHeader(i);
|
||||
|
||||
for (uint32_t b = RSMI_GPU_BLOCK_FIRST; b <= RSMI_GPU_BLOCK_LAST; ++b) {
|
||||
err = rsmi_dev_error_count_get(i, static_cast<rsmi_gpu_block_t>(b), &ec);
|
||||
|
||||
|
||||
if (err == RSMI_STATUS_NOT_SUPPORTED) {
|
||||
std::cout << "\t**Error Count for " <<
|
||||
GetBlockNameStr(static_cast<rsmi_gpu_block_t>(b)) <<
|
||||
|
||||
@@ -54,7 +54,8 @@
|
||||
#include "rocm_smi_test/functional/perf_level_read_write.h"
|
||||
#include "rocm_smi_test/test_common.h"
|
||||
|
||||
static const std::map<rsmi_dev_perf_level_t, const char *> kDevPerfLvlNameMap = {
|
||||
static const std::map<rsmi_dev_perf_level_t, const char *>
|
||||
kDevPerfLvlNameMap = {
|
||||
{RSMI_DEV_PERF_LEVEL_AUTO, "RSMI_DEV_PERF_LEVEL_AUTO"},
|
||||
{RSMI_DEV_PERF_LEVEL_LOW, "RSMI_DEV_PERF_LEVEL_LOW"},
|
||||
{RSMI_DEV_PERF_LEVEL_HIGH, "RSMI_DEV_PERF_LEVEL_HIGH"},
|
||||
@@ -129,7 +130,7 @@ void TestPerfLevelReadWrite::Run(void) {
|
||||
" ..." << std::endl;
|
||||
}
|
||||
ret = rsmi_dev_perf_level_set(dv_ind,
|
||||
static_cast<rsmi_dev_perf_level_t>(pfl_i));
|
||||
static_cast<rsmi_dev_perf_level_t>(pfl_i));
|
||||
CHK_ERR_ASRT(ret)
|
||||
ret = rsmi_dev_perf_level_get(dv_ind, &pfl);
|
||||
CHK_ERR_ASRT(ret)
|
||||
|
||||
Reference in New Issue
Block a user