Hardware/Nvidia/NvidiaGroup.cs
changeset 7 9523a3322777
parent 1 361e324a0ed4
child 35 2daf59392c88
     1.1 --- a/Hardware/Nvidia/NvidiaGroup.cs	Thu Jan 28 19:31:10 2010 +0000
     1.2 +++ b/Hardware/Nvidia/NvidiaGroup.cs	Thu Jan 28 23:29:39 2010 +0000
     1.3 @@ -54,8 +54,12 @@
     1.4        if (NVAPI.NvAPI_EnumPhysicalGPUs(handles, out count) != NvStatus.OK)
     1.5          return;
     1.6  
     1.7 -      for (int i = 0; i < count; i++)         
     1.8 -        hardware.Add(new NvidiaGPU(i, handles[i]));   
     1.9 +      for (int i = 0; i < count; i++) {
    1.10 +        string gpuName;
    1.11 +        NVAPI.NvAPI_GPU_GetFullName(handles[i], out gpuName);
    1.12 +        if (gpuName != null && gpuName.Trim() != "")
    1.13 +          hardware.Add(new NvidiaGPU(i, handles[i]));
    1.14 +      }
    1.15      }
    1.16  
    1.17      public IHardware[] Hardware {