Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored Oct 28, 2024
1 parent 7fdf0b9 commit be450f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,18 +300,18 @@ int main(int argc, char *argv[]) {
// Buffer to store the NVML GPU name
char nvmlGpuName[256];

// Buffer to store the NVAPI GPU name
NvAPI_ShortString nvapiGpuName;

// Retrieve the NVML GPU name
NVML_CALL(nvmlDeviceGetName(nvmlDevices[i], nvmlGpuName, sizeof(gpuName)), errored);

// Retrieve the NVAPI GPU name
NVAPI_CALL(NvAPI_GPU_GetFullName(nvapiDevices[i], nvapiGpuName), errored)
NVML_CALL(nvmlDeviceGetName(nvmlDevices[i], nvmlGpuName, sizeof(nvmlGpuName)), errored);

// Print the managed GPU details
printf("(NVML) %u. %s (GPU id = %u)\n", managedGPUs, nvmlGpuName, i);

// Buffer to store the NVAPI GPU name
NvAPI_ShortString nvapiGpuName;

// Retrieve the NVAPI GPU name
NVAPI_CALL(NvAPI_GPU_GetFullName(nvapiDevices[i], nvapiGpuName), errored);

// Print the managed GPU details
printf("(NVAPI) %u. %s (GPU id = %u)\n", managedGPUs, nvapiGpuName, i);

Expand Down

0 comments on commit be450f8

Please sign in to comment.