Skip to content

Commit 42d9bfb

Browse files
author
Mohammed Abdi
authored
Merge pull request #42 from project-codeflare/gpu-zero
No GPUs detected
2 parents 626f9c7 + c08f95d commit 42d9bfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/pages/MCADashboard/Metrics/MetricCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const MetricCard: React.FC<MetricCardProps> = ({
2323

2424
const getData = async () => {
2525
const data = await getMetricData(query);
26-
if (data === 'No GPU In Cluster') {
26+
if (data === 'No GPUs Detected') {
2727
setNoGpu(data);
2828
} else {
2929
setPercentage(Math.round(data * 100) / 100);

frontend/src/pages/MCADashboard/Metrics/api/metricsData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React from 'react';
44
import { timeStringToSeconds } from '~/pages/MCADashboard/Metrics/metrics-utils';
55

66
export const getMetricData = async (query: string) => {
7-
const noGpu = "No GPU In Cluster"
7+
const noGpu = "No GPUs Detected"
88
const utilizedGPUQuery = 'count(count by (UUID,GPU_I_ID) (DCGM_FI_PROF_GR_ENGINE_ACTIVE{exported_pod=~".+"})) or vector(0)'
99
const utilizedGPUMemoryQuery = 'count(count by (UUID,GPU_I_ID) (DCGM_FI_DEV_MEM_COPY_UTIL))'
1010
try {

0 commit comments

Comments
 (0)