Skip to content

jcbritobr/pasnvml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The nvidia monitoring library object pascal wrapper. Please, read the documentation for better understand what is nvml.

  • Example on how to get nvidia driver version
var
  version: Ansistring;
begin
  try
    NvInitV2;
    version := NvSystemGetDriverVersion;
    if Length(version) = 0 then
    begin
      raise ENvSystemException.Create('Something may fail acquiring driver version. Length is zero');
    end;
    NvShutDown;
  except
    on E: ENvSystemException do
    begin
      NvShutDown;
      Fail(e.Message);
    end;
  end;
  • Example on how to retrieve gpu temperature
var
  device: NvHandle;
  temp: Cardinal;
begin
  try
    NvInitV2;
    device := NvDeviceGetHandleByIndexV2(0);
    temp := NvDeviceGetTemperature(device, nvTemperatureGpu);
    NvShutDown;
  except
    On E: ENvSystemException do
    begin
      NvShutDown;
      Fail(e.Message);
    end;
  end;
  • The wrapper is in working status. Below we have a list of migrated modules
  • Ititialization and Cleanup
  • System Queries
  • Device Queries
  • Unit Queries
  • Unit Commands
  • Device Commands
  • Event Handling Methods
  • Error Reporting

csharp

Releases

No releases published

Packages

No packages published

Languages