@@ -3099,3 +3099,219 @@ func (device nvmlDevice) GetCapabilities() (DeviceCapabilities, Return) {
30993099 ret := nvmlDeviceGetCapabilities (device , & caps )
31003100 return caps , ret
31013101}
3102+
3103+ // nvml.DeviceGetFanSpeedRPM()
3104+ func (l * library ) DeviceGetFanSpeedRPM (device Device ) (FanSpeedInfo , Return ) {
3105+ return device .GetFanSpeedRPM ()
3106+ }
3107+
3108+ func (device nvmlDevice ) GetFanSpeedRPM () (FanSpeedInfo , Return ) {
3109+ var fanSpeed FanSpeedInfo
3110+ fanSpeed .Version = STRUCT_VERSION (fanSpeed , 1 )
3111+ ret := nvmlDeviceGetFanSpeedRPM (device , & fanSpeed )
3112+ return fanSpeed , ret
3113+ }
3114+
3115+ // nvml.DeviceGetCoolerInfo()
3116+ func (l * library ) DeviceGetCoolerInfo (device Device ) (CoolerInfo , Return ) {
3117+ return device .GetCoolerInfo ()
3118+ }
3119+
3120+ func (device nvmlDevice ) GetCoolerInfo () (CoolerInfo , Return ) {
3121+ var coolerInfo CoolerInfo
3122+ coolerInfo .Version = STRUCT_VERSION (coolerInfo , 1 )
3123+ ret := nvmlDeviceGetCoolerInfo (device , & coolerInfo )
3124+ return coolerInfo , ret
3125+ }
3126+
3127+ // nvml.DeviceGetTemperatureV()
3128+ type TemperatureHandler struct {
3129+ device nvmlDevice
3130+ }
3131+
3132+ func (handler TemperatureHandler ) V1 () (Temperature , Return ) {
3133+ var temperature Temperature
3134+ temperature .Version = STRUCT_VERSION (temperature , 1 )
3135+ ret := nvmlDeviceGetTemperatureV (handler .device , & temperature )
3136+ return temperature , ret
3137+ }
3138+
3139+ func (l * library ) DeviceGetTemperatureV (device Device ) TemperatureHandler {
3140+ return device .GetTemperatureV ()
3141+ }
3142+
3143+ func (device nvmlDevice ) GetTemperatureV () TemperatureHandler {
3144+ return TemperatureHandler {device }
3145+ }
3146+
3147+ // nvml.DeviceGetMarginTemperature()
3148+ func (l * library ) DeviceGetMarginTemperature (device Device ) (MarginTemperature , Return ) {
3149+ return device .GetMarginTemperature ()
3150+ }
3151+
3152+ func (device nvmlDevice ) GetMarginTemperature () (MarginTemperature , Return ) {
3153+ var marginTemp MarginTemperature
3154+ marginTemp .Version = STRUCT_VERSION (marginTemp , 1 )
3155+ ret := nvmlDeviceGetMarginTemperature (device , & marginTemp )
3156+ return marginTemp , ret
3157+ }
3158+
3159+ // nvml.DeviceGetPerformanceModes()
3160+ func (l * library ) DeviceGetPerformanceModes (device Device ) (DevicePerfModes , Return ) {
3161+ return device .GetPerformanceModes ()
3162+ }
3163+
3164+ func (device nvmlDevice ) GetPerformanceModes () (DevicePerfModes , Return ) {
3165+ var perfModes DevicePerfModes
3166+ perfModes .Version = STRUCT_VERSION (perfModes , 1 )
3167+ ret := nvmlDeviceGetPerformanceModes (device , & perfModes )
3168+ return perfModes , ret
3169+ }
3170+
3171+ // nvml.DeviceGetCurrentClockFreqs()
3172+ func (l * library ) DeviceGetCurrentClockFreqs (device Device ) (DeviceCurrentClockFreqs , Return ) {
3173+ return device .GetCurrentClockFreqs ()
3174+ }
3175+
3176+ func (device nvmlDevice ) GetCurrentClockFreqs () (DeviceCurrentClockFreqs , Return ) {
3177+ var currentClockFreqs DeviceCurrentClockFreqs
3178+ currentClockFreqs .Version = STRUCT_VERSION (currentClockFreqs , 1 )
3179+ ret := nvmlDeviceGetCurrentClockFreqs (device , & currentClockFreqs )
3180+ return currentClockFreqs , ret
3181+ }
3182+
3183+ // nvml.DeviceGetDramEncryptionMode()
3184+ func (l * library ) DeviceGetDramEncryptionMode (device Device ) (DramEncryptionInfo , DramEncryptionInfo , Return ) {
3185+ return device .GetDramEncryptionMode ()
3186+ }
3187+
3188+ func (device nvmlDevice ) GetDramEncryptionMode () (DramEncryptionInfo , DramEncryptionInfo , Return ) {
3189+ var current , pending DramEncryptionInfo
3190+ current .Version = STRUCT_VERSION (current , 1 )
3191+ pending .Version = STRUCT_VERSION (pending , 1 )
3192+ ret := nvmlDeviceGetDramEncryptionMode (device , & current , & pending )
3193+ return current , pending , ret
3194+ }
3195+
3196+ // nvml.DeviceSetDramEncryptionMode()
3197+ func (l * library ) DeviceSetDramEncryptionMode (device Device , dramEncryption * DramEncryptionInfo ) Return {
3198+ return device .SetDramEncryptionMode (dramEncryption )
3199+ }
3200+
3201+ func (device nvmlDevice ) SetDramEncryptionMode (dramEncryption * DramEncryptionInfo ) Return {
3202+ return nvmlDeviceSetDramEncryptionMode (device , dramEncryption )
3203+ }
3204+
3205+ // nvml.DeviceGetPlatformInfo()
3206+ func (l * library ) DeviceGetPlatformInfo (device Device ) (PlatformInfo , Return ) {
3207+ return device .GetPlatformInfo ()
3208+ }
3209+
3210+ func (device nvmlDevice ) GetPlatformInfo () (PlatformInfo , Return ) {
3211+ var platformInfo PlatformInfo
3212+ platformInfo .Version = STRUCT_VERSION (platformInfo , 1 )
3213+ ret := nvmlDeviceGetPlatformInfo (device , & platformInfo )
3214+ return platformInfo , ret
3215+ }
3216+
3217+ // nvml.DeviceGetNvlinkSupportedBwModes()
3218+ func (l * library ) DeviceGetNvlinkSupportedBwModes (device Device ) (NvlinkSupportedBwModes , Return ) {
3219+ return device .GetNvlinkSupportedBwModes ()
3220+ }
3221+
3222+ func (device nvmlDevice ) GetNvlinkSupportedBwModes () (NvlinkSupportedBwModes , Return ) {
3223+ var supportedBwMode NvlinkSupportedBwModes
3224+ supportedBwMode .Version = STRUCT_VERSION (supportedBwMode , 1 )
3225+ ret := nvmlDeviceGetNvlinkSupportedBwModes (device , & supportedBwMode )
3226+ return supportedBwMode , ret
3227+ }
3228+
3229+ // nvml.DeviceGetNvlinkBwMode()
3230+ func (l * library ) DeviceGetNvlinkBwMode (device Device ) (NvlinkGetBwMode , Return ) {
3231+ return device .GetNvlinkBwMode ()
3232+ }
3233+
3234+ func (device nvmlDevice ) GetNvlinkBwMode () (NvlinkGetBwMode , Return ) {
3235+ var getBwMode NvlinkGetBwMode
3236+ getBwMode .Version = STRUCT_VERSION (getBwMode , 1 )
3237+ ret := nvmlDeviceGetNvlinkBwMode (device , & getBwMode )
3238+ return getBwMode , ret
3239+ }
3240+
3241+ // nvml.DeviceSetNvlinkBwMode()
3242+ func (l * library ) DeviceSetNvlinkBwMode (device Device , setBwMode * NvlinkSetBwMode ) Return {
3243+ return device .SetNvlinkBwMode (setBwMode )
3244+ }
3245+
3246+ func (device nvmlDevice ) SetNvlinkBwMode (setBwMode * NvlinkSetBwMode ) Return {
3247+ return nvmlDeviceSetNvlinkBwMode (device , setBwMode )
3248+ }
3249+
3250+ // nvml.DeviceWorkloadPowerProfileGetProfilesInfo()
3251+ func (l * library ) DeviceWorkloadPowerProfileGetProfilesInfo (device Device ) (WorkloadPowerProfileProfilesInfo , Return ) {
3252+ return device .WorkloadPowerProfileGetProfilesInfo ()
3253+ }
3254+
3255+ func (device nvmlDevice ) WorkloadPowerProfileGetProfilesInfo () (WorkloadPowerProfileProfilesInfo , Return ) {
3256+ var profilesInfo WorkloadPowerProfileProfilesInfo
3257+ profilesInfo .Version = STRUCT_VERSION (profilesInfo , 1 )
3258+ ret := nvmlDeviceWorkloadPowerProfileGetProfilesInfo (device , & profilesInfo )
3259+ return profilesInfo , ret
3260+ }
3261+
3262+ // nvml.DeviceWorkloadPowerProfileGetCurrentProfiles()
3263+ func (l * library ) DeviceWorkloadPowerProfileGetCurrentProfiles (device Device ) (WorkloadPowerProfileCurrentProfiles , Return ) {
3264+ return device .WorkloadPowerProfileGetCurrentProfiles ()
3265+ }
3266+
3267+ func (device nvmlDevice ) WorkloadPowerProfileGetCurrentProfiles () (WorkloadPowerProfileCurrentProfiles , Return ) {
3268+ var currentProfiles WorkloadPowerProfileCurrentProfiles
3269+ currentProfiles .Version = STRUCT_VERSION (currentProfiles , 1 )
3270+ ret := nvmlDeviceWorkloadPowerProfileGetCurrentProfiles (device , & currentProfiles )
3271+ return currentProfiles , ret
3272+ }
3273+
3274+ // nvml.DeviceWorkloadPowerProfileSetRequestedProfiles()
3275+ func (l * library ) DeviceWorkloadPowerProfileSetRequestedProfiles (device Device , requestedProfiles * WorkloadPowerProfileRequestedProfiles ) Return {
3276+ return device .WorkloadPowerProfileSetRequestedProfiles (requestedProfiles )
3277+ }
3278+
3279+ func (device nvmlDevice ) WorkloadPowerProfileSetRequestedProfiles (requestedProfiles * WorkloadPowerProfileRequestedProfiles ) Return {
3280+ return nvmlDeviceWorkloadPowerProfileSetRequestedProfiles (device , requestedProfiles )
3281+ }
3282+
3283+ // nvml.DeviceWorkloadPowerProfileClearRequestedProfiles()
3284+ func (l * library ) DeviceWorkloadPowerProfileClearRequestedProfiles (device Device , requestedProfiles * WorkloadPowerProfileRequestedProfiles ) Return {
3285+ return device .WorkloadPowerProfileClearRequestedProfiles (requestedProfiles )
3286+ }
3287+
3288+ func (device nvmlDevice ) WorkloadPowerProfileClearRequestedProfiles (requestedProfiles * WorkloadPowerProfileRequestedProfiles ) Return {
3289+ return nvmlDeviceWorkloadPowerProfileClearRequestedProfiles (device , requestedProfiles )
3290+ }
3291+
3292+ // nvml.DevicePowerSmoothingActivatePresetProfile()
3293+ func (l * library ) DevicePowerSmoothingActivatePresetProfile (device Device , profile * PowerSmoothingProfile ) Return {
3294+ return device .PowerSmoothingActivatePresetProfile (profile )
3295+ }
3296+
3297+ func (device nvmlDevice ) PowerSmoothingActivatePresetProfile (profile * PowerSmoothingProfile ) Return {
3298+ return nvmlDevicePowerSmoothingActivatePresetProfile (device , profile )
3299+ }
3300+
3301+ // nvml.DevicePowerSmoothingUpdatePresetProfileParam()
3302+ func (l * library ) DevicePowerSmoothingUpdatePresetProfileParam (device Device , profile * PowerSmoothingProfile ) Return {
3303+ return device .PowerSmoothingUpdatePresetProfileParam (profile )
3304+ }
3305+
3306+ func (device nvmlDevice ) PowerSmoothingUpdatePresetProfileParam (profile * PowerSmoothingProfile ) Return {
3307+ return nvmlDevicePowerSmoothingUpdatePresetProfileParam (device , profile )
3308+ }
3309+
3310+ // nvml.DevicePowerSmoothingSetState()
3311+ func (l * library ) DevicePowerSmoothingSetState (device Device , state * PowerSmoothingState ) Return {
3312+ return device .PowerSmoothingSetState (state )
3313+ }
3314+
3315+ func (device nvmlDevice ) PowerSmoothingSetState (state * PowerSmoothingState ) Return {
3316+ return nvmlDevicePowerSmoothingSetState (device , state )
3317+ }
0 commit comments