Skip to content

Commit

Permalink
add warning log message for not-validated GPU devices
Browse files Browse the repository at this point in the history
  • Loading branch information
kaigai committed Nov 18, 2024
1 parent 2fd955c commit d6b36d7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/gpu_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,29 @@ receiveGpuDevAttrs(int fdesc)
{
memcpy(&devNotValidated, &dtemp, sizeof(GpuDevAttributes));
}
else
{
elog(LOG, "GPU%d %s (%d SMs; %dMHz, L2 %dkB) WAS NOT VALIDATED",
dtemp.DEV_ID,
dtemp.DEV_NAME,
dtemp.MULTIPROCESSOR_COUNT,
dtemp.CLOCK_RATE / 1000,
dtemp.L2_CACHE_SIZE >> 10);
}
}

if (devAttrs)
{
numGpuDevAttrs = nitems;
gpuDevAttrs = devAttrs;

if (num_not_validated > 0)
elog(LOG, "GPU%d %s (%d SMs; %dMHz, L2 %dkB) WAS NOT VALIDATED",
devNotValidated.DEV_ID,
devNotValidated.DEV_NAME,
devNotValidated.MULTIPROCESSOR_COUNT,
devNotValidated.CLOCK_RATE / 1000,
devNotValidated.L2_CACHE_SIZE >> 10);
}
else if (num_not_validated > 0)
{
Expand Down

0 comments on commit d6b36d7

Please sign in to comment.