diff --git a/src/metric_model_reporter.cc b/src/metric_model_reporter.cc index be1e52bcc..d8019f1fc 100644 --- a/src/metric_model_reporter.cc +++ b/src/metric_model_reporter.cc @@ -305,13 +305,17 @@ MetricModelReporter::GetMetricLabels( // 'device' can be < 0 to indicate that the GPU is not known. In // that case use a metric that doesn't have the gpu_uuid label. - if (device >= 0) { - std::string uuid; - if (Metrics::UUIDForCudaDevice(device, &uuid)) { - labels->insert(std::map::value_type( - std::string(kMetricsLabelGpuUuid), uuid)); - } - } + // + // FIXME: Currently this code effectively does nothing, as GPU metrics are + // never enabled in InferenceServer::Init by the time this code is reached. + // This code could be uncommented if per-model-instance metrics are exposed. + // if (device >= 0) { + // std::string uuid; + // if (Metrics::UUIDForCudaDevice(device, &uuid)) { + // labels->insert(std::map::value_type( + // std::string(kMetricsLabelGpuUuid), uuid)); + // } + // } } template