Rename description of job stats
Change the job stats description. Change-Id: I9b56a40d648c05e5327ad1b640277302d0e5e00c
Dieser Commit ist enthalten in:
committet von
Chris Freehill
Ursprung
96afb24845
Commit
2772d3f238
@@ -150,11 +150,11 @@ int main(int, char **) {
|
||||
<< "Max: " << job_info.summary.power_usage.max_value
|
||||
<< " Min: "<< job_info.summary.power_usage.min_value
|
||||
<< " Avg: "<< job_info.summary.power_usage.average << "\n";
|
||||
std::cout << "| SM Clock (MHz) | "
|
||||
std::cout << "| GPU Clock (MHz) | "
|
||||
<< "Max: " <<job_info.summary.gpu_clock.max_value
|
||||
<<" Min: " << job_info.summary.gpu_clock.min_value
|
||||
<<" Avg: "<< job_info.summary.gpu_clock.average << "\n";
|
||||
std::cout << "| SM Utilization (%) | "
|
||||
std::cout << "| GPU Utilization (%) | "
|
||||
<< "Max: " <<job_info.summary.gpu_utilization.max_value
|
||||
<<" Min: "<< job_info.summary.gpu_utilization.min_value
|
||||
<<" Avg: "<< job_info.summary.gpu_utilization.average << "\n";
|
||||
|
||||
@@ -144,9 +144,9 @@ typedef enum {
|
||||
#define RDC_FI_POWER_USAGE 155
|
||||
|
||||
/**
|
||||
* SM clock for the GPU
|
||||
* The current clock for the GPU
|
||||
*/
|
||||
#define RDC_FI_GPU_SM_CLOCK 100
|
||||
#define RDC_FI_GPU_CLOCK 100
|
||||
|
||||
/**
|
||||
* Clock for the memory
|
||||
|
||||
@@ -354,7 +354,7 @@ const char* field_id_string(uint32_t field_id) {
|
||||
{RDC_FI_GPU_MEMORY_USAGE, "GPU_MEMORY_USAGE"},
|
||||
{RDC_FI_GPU_MEMORY_TOTAL, "GPU_MEMORY_TOTAL"},
|
||||
{RDC_FI_POWER_USAGE, "POWER_USAGE"},
|
||||
{RDC_FI_GPU_SM_CLOCK, "GPU_SM_CLOCK"},
|
||||
{RDC_FI_GPU_CLOCK, "GPU_CLOCK"},
|
||||
{RDC_FI_GPU_UTIL, "GPU_UTIL"},
|
||||
{RDC_FI_GPU_TEMP, "GPU_TEMP"},
|
||||
{RDC_FI_GPU_COUNT, "GPU_COUNT"},
|
||||
|
||||
@@ -342,7 +342,7 @@ rdc_status_t RdcCacheManagerImpl::rdc_job_get_stats(char jobId[64],
|
||||
summary_info.max_gpu_memory_used = std::max(
|
||||
summary_info.max_gpu_memory_used,
|
||||
gpu_info.max_gpu_memory_used);
|
||||
} else if (ite->first == RDC_FI_GPU_SM_CLOCK) {
|
||||
} else if (ite->first == RDC_FI_GPU_CLOCK) {
|
||||
set_summary(ite->second, gpu_info.gpu_clock,
|
||||
summary_info.gpu_clock, 1000000);
|
||||
} else if (ite->first == RDC_FI_GPU_UTIL) {
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace rdc {
|
||||
RdcGroupSettingsImpl::RdcGroupSettingsImpl() {
|
||||
// Add the default job stats fields
|
||||
uint32_t job_fields[] = {RDC_FI_GPU_MEMORY_USAGE,
|
||||
RDC_FI_POWER_USAGE, RDC_FI_GPU_SM_CLOCK, RDC_FI_GPU_UTIL,
|
||||
RDC_FI_POWER_USAGE, RDC_FI_GPU_CLOCK, RDC_FI_GPU_UTIL,
|
||||
RDC_FI_PCIE_TX, RDC_FI_PCIE_RX, RDC_FI_MEM_CLOCK,
|
||||
RDC_FI_GPU_TEMP};
|
||||
char job_field_group[] = "JobStatsFields";
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace rdc {
|
||||
bool RdcMetricFetcherImpl::is_field_valid(uint32_t field_id) const {
|
||||
const std::vector<uint32_t> all_fields = {RDC_FI_GPU_MEMORY_USAGE,
|
||||
RDC_FI_GPU_MEMORY_TOTAL, RDC_FI_GPU_COUNT, RDC_FI_POWER_USAGE,
|
||||
RDC_FI_GPU_SM_CLOCK, RDC_FI_GPU_UTIL, RDC_FI_DEV_NAME, RDC_FI_GPU_TEMP,
|
||||
RDC_FI_GPU_CLOCK, RDC_FI_GPU_UTIL, RDC_FI_DEV_NAME, RDC_FI_GPU_TEMP,
|
||||
RDC_FI_MEM_CLOCK, RDC_FI_PCIE_TX, RDC_FI_PCIE_RX,
|
||||
RDC_FI_ECC_CORRECT_TOTAL, RDC_FI_ECC_UNCORRECT_TOTAL, RDC_FI_MEMORY_TEMP};
|
||||
|
||||
@@ -265,7 +265,7 @@ rdc_status_t RdcMetricFetcherImpl::fetch_smi_field(uint32_t gpu_index,
|
||||
value->value.l_int = static_cast<int64_t>(i64);
|
||||
}
|
||||
break;
|
||||
case RDC_FI_GPU_SM_CLOCK:
|
||||
case RDC_FI_GPU_CLOCK:
|
||||
case RDC_FI_MEM_CLOCK:
|
||||
rsmi_frequencies_t f;
|
||||
clk_type = RSMI_CLK_TYPE_SYS;
|
||||
|
||||
@@ -277,7 +277,7 @@ void RdciDmonSubSystem::create_temp_field_group() {
|
||||
|
||||
void RdciDmonSubSystem::show_field_usage() const {
|
||||
std::cout << "Supported fields Ids:\n";
|
||||
std::cout << "100 RDC_FI_GPU_SM_CLOCK: Current GPU clock frequencies.\n";
|
||||
std::cout << "100 RDC_FI_GPU_CLOCK: Current GPU clock frequencies.\n";
|
||||
std::cout << "101 RDC_FI_MEM_CLOCK: Current Memory clock frequencies.\n";
|
||||
std::cout << "140 RDC_FI_MEMORY_TEMP: Memory "
|
||||
<< "temperature in millidegrees Celsius.\n";
|
||||
|
||||
@@ -164,7 +164,7 @@ void RdciStatsSubSystem::show_job_stats(
|
||||
<< gpu_info.power_usage.max_value<< " Min: "<<
|
||||
gpu_info.power_usage.min_value << " Avg: "
|
||||
<< gpu_info.power_usage.average << "\n";
|
||||
std::cout << "| SM Clock (MHz) | " << "Max: "
|
||||
std::cout << "| GPU Clock (MHz) | " << "Max: "
|
||||
<< gpu_info.gpu_clock.max_value << " Min: " <<
|
||||
gpu_info.gpu_clock.min_value << " Avg: "
|
||||
<< gpu_info.gpu_clock.average << "\n";
|
||||
@@ -172,7 +172,7 @@ void RdciStatsSubSystem::show_job_stats(
|
||||
<< gpu_info.memory_clock.max_value << " Min: " <<
|
||||
gpu_info.memory_clock.min_value << " Avg: "
|
||||
<< gpu_info.memory_clock.average << "\n";
|
||||
std::cout << "| SM Utilization (%) | " << "Max: "
|
||||
std::cout << "| GPU Utilization (%) | " << "Max: "
|
||||
<< gpu_info.gpu_utilization.max_value <<" Min: " <<
|
||||
gpu_info.gpu_utilization.min_value << " Avg: " <<
|
||||
gpu_info.gpu_utilization.average << "\n";
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren