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
- Demo Project - There is also a demo project(Monitor) that shows how to use nvml api.