public static uint NvmlDeviceGetTemperature(IntPtr device, NvmlTemperatureSensor sensorType) { NvmlReturn res; uint temperature; res = Api.NvmlDeviceGetTemperature(device, sensorType, out temperature); if (NvmlReturn.NVML_SUCCESS != res) { throw new SystemException(res.ToString()); } return((uint)temperature); }
internal static extern NvmlReturn NvmlDeviceGetTemperature(IntPtr device, NvmlTemperatureSensor sensorType, out uint temperature);