mock

package
v0.12.0-6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeInstance

type ComputeInstance struct {
	// DestroyFunc mocks the Destroy method.
	DestroyFunc func() nvml.Return

	// GetInfoFunc mocks the GetInfo method.
	GetInfoFunc func() (nvml.ComputeInstanceInfo, nvml.Return)
	// contains filtered or unexported fields
}

ComputeInstance is a mock implementation of nvml.ComputeInstance.

func TestSomethingThatUsesComputeInstance(t *testing.T) {

	// make and configure a mocked nvml.ComputeInstance
	mockedComputeInstance := &ComputeInstance{
		DestroyFunc: func() nvml.Return {
			panic("mock out the Destroy method")
		},
		GetInfoFunc: func() (nvml.ComputeInstanceInfo, nvml.Return) {
			panic("mock out the GetInfo method")
		},
	}

	// use mockedComputeInstance in code that requires nvml.ComputeInstance
	// and then make assertions.

}

func (*ComputeInstance) Destroy

func (mock *ComputeInstance) Destroy() nvml.Return

Destroy calls DestroyFunc.

func (*ComputeInstance) DestroyCalls

func (mock *ComputeInstance) DestroyCalls() []struct {
}

DestroyCalls gets all the calls that were made to Destroy. Check the length with:

len(mockedComputeInstance.DestroyCalls())

func (*ComputeInstance) GetInfo

func (mock *ComputeInstance) GetInfo() (nvml.ComputeInstanceInfo, nvml.Return)

GetInfo calls GetInfoFunc.

func (*ComputeInstance) GetInfoCalls

func (mock *ComputeInstance) GetInfoCalls() []struct {
}

GetInfoCalls gets all the calls that were made to GetInfo. Check the length with:

len(mockedComputeInstance.GetInfoCalls())

type Device

type Device struct {
	// CcuGetStreamStateFunc mocks the CcuGetStreamState method.
	CcuGetStreamStateFunc func() (int, nvml.Return)

	// CcuSetStreamStateFunc mocks the CcuSetStreamState method.
	CcuSetStreamStateFunc func(n int) nvml.Return

	// ClearAccountingPidsFunc mocks the ClearAccountingPids method.
	ClearAccountingPidsFunc func() nvml.Return

	// ClearCpuAffinityFunc mocks the ClearCpuAffinity method.
	ClearCpuAffinityFunc func() nvml.Return

	// ClearEccErrorCountsFunc mocks the ClearEccErrorCounts method.
	ClearEccErrorCountsFunc func(eccCounterType nvml.EccCounterType) nvml.Return

	// ClearFieldValuesFunc mocks the ClearFieldValues method.
	ClearFieldValuesFunc func(fieldValues []nvml.FieldValue) nvml.Return

	// CreateGpuInstanceFunc mocks the CreateGpuInstance method.
	CreateGpuInstanceFunc func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return)

	// CreateGpuInstanceWithPlacementFunc mocks the CreateGpuInstanceWithPlacement method.
	CreateGpuInstanceWithPlacementFunc func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, gpuInstancePlacement *nvml.GpuInstancePlacement) (nvml.GpuInstance, nvml.Return)

	// FreezeNvLinkUtilizationCounterFunc mocks the FreezeNvLinkUtilizationCounter method.
	FreezeNvLinkUtilizationCounterFunc func(n1 int, n2 int, enableState nvml.EnableState) nvml.Return

	// GetAPIRestrictionFunc mocks the GetAPIRestriction method.
	GetAPIRestrictionFunc func(restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return)

	// GetAccountingBufferSizeFunc mocks the GetAccountingBufferSize method.
	GetAccountingBufferSizeFunc func() (int, nvml.Return)

	// GetAccountingModeFunc mocks the GetAccountingMode method.
	GetAccountingModeFunc func() (nvml.EnableState, nvml.Return)

	// GetAccountingPidsFunc mocks the GetAccountingPids method.
	GetAccountingPidsFunc func() ([]int, nvml.Return)

	// GetAccountingStatsFunc mocks the GetAccountingStats method.
	GetAccountingStatsFunc func(v uint32) (nvml.AccountingStats, nvml.Return)

	// GetActiveVgpusFunc mocks the GetActiveVgpus method.
	GetActiveVgpusFunc func() ([]nvml.VgpuInstance, nvml.Return)

	// GetAdaptiveClockInfoStatusFunc mocks the GetAdaptiveClockInfoStatus method.
	GetAdaptiveClockInfoStatusFunc func() (uint32, nvml.Return)

	// GetApplicationsClockFunc mocks the GetApplicationsClock method.
	GetApplicationsClockFunc func(clockType nvml.ClockType) (uint32, nvml.Return)

	// GetArchitectureFunc mocks the GetArchitecture method.
	GetArchitectureFunc func() (nvml.DeviceArchitecture, nvml.Return)

	// GetAttributesFunc mocks the GetAttributes method.
	GetAttributesFunc func() (nvml.DeviceAttributes, nvml.Return)

	// GetAutoBoostedClocksEnabledFunc mocks the GetAutoBoostedClocksEnabled method.
	GetAutoBoostedClocksEnabledFunc func() (nvml.EnableState, nvml.EnableState, nvml.Return)

	// GetBAR1MemoryInfoFunc mocks the GetBAR1MemoryInfo method.
	GetBAR1MemoryInfoFunc func() (nvml.BAR1Memory, nvml.Return)

	// GetBoardIdFunc mocks the GetBoardId method.
	GetBoardIdFunc func() (uint32, nvml.Return)

	// GetBoardPartNumberFunc mocks the GetBoardPartNumber method.
	GetBoardPartNumberFunc func() (string, nvml.Return)

	// GetBrandFunc mocks the GetBrand method.
	GetBrandFunc func() (nvml.BrandType, nvml.Return)

	// GetBridgeChipInfoFunc mocks the GetBridgeChipInfo method.
	GetBridgeChipInfoFunc func() (nvml.BridgeChipHierarchy, nvml.Return)

	// GetBusTypeFunc mocks the GetBusType method.
	GetBusTypeFunc func() (nvml.BusType, nvml.Return)

	// GetClkMonStatusFunc mocks the GetClkMonStatus method.
	GetClkMonStatusFunc func() (nvml.ClkMonStatus, nvml.Return)

	// GetClockFunc mocks the GetClock method.
	GetClockFunc func(clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return)

	// GetClockInfoFunc mocks the GetClockInfo method.
	GetClockInfoFunc func(clockType nvml.ClockType) (uint32, nvml.Return)

	// GetComputeInstanceIdFunc mocks the GetComputeInstanceId method.
	GetComputeInstanceIdFunc func() (int, nvml.Return)

	// GetComputeModeFunc mocks the GetComputeMode method.
	GetComputeModeFunc func() (nvml.ComputeMode, nvml.Return)

	// GetComputeRunningProcessesFunc mocks the GetComputeRunningProcesses method.
	GetComputeRunningProcessesFunc func() ([]nvml.ProcessInfo, nvml.Return)

	// GetCpuAffinityFunc mocks the GetCpuAffinity method.
	GetCpuAffinityFunc func(n int) ([]uint, nvml.Return)

	// GetCpuAffinityWithinScopeFunc mocks the GetCpuAffinityWithinScope method.
	GetCpuAffinityWithinScopeFunc func(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

	// GetCreatableVgpusFunc mocks the GetCreatableVgpus method.
	GetCreatableVgpusFunc func() ([]nvml.VgpuTypeId, nvml.Return)

	// GetCudaComputeCapabilityFunc mocks the GetCudaComputeCapability method.
	GetCudaComputeCapabilityFunc func() (int, int, nvml.Return)

	// GetCurrPcieLinkGenerationFunc mocks the GetCurrPcieLinkGeneration method.
	GetCurrPcieLinkGenerationFunc func() (int, nvml.Return)

	// GetCurrPcieLinkWidthFunc mocks the GetCurrPcieLinkWidth method.
	GetCurrPcieLinkWidthFunc func() (int, nvml.Return)

	// GetCurrentClocksThrottleReasonsFunc mocks the GetCurrentClocksThrottleReasons method.
	GetCurrentClocksThrottleReasonsFunc func() (uint64, nvml.Return)

	// GetDecoderUtilizationFunc mocks the GetDecoderUtilization method.
	GetDecoderUtilizationFunc func() (uint32, uint32, nvml.Return)

	// GetDefaultApplicationsClockFunc mocks the GetDefaultApplicationsClock method.
	GetDefaultApplicationsClockFunc func(clockType nvml.ClockType) (uint32, nvml.Return)

	// GetDefaultEccModeFunc mocks the GetDefaultEccMode method.
	GetDefaultEccModeFunc func() (nvml.EnableState, nvml.Return)

	// GetDetailedEccErrorsFunc mocks the GetDetailedEccErrors method.
	GetDetailedEccErrorsFunc func(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (nvml.EccErrorCounts, nvml.Return)

	// GetDeviceHandleFromMigDeviceHandleFunc mocks the GetDeviceHandleFromMigDeviceHandle method.
	GetDeviceHandleFromMigDeviceHandleFunc func() (nvml.Device, nvml.Return)

	// GetDisplayActiveFunc mocks the GetDisplayActive method.
	GetDisplayActiveFunc func() (nvml.EnableState, nvml.Return)

	// GetDisplayModeFunc mocks the GetDisplayMode method.
	GetDisplayModeFunc func() (nvml.EnableState, nvml.Return)

	// GetDriverModelFunc mocks the GetDriverModel method.
	GetDriverModelFunc func() (nvml.DriverModel, nvml.DriverModel, nvml.Return)

	// GetDynamicPstatesInfoFunc mocks the GetDynamicPstatesInfo method.
	GetDynamicPstatesInfoFunc func() (nvml.GpuDynamicPstatesInfo, nvml.Return)

	// GetEccModeFunc mocks the GetEccMode method.
	GetEccModeFunc func() (nvml.EnableState, nvml.EnableState, nvml.Return)

	// GetEncoderCapacityFunc mocks the GetEncoderCapacity method.
	GetEncoderCapacityFunc func(encoderType nvml.EncoderType) (int, nvml.Return)

	// GetEncoderSessionsFunc mocks the GetEncoderSessions method.
	GetEncoderSessionsFunc func() ([]nvml.EncoderSessionInfo, nvml.Return)

	// GetEncoderStatsFunc mocks the GetEncoderStats method.
	GetEncoderStatsFunc func() (int, uint32, uint32, nvml.Return)

	// GetEncoderUtilizationFunc mocks the GetEncoderUtilization method.
	GetEncoderUtilizationFunc func() (uint32, uint32, nvml.Return)

	// GetEnforcedPowerLimitFunc mocks the GetEnforcedPowerLimit method.
	GetEnforcedPowerLimitFunc func() (uint32, nvml.Return)

	// GetFBCSessionsFunc mocks the GetFBCSessions method.
	GetFBCSessionsFunc func() ([]nvml.FBCSessionInfo, nvml.Return)

	// GetFBCStatsFunc mocks the GetFBCStats method.
	GetFBCStatsFunc func() (nvml.FBCStats, nvml.Return)

	// GetFanControlPolicy_v2Func mocks the GetFanControlPolicy_v2 method.
	GetFanControlPolicy_v2Func func(n int) (nvml.FanControlPolicy, nvml.Return)

	// GetFanSpeedFunc mocks the GetFanSpeed method.
	GetFanSpeedFunc func() (uint32, nvml.Return)

	// GetFanSpeed_v2Func mocks the GetFanSpeed_v2 method.
	GetFanSpeed_v2Func func(n int) (uint32, nvml.Return)

	// GetFieldValuesFunc mocks the GetFieldValues method.
	GetFieldValuesFunc func(fieldValues []nvml.FieldValue) nvml.Return

	// GetGpcClkMinMaxVfOffsetFunc mocks the GetGpcClkMinMaxVfOffset method.
	GetGpcClkMinMaxVfOffsetFunc func() (int, int, nvml.Return)

	// GetGpcClkVfOffsetFunc mocks the GetGpcClkVfOffset method.
	GetGpcClkVfOffsetFunc func() (int, nvml.Return)

	// GetGpuFabricInfoFunc mocks the GetGpuFabricInfo method.
	GetGpuFabricInfoFunc func() (nvml.GpuFabricInfo, nvml.Return)

	// GetGpuInstanceByIdFunc mocks the GetGpuInstanceById method.
	GetGpuInstanceByIdFunc func(n int) (nvml.GpuInstance, nvml.Return)

	// GetGpuInstanceIdFunc mocks the GetGpuInstanceId method.
	GetGpuInstanceIdFunc func() (int, nvml.Return)

	// GetGpuInstancePossiblePlacementsFunc mocks the GetGpuInstancePossiblePlacements method.
	GetGpuInstancePossiblePlacementsFunc func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return)

	// GetGpuInstanceProfileInfoFunc mocks the GetGpuInstanceProfileInfo method.
	GetGpuInstanceProfileInfoFunc func(n int) (nvml.GpuInstanceProfileInfo, nvml.Return)

	// GetGpuInstanceProfileInfoVFunc mocks the GetGpuInstanceProfileInfoV method.
	GetGpuInstanceProfileInfoVFunc func(n int) nvml.GpuInstanceProfileInfoV

	// GetGpuInstanceRemainingCapacityFunc mocks the GetGpuInstanceRemainingCapacity method.
	GetGpuInstanceRemainingCapacityFunc func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return)

	// GetGpuInstancesFunc mocks the GetGpuInstances method.
	GetGpuInstancesFunc func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return)

	// GetGpuMaxPcieLinkGenerationFunc mocks the GetGpuMaxPcieLinkGeneration method.
	GetGpuMaxPcieLinkGenerationFunc func() (int, nvml.Return)

	// GetGpuOperationModeFunc mocks the GetGpuOperationMode method.
	GetGpuOperationModeFunc func() (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return)

	// GetGraphicsRunningProcessesFunc mocks the GetGraphicsRunningProcesses method.
	GetGraphicsRunningProcessesFunc func() ([]nvml.ProcessInfo, nvml.Return)

	// GetGridLicensableFeaturesFunc mocks the GetGridLicensableFeatures method.
	GetGridLicensableFeaturesFunc func() (nvml.GridLicensableFeatures, nvml.Return)

	// GetGspFirmwareModeFunc mocks the GetGspFirmwareMode method.
	GetGspFirmwareModeFunc func() (bool, bool, nvml.Return)

	// GetGspFirmwareVersionFunc mocks the GetGspFirmwareVersion method.
	GetGspFirmwareVersionFunc func() (string, nvml.Return)

	// GetHostVgpuModeFunc mocks the GetHostVgpuMode method.
	GetHostVgpuModeFunc func() (nvml.HostVgpuMode, nvml.Return)

	// GetIndexFunc mocks the GetIndex method.
	GetIndexFunc func() (int, nvml.Return)

	// GetInforomConfigurationChecksumFunc mocks the GetInforomConfigurationChecksum method.
	GetInforomConfigurationChecksumFunc func() (uint32, nvml.Return)

	// GetInforomImageVersionFunc mocks the GetInforomImageVersion method.
	GetInforomImageVersionFunc func() (string, nvml.Return)

	// GetInforomVersionFunc mocks the GetInforomVersion method.
	GetInforomVersionFunc func(inforomObject nvml.InforomObject) (string, nvml.Return)

	// GetIrqNumFunc mocks the GetIrqNum method.
	GetIrqNumFunc func() (int, nvml.Return)

	// GetMPSComputeRunningProcessesFunc mocks the GetMPSComputeRunningProcesses method.
	GetMPSComputeRunningProcessesFunc func() ([]nvml.ProcessInfo, nvml.Return)

	// GetMaxClockInfoFunc mocks the GetMaxClockInfo method.
	GetMaxClockInfoFunc func(clockType nvml.ClockType) (uint32, nvml.Return)

	// GetMaxCustomerBoostClockFunc mocks the GetMaxCustomerBoostClock method.
	GetMaxCustomerBoostClockFunc func(clockType nvml.ClockType) (uint32, nvml.Return)

	// GetMaxMigDeviceCountFunc mocks the GetMaxMigDeviceCount method.
	GetMaxMigDeviceCountFunc func() (int, nvml.Return)

	// GetMaxPcieLinkGenerationFunc mocks the GetMaxPcieLinkGeneration method.
	GetMaxPcieLinkGenerationFunc func() (int, nvml.Return)

	// GetMaxPcieLinkWidthFunc mocks the GetMaxPcieLinkWidth method.
	GetMaxPcieLinkWidthFunc func() (int, nvml.Return)

	// GetMemClkMinMaxVfOffsetFunc mocks the GetMemClkMinMaxVfOffset method.
	GetMemClkMinMaxVfOffsetFunc func() (int, int, nvml.Return)

	// GetMemClkVfOffsetFunc mocks the GetMemClkVfOffset method.
	GetMemClkVfOffsetFunc func() (int, nvml.Return)

	// GetMemoryAffinityFunc mocks the GetMemoryAffinity method.
	GetMemoryAffinityFunc func(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

	// GetMemoryBusWidthFunc mocks the GetMemoryBusWidth method.
	GetMemoryBusWidthFunc func() (uint32, nvml.Return)

	// GetMemoryErrorCounterFunc mocks the GetMemoryErrorCounter method.
	GetMemoryErrorCounterFunc func(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType, memoryLocation nvml.MemoryLocation) (uint64, nvml.Return)

	// GetMemoryInfoFunc mocks the GetMemoryInfo method.
	GetMemoryInfoFunc func() (nvml.Memory, nvml.Return)

	// GetMemoryInfo_v2Func mocks the GetMemoryInfo_v2 method.
	GetMemoryInfo_v2Func func() (nvml.Memory_v2, nvml.Return)

	// GetMigDeviceHandleByIndexFunc mocks the GetMigDeviceHandleByIndex method.
	GetMigDeviceHandleByIndexFunc func(n int) (nvml.Device, nvml.Return)

	// GetMigModeFunc mocks the GetMigMode method.
	GetMigModeFunc func() (int, int, nvml.Return)

	// GetMinMaxClockOfPStateFunc mocks the GetMinMaxClockOfPState method.
	GetMinMaxClockOfPStateFunc func(clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return)

	// GetMinMaxFanSpeedFunc mocks the GetMinMaxFanSpeed method.
	GetMinMaxFanSpeedFunc func() (int, int, nvml.Return)

	// GetMinorNumberFunc mocks the GetMinorNumber method.
	GetMinorNumberFunc func() (int, nvml.Return)

	// GetMultiGpuBoardFunc mocks the GetMultiGpuBoard method.
	GetMultiGpuBoardFunc func() (int, nvml.Return)

	// GetNameFunc mocks the GetName method.
	GetNameFunc func() (string, nvml.Return)

	// GetNumFansFunc mocks the GetNumFans method.
	GetNumFansFunc func() (int, nvml.Return)

	// GetNumGpuCoresFunc mocks the GetNumGpuCores method.
	GetNumGpuCoresFunc func() (int, nvml.Return)

	// GetNvLinkCapabilityFunc mocks the GetNvLinkCapability method.
	GetNvLinkCapabilityFunc func(n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return)

	// GetNvLinkErrorCounterFunc mocks the GetNvLinkErrorCounter method.
	GetNvLinkErrorCounterFunc func(n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return)

	// GetNvLinkRemoteDeviceTypeFunc mocks the GetNvLinkRemoteDeviceType method.
	GetNvLinkRemoteDeviceTypeFunc func(n int) (nvml.IntNvLinkDeviceType, nvml.Return)

	// GetNvLinkRemotePciInfoFunc mocks the GetNvLinkRemotePciInfo method.
	GetNvLinkRemotePciInfoFunc func(n int) (nvml.PciInfo, nvml.Return)

	// GetNvLinkStateFunc mocks the GetNvLinkState method.
	GetNvLinkStateFunc func(n int) (nvml.EnableState, nvml.Return)

	// GetNvLinkUtilizationControlFunc mocks the GetNvLinkUtilizationControl method.
	GetNvLinkUtilizationControlFunc func(n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return)

	// GetNvLinkUtilizationCounterFunc mocks the GetNvLinkUtilizationCounter method.
	GetNvLinkUtilizationCounterFunc func(n1 int, n2 int) (uint64, uint64, nvml.Return)

	// GetNvLinkVersionFunc mocks the GetNvLinkVersion method.
	GetNvLinkVersionFunc func(n int) (uint32, nvml.Return)

	// GetP2PStatusFunc mocks the GetP2PStatus method.
	GetP2PStatusFunc func(device nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return)

	// GetPciInfoFunc mocks the GetPciInfo method.
	GetPciInfoFunc func() (nvml.PciInfo, nvml.Return)

	// GetPcieLinkMaxSpeedFunc mocks the GetPcieLinkMaxSpeed method.
	GetPcieLinkMaxSpeedFunc func() (uint32, nvml.Return)

	// GetPcieReplayCounterFunc mocks the GetPcieReplayCounter method.
	GetPcieReplayCounterFunc func() (int, nvml.Return)

	// GetPcieSpeedFunc mocks the GetPcieSpeed method.
	GetPcieSpeedFunc func() (int, nvml.Return)

	// GetPcieThroughputFunc mocks the GetPcieThroughput method.
	GetPcieThroughputFunc func(pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return)

	// GetPerformanceStateFunc mocks the GetPerformanceState method.
	GetPerformanceStateFunc func() (nvml.Pstates, nvml.Return)

	// GetPersistenceModeFunc mocks the GetPersistenceMode method.
	GetPersistenceModeFunc func() (nvml.EnableState, nvml.Return)

	// GetPgpuMetadataStringFunc mocks the GetPgpuMetadataString method.
	GetPgpuMetadataStringFunc func() (string, nvml.Return)

	// GetPowerManagementDefaultLimitFunc mocks the GetPowerManagementDefaultLimit method.
	GetPowerManagementDefaultLimitFunc func() (uint32, nvml.Return)

	// GetPowerManagementLimitFunc mocks the GetPowerManagementLimit method.
	GetPowerManagementLimitFunc func() (uint32, nvml.Return)

	// GetPowerManagementLimitConstraintsFunc mocks the GetPowerManagementLimitConstraints method.
	GetPowerManagementLimitConstraintsFunc func() (uint32, uint32, nvml.Return)

	// GetPowerManagementModeFunc mocks the GetPowerManagementMode method.
	GetPowerManagementModeFunc func() (nvml.EnableState, nvml.Return)

	// GetPowerSourceFunc mocks the GetPowerSource method.
	GetPowerSourceFunc func() (nvml.PowerSource, nvml.Return)

	// GetPowerStateFunc mocks the GetPowerState method.
	GetPowerStateFunc func() (nvml.Pstates, nvml.Return)

	// GetPowerUsageFunc mocks the GetPowerUsage method.
	GetPowerUsageFunc func() (uint32, nvml.Return)

	// GetProcessUtilizationFunc mocks the GetProcessUtilization method.
	GetProcessUtilizationFunc func(v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return)

	// GetRemappedRowsFunc mocks the GetRemappedRows method.
	GetRemappedRowsFunc func() (int, int, bool, bool, nvml.Return)

	// GetRetiredPagesFunc mocks the GetRetiredPages method.
	GetRetiredPagesFunc func(pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return)

	// GetRetiredPagesPendingStatusFunc mocks the GetRetiredPagesPendingStatus method.
	GetRetiredPagesPendingStatusFunc func() (nvml.EnableState, nvml.Return)

	// GetRetiredPages_v2Func mocks the GetRetiredPages_v2 method.
	GetRetiredPages_v2Func func(pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return)

	// GetRowRemapperHistogramFunc mocks the GetRowRemapperHistogram method.
	GetRowRemapperHistogramFunc func() (nvml.RowRemapperHistogramValues, nvml.Return)

	// GetSamplesFunc mocks the GetSamples method.
	GetSamplesFunc func(samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return)

	// GetSerialFunc mocks the GetSerial method.
	GetSerialFunc func() (string, nvml.Return)

	// GetSupportedClocksThrottleReasonsFunc mocks the GetSupportedClocksThrottleReasons method.
	GetSupportedClocksThrottleReasonsFunc func() (uint64, nvml.Return)

	// GetSupportedEventTypesFunc mocks the GetSupportedEventTypes method.
	GetSupportedEventTypesFunc func() (uint64, nvml.Return)

	// GetSupportedGraphicsClocksFunc mocks the GetSupportedGraphicsClocks method.
	GetSupportedGraphicsClocksFunc func(n int) (int, uint32, nvml.Return)

	// GetSupportedMemoryClocksFunc mocks the GetSupportedMemoryClocks method.
	GetSupportedMemoryClocksFunc func() (int, uint32, nvml.Return)

	// GetSupportedPerformanceStatesFunc mocks the GetSupportedPerformanceStates method.
	GetSupportedPerformanceStatesFunc func() ([]nvml.Pstates, nvml.Return)

	// GetSupportedVgpusFunc mocks the GetSupportedVgpus method.
	GetSupportedVgpusFunc func() ([]nvml.VgpuTypeId, nvml.Return)

	// GetTargetFanSpeedFunc mocks the GetTargetFanSpeed method.
	GetTargetFanSpeedFunc func(n int) (int, nvml.Return)

	// GetTemperatureFunc mocks the GetTemperature method.
	GetTemperatureFunc func(temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return)

	// GetTemperatureThresholdFunc mocks the GetTemperatureThreshold method.
	GetTemperatureThresholdFunc func(temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return)

	// GetThermalSettingsFunc mocks the GetThermalSettings method.
	GetThermalSettingsFunc func(v uint32) (nvml.GpuThermalSettings, nvml.Return)

	// GetTopologyCommonAncestorFunc mocks the GetTopologyCommonAncestor method.
	GetTopologyCommonAncestorFunc func(device nvml.Device) (nvml.GpuTopologyLevel, nvml.Return)

	// GetTopologyNearestGpusFunc mocks the GetTopologyNearestGpus method.
	GetTopologyNearestGpusFunc func(gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return)

	// GetTotalEccErrorsFunc mocks the GetTotalEccErrors method.
	GetTotalEccErrorsFunc func(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (uint64, nvml.Return)

	// GetTotalEnergyConsumptionFunc mocks the GetTotalEnergyConsumption method.
	GetTotalEnergyConsumptionFunc func() (uint64, nvml.Return)

	// GetUUIDFunc mocks the GetUUID method.
	GetUUIDFunc func() (string, nvml.Return)

	// GetUtilizationRatesFunc mocks the GetUtilizationRates method.
	GetUtilizationRatesFunc func() (nvml.Utilization, nvml.Return)

	// GetVbiosVersionFunc mocks the GetVbiosVersion method.
	GetVbiosVersionFunc func() (string, nvml.Return)

	// GetVgpuCapabilitiesFunc mocks the GetVgpuCapabilities method.
	GetVgpuCapabilitiesFunc func(deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return)

	// GetVgpuMetadataFunc mocks the GetVgpuMetadata method.
	GetVgpuMetadataFunc func() (nvml.VgpuPgpuMetadata, nvml.Return)

	// GetVgpuProcessUtilizationFunc mocks the GetVgpuProcessUtilization method.
	GetVgpuProcessUtilizationFunc func(v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return)

	// GetVgpuSchedulerCapabilitiesFunc mocks the GetVgpuSchedulerCapabilities method.
	GetVgpuSchedulerCapabilitiesFunc func() (nvml.VgpuSchedulerCapabilities, nvml.Return)

	// GetVgpuSchedulerLogFunc mocks the GetVgpuSchedulerLog method.
	GetVgpuSchedulerLogFunc func() (nvml.VgpuSchedulerLog, nvml.Return)

	// GetVgpuSchedulerStateFunc mocks the GetVgpuSchedulerState method.
	GetVgpuSchedulerStateFunc func() (nvml.VgpuSchedulerGetState, nvml.Return)

	// GetVgpuUtilizationFunc mocks the GetVgpuUtilization method.
	GetVgpuUtilizationFunc func(v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)

	// GetViolationStatusFunc mocks the GetViolationStatus method.
	GetViolationStatusFunc func(perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return)

	// GetVirtualizationModeFunc mocks the GetVirtualizationMode method.
	GetVirtualizationModeFunc func() (nvml.GpuVirtualizationMode, nvml.Return)

	// GpmMigSampleGetFunc mocks the GpmMigSampleGet method.
	GpmMigSampleGetFunc func(n int, gpmSample nvml.GpmSample) nvml.Return

	// GpmQueryDeviceSupportFunc mocks the GpmQueryDeviceSupport method.
	GpmQueryDeviceSupportFunc func() (nvml.GpmSupport, nvml.Return)

	// GpmQueryDeviceSupportVFunc mocks the GpmQueryDeviceSupportV method.
	GpmQueryDeviceSupportVFunc func() nvml.GpmSupportV

	// GpmSampleGetFunc mocks the GpmSampleGet method.
	GpmSampleGetFunc func(gpmSample nvml.GpmSample) nvml.Return

	// IsMigDeviceHandleFunc mocks the IsMigDeviceHandle method.
	IsMigDeviceHandleFunc func() (bool, nvml.Return)

	// OnSameBoardFunc mocks the OnSameBoard method.
	OnSameBoardFunc func(device nvml.Device) (int, nvml.Return)

	// RegisterEventsFunc mocks the RegisterEvents method.
	RegisterEventsFunc func(v uint64, eventSet nvml.EventSet) nvml.Return

	// ResetApplicationsClocksFunc mocks the ResetApplicationsClocks method.
	ResetApplicationsClocksFunc func() nvml.Return

	// ResetGpuLockedClocksFunc mocks the ResetGpuLockedClocks method.
	ResetGpuLockedClocksFunc func() nvml.Return

	// ResetMemoryLockedClocksFunc mocks the ResetMemoryLockedClocks method.
	ResetMemoryLockedClocksFunc func() nvml.Return

	// ResetNvLinkErrorCountersFunc mocks the ResetNvLinkErrorCounters method.
	ResetNvLinkErrorCountersFunc func(n int) nvml.Return

	// ResetNvLinkUtilizationCounterFunc mocks the ResetNvLinkUtilizationCounter method.
	ResetNvLinkUtilizationCounterFunc func(n1 int, n2 int) nvml.Return

	// SetAPIRestrictionFunc mocks the SetAPIRestriction method.
	SetAPIRestrictionFunc func(restrictedAPI nvml.RestrictedAPI, enableState nvml.EnableState) nvml.Return

	// SetAccountingModeFunc mocks the SetAccountingMode method.
	SetAccountingModeFunc func(enableState nvml.EnableState) nvml.Return

	// SetApplicationsClocksFunc mocks the SetApplicationsClocks method.
	SetApplicationsClocksFunc func(v1 uint32, v2 uint32) nvml.Return

	// SetAutoBoostedClocksEnabledFunc mocks the SetAutoBoostedClocksEnabled method.
	SetAutoBoostedClocksEnabledFunc func(enableState nvml.EnableState) nvml.Return

	// SetComputeModeFunc mocks the SetComputeMode method.
	SetComputeModeFunc func(computeMode nvml.ComputeMode) nvml.Return

	// SetCpuAffinityFunc mocks the SetCpuAffinity method.
	SetCpuAffinityFunc func() nvml.Return

	// SetDefaultAutoBoostedClocksEnabledFunc mocks the SetDefaultAutoBoostedClocksEnabled method.
	SetDefaultAutoBoostedClocksEnabledFunc func(enableState nvml.EnableState, v uint32) nvml.Return

	// SetDefaultFanSpeed_v2Func mocks the SetDefaultFanSpeed_v2 method.
	SetDefaultFanSpeed_v2Func func(n int) nvml.Return

	// SetDriverModelFunc mocks the SetDriverModel method.
	SetDriverModelFunc func(driverModel nvml.DriverModel, v uint32) nvml.Return

	// SetEccModeFunc mocks the SetEccMode method.
	SetEccModeFunc func(enableState nvml.EnableState) nvml.Return

	// SetFanControlPolicyFunc mocks the SetFanControlPolicy method.
	SetFanControlPolicyFunc func(n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return

	// SetFanSpeed_v2Func mocks the SetFanSpeed_v2 method.
	SetFanSpeed_v2Func func(n1 int, n2 int) nvml.Return

	// SetGpcClkVfOffsetFunc mocks the SetGpcClkVfOffset method.
	SetGpcClkVfOffsetFunc func(n int) nvml.Return

	// SetGpuLockedClocksFunc mocks the SetGpuLockedClocks method.
	SetGpuLockedClocksFunc func(v1 uint32, v2 uint32) nvml.Return

	// SetGpuOperationModeFunc mocks the SetGpuOperationMode method.
	SetGpuOperationModeFunc func(gpuOperationMode nvml.GpuOperationMode) nvml.Return

	// SetMemClkVfOffsetFunc mocks the SetMemClkVfOffset method.
	SetMemClkVfOffsetFunc func(n int) nvml.Return

	// SetMemoryLockedClocksFunc mocks the SetMemoryLockedClocks method.
	SetMemoryLockedClocksFunc func(v1 uint32, v2 uint32) nvml.Return

	// SetMigModeFunc mocks the SetMigMode method.
	SetMigModeFunc func(n int) (nvml.Return, nvml.Return)

	// SetNvLinkDeviceLowPowerThresholdFunc mocks the SetNvLinkDeviceLowPowerThreshold method.
	SetNvLinkDeviceLowPowerThresholdFunc func(nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return

	// SetNvLinkUtilizationControlFunc mocks the SetNvLinkUtilizationControl method.
	SetNvLinkUtilizationControlFunc func(n1 int, n2 int, nvLinkUtilizationControl *nvml.NvLinkUtilizationControl, b bool) nvml.Return

	// SetPersistenceModeFunc mocks the SetPersistenceMode method.
	SetPersistenceModeFunc func(enableState nvml.EnableState) nvml.Return

	// SetPowerManagementLimitFunc mocks the SetPowerManagementLimit method.
	SetPowerManagementLimitFunc func(v uint32) nvml.Return

	// SetTemperatureThresholdFunc mocks the SetTemperatureThreshold method.
	SetTemperatureThresholdFunc func(temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return

	// SetVgpuSchedulerStateFunc mocks the SetVgpuSchedulerState method.
	SetVgpuSchedulerStateFunc func(vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return

	// SetVirtualizationModeFunc mocks the SetVirtualizationMode method.
	SetVirtualizationModeFunc func(gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return

	// ValidateInforomFunc mocks the ValidateInforom method.
	ValidateInforomFunc func() nvml.Return

	// VgpuTypeGetMaxInstancesFunc mocks the VgpuTypeGetMaxInstances method.
	VgpuTypeGetMaxInstancesFunc func(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)
	// contains filtered or unexported fields
}

Device is a mock implementation of nvml.Device.

func TestSomethingThatUsesDevice(t *testing.T) {

	// make and configure a mocked nvml.Device
	mockedDevice := &Device{
		CcuGetStreamStateFunc: func() (int, nvml.Return) {
			panic("mock out the CcuGetStreamState method")
		},
		CcuSetStreamStateFunc: func(n int) nvml.Return {
			panic("mock out the CcuSetStreamState method")
		},
		ClearAccountingPidsFunc: func() nvml.Return {
			panic("mock out the ClearAccountingPids method")
		},
		ClearCpuAffinityFunc: func() nvml.Return {
			panic("mock out the ClearCpuAffinity method")
		},
		ClearEccErrorCountsFunc: func(eccCounterType nvml.EccCounterType) nvml.Return {
			panic("mock out the ClearEccErrorCounts method")
		},
		ClearFieldValuesFunc: func(fieldValues []nvml.FieldValue) nvml.Return {
			panic("mock out the ClearFieldValues method")
		},
		CreateGpuInstanceFunc: func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return) {
			panic("mock out the CreateGpuInstance method")
		},
		CreateGpuInstanceWithPlacementFunc: func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, gpuInstancePlacement *nvml.GpuInstancePlacement) (nvml.GpuInstance, nvml.Return) {
			panic("mock out the CreateGpuInstanceWithPlacement method")
		},
		FreezeNvLinkUtilizationCounterFunc: func(n1 int, n2 int, enableState nvml.EnableState) nvml.Return {
			panic("mock out the FreezeNvLinkUtilizationCounter method")
		},
		GetAPIRestrictionFunc: func(restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return) {
			panic("mock out the GetAPIRestriction method")
		},
		GetAccountingBufferSizeFunc: func() (int, nvml.Return) {
			panic("mock out the GetAccountingBufferSize method")
		},
		GetAccountingModeFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetAccountingMode method")
		},
		GetAccountingPidsFunc: func() ([]int, nvml.Return) {
			panic("mock out the GetAccountingPids method")
		},
		GetAccountingStatsFunc: func(v uint32) (nvml.AccountingStats, nvml.Return) {
			panic("mock out the GetAccountingStats method")
		},
		GetActiveVgpusFunc: func() ([]nvml.VgpuInstance, nvml.Return) {
			panic("mock out the GetActiveVgpus method")
		},
		GetAdaptiveClockInfoStatusFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetAdaptiveClockInfoStatus method")
		},
		GetApplicationsClockFunc: func(clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the GetApplicationsClock method")
		},
		GetArchitectureFunc: func() (nvml.DeviceArchitecture, nvml.Return) {
			panic("mock out the GetArchitecture method")
		},
		GetAttributesFunc: func() (nvml.DeviceAttributes, nvml.Return) {
			panic("mock out the GetAttributes method")
		},
		GetAutoBoostedClocksEnabledFunc: func() (nvml.EnableState, nvml.EnableState, nvml.Return) {
			panic("mock out the GetAutoBoostedClocksEnabled method")
		},
		GetBAR1MemoryInfoFunc: func() (nvml.BAR1Memory, nvml.Return) {
			panic("mock out the GetBAR1MemoryInfo method")
		},
		GetBoardIdFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetBoardId method")
		},
		GetBoardPartNumberFunc: func() (string, nvml.Return) {
			panic("mock out the GetBoardPartNumber method")
		},
		GetBrandFunc: func() (nvml.BrandType, nvml.Return) {
			panic("mock out the GetBrand method")
		},
		GetBridgeChipInfoFunc: func() (nvml.BridgeChipHierarchy, nvml.Return) {
			panic("mock out the GetBridgeChipInfo method")
		},
		GetBusTypeFunc: func() (nvml.BusType, nvml.Return) {
			panic("mock out the GetBusType method")
		},
		GetClkMonStatusFunc: func() (nvml.ClkMonStatus, nvml.Return) {
			panic("mock out the GetClkMonStatus method")
		},
		GetClockFunc: func(clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return) {
			panic("mock out the GetClock method")
		},
		GetClockInfoFunc: func(clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the GetClockInfo method")
		},
		GetComputeInstanceIdFunc: func() (int, nvml.Return) {
			panic("mock out the GetComputeInstanceId method")
		},
		GetComputeModeFunc: func() (nvml.ComputeMode, nvml.Return) {
			panic("mock out the GetComputeMode method")
		},
		GetComputeRunningProcessesFunc: func() ([]nvml.ProcessInfo, nvml.Return) {
			panic("mock out the GetComputeRunningProcesses method")
		},
		GetCpuAffinityFunc: func(n int) ([]uint, nvml.Return) {
			panic("mock out the GetCpuAffinity method")
		},
		GetCpuAffinityWithinScopeFunc: func(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return) {
			panic("mock out the GetCpuAffinityWithinScope method")
		},
		GetCreatableVgpusFunc: func() ([]nvml.VgpuTypeId, nvml.Return) {
			panic("mock out the GetCreatableVgpus method")
		},
		GetCudaComputeCapabilityFunc: func() (int, int, nvml.Return) {
			panic("mock out the GetCudaComputeCapability method")
		},
		GetCurrPcieLinkGenerationFunc: func() (int, nvml.Return) {
			panic("mock out the GetCurrPcieLinkGeneration method")
		},
		GetCurrPcieLinkWidthFunc: func() (int, nvml.Return) {
			panic("mock out the GetCurrPcieLinkWidth method")
		},
		GetCurrentClocksThrottleReasonsFunc: func() (uint64, nvml.Return) {
			panic("mock out the GetCurrentClocksThrottleReasons method")
		},
		GetDecoderUtilizationFunc: func() (uint32, uint32, nvml.Return) {
			panic("mock out the GetDecoderUtilization method")
		},
		GetDefaultApplicationsClockFunc: func(clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the GetDefaultApplicationsClock method")
		},
		GetDefaultEccModeFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetDefaultEccMode method")
		},
		GetDetailedEccErrorsFunc: func(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (nvml.EccErrorCounts, nvml.Return) {
			panic("mock out the GetDetailedEccErrors method")
		},
		GetDeviceHandleFromMigDeviceHandleFunc: func() (nvml.Device, nvml.Return) {
			panic("mock out the GetDeviceHandleFromMigDeviceHandle method")
		},
		GetDisplayActiveFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetDisplayActive method")
		},
		GetDisplayModeFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetDisplayMode method")
		},
		GetDriverModelFunc: func() (nvml.DriverModel, nvml.DriverModel, nvml.Return) {
			panic("mock out the GetDriverModel method")
		},
		GetDynamicPstatesInfoFunc: func() (nvml.GpuDynamicPstatesInfo, nvml.Return) {
			panic("mock out the GetDynamicPstatesInfo method")
		},
		GetEccModeFunc: func() (nvml.EnableState, nvml.EnableState, nvml.Return) {
			panic("mock out the GetEccMode method")
		},
		GetEncoderCapacityFunc: func(encoderType nvml.EncoderType) (int, nvml.Return) {
			panic("mock out the GetEncoderCapacity method")
		},
		GetEncoderSessionsFunc: func() ([]nvml.EncoderSessionInfo, nvml.Return) {
			panic("mock out the GetEncoderSessions method")
		},
		GetEncoderStatsFunc: func() (int, uint32, uint32, nvml.Return) {
			panic("mock out the GetEncoderStats method")
		},
		GetEncoderUtilizationFunc: func() (uint32, uint32, nvml.Return) {
			panic("mock out the GetEncoderUtilization method")
		},
		GetEnforcedPowerLimitFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetEnforcedPowerLimit method")
		},
		GetFBCSessionsFunc: func() ([]nvml.FBCSessionInfo, nvml.Return) {
			panic("mock out the GetFBCSessions method")
		},
		GetFBCStatsFunc: func() (nvml.FBCStats, nvml.Return) {
			panic("mock out the GetFBCStats method")
		},
		GetFanControlPolicy_v2Func: func(n int) (nvml.FanControlPolicy, nvml.Return) {
			panic("mock out the GetFanControlPolicy_v2 method")
		},
		GetFanSpeedFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetFanSpeed method")
		},
		GetFanSpeed_v2Func: func(n int) (uint32, nvml.Return) {
			panic("mock out the GetFanSpeed_v2 method")
		},
		GetFieldValuesFunc: func(fieldValues []nvml.FieldValue) nvml.Return {
			panic("mock out the GetFieldValues method")
		},
		GetGpcClkMinMaxVfOffsetFunc: func() (int, int, nvml.Return) {
			panic("mock out the GetGpcClkMinMaxVfOffset method")
		},
		GetGpcClkVfOffsetFunc: func() (int, nvml.Return) {
			panic("mock out the GetGpcClkVfOffset method")
		},
		GetGpuFabricInfoFunc: func() (nvml.GpuFabricInfo, nvml.Return) {
			panic("mock out the GetGpuFabricInfo method")
		},
		GetGpuInstanceByIdFunc: func(n int) (nvml.GpuInstance, nvml.Return) {
			panic("mock out the GetGpuInstanceById method")
		},
		GetGpuInstanceIdFunc: func() (int, nvml.Return) {
			panic("mock out the GetGpuInstanceId method")
		},
		GetGpuInstancePossiblePlacementsFunc: func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return) {
			panic("mock out the GetGpuInstancePossiblePlacements method")
		},
		GetGpuInstanceProfileInfoFunc: func(n int) (nvml.GpuInstanceProfileInfo, nvml.Return) {
			panic("mock out the GetGpuInstanceProfileInfo method")
		},
		GetGpuInstanceProfileInfoVFunc: func(n int) nvml.GpuInstanceProfileInfoV {
			panic("mock out the GetGpuInstanceProfileInfoV method")
		},
		GetGpuInstanceRemainingCapacityFunc: func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return) {
			panic("mock out the GetGpuInstanceRemainingCapacity method")
		},
		GetGpuInstancesFunc: func(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return) {
			panic("mock out the GetGpuInstances method")
		},
		GetGpuMaxPcieLinkGenerationFunc: func() (int, nvml.Return) {
			panic("mock out the GetGpuMaxPcieLinkGeneration method")
		},
		GetGpuOperationModeFunc: func() (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return) {
			panic("mock out the GetGpuOperationMode method")
		},
		GetGraphicsRunningProcessesFunc: func() ([]nvml.ProcessInfo, nvml.Return) {
			panic("mock out the GetGraphicsRunningProcesses method")
		},
		GetGridLicensableFeaturesFunc: func() (nvml.GridLicensableFeatures, nvml.Return) {
			panic("mock out the GetGridLicensableFeatures method")
		},
		GetGspFirmwareModeFunc: func() (bool, bool, nvml.Return) {
			panic("mock out the GetGspFirmwareMode method")
		},
		GetGspFirmwareVersionFunc: func() (string, nvml.Return) {
			panic("mock out the GetGspFirmwareVersion method")
		},
		GetHostVgpuModeFunc: func() (nvml.HostVgpuMode, nvml.Return) {
			panic("mock out the GetHostVgpuMode method")
		},
		GetIndexFunc: func() (int, nvml.Return) {
			panic("mock out the GetIndex method")
		},
		GetInforomConfigurationChecksumFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetInforomConfigurationChecksum method")
		},
		GetInforomImageVersionFunc: func() (string, nvml.Return) {
			panic("mock out the GetInforomImageVersion method")
		},
		GetInforomVersionFunc: func(inforomObject nvml.InforomObject) (string, nvml.Return) {
			panic("mock out the GetInforomVersion method")
		},
		GetIrqNumFunc: func() (int, nvml.Return) {
			panic("mock out the GetIrqNum method")
		},
		GetMPSComputeRunningProcessesFunc: func() ([]nvml.ProcessInfo, nvml.Return) {
			panic("mock out the GetMPSComputeRunningProcesses method")
		},
		GetMaxClockInfoFunc: func(clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the GetMaxClockInfo method")
		},
		GetMaxCustomerBoostClockFunc: func(clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the GetMaxCustomerBoostClock method")
		},
		GetMaxMigDeviceCountFunc: func() (int, nvml.Return) {
			panic("mock out the GetMaxMigDeviceCount method")
		},
		GetMaxPcieLinkGenerationFunc: func() (int, nvml.Return) {
			panic("mock out the GetMaxPcieLinkGeneration method")
		},
		GetMaxPcieLinkWidthFunc: func() (int, nvml.Return) {
			panic("mock out the GetMaxPcieLinkWidth method")
		},
		GetMemClkMinMaxVfOffsetFunc: func() (int, int, nvml.Return) {
			panic("mock out the GetMemClkMinMaxVfOffset method")
		},
		GetMemClkVfOffsetFunc: func() (int, nvml.Return) {
			panic("mock out the GetMemClkVfOffset method")
		},
		GetMemoryAffinityFunc: func(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return) {
			panic("mock out the GetMemoryAffinity method")
		},
		GetMemoryBusWidthFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetMemoryBusWidth method")
		},
		GetMemoryErrorCounterFunc: func(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType, memoryLocation nvml.MemoryLocation) (uint64, nvml.Return) {
			panic("mock out the GetMemoryErrorCounter method")
		},
		GetMemoryInfoFunc: func() (nvml.Memory, nvml.Return) {
			panic("mock out the GetMemoryInfo method")
		},
		GetMemoryInfo_v2Func: func() (nvml.Memory_v2, nvml.Return) {
			panic("mock out the GetMemoryInfo_v2 method")
		},
		GetMigDeviceHandleByIndexFunc: func(n int) (nvml.Device, nvml.Return) {
			panic("mock out the GetMigDeviceHandleByIndex method")
		},
		GetMigModeFunc: func() (int, int, nvml.Return) {
			panic("mock out the GetMigMode method")
		},
		GetMinMaxClockOfPStateFunc: func(clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return) {
			panic("mock out the GetMinMaxClockOfPState method")
		},
		GetMinMaxFanSpeedFunc: func() (int, int, nvml.Return) {
			panic("mock out the GetMinMaxFanSpeed method")
		},
		GetMinorNumberFunc: func() (int, nvml.Return) {
			panic("mock out the GetMinorNumber method")
		},
		GetMultiGpuBoardFunc: func() (int, nvml.Return) {
			panic("mock out the GetMultiGpuBoard method")
		},
		GetNameFunc: func() (string, nvml.Return) {
			panic("mock out the GetName method")
		},
		GetNumFansFunc: func() (int, nvml.Return) {
			panic("mock out the GetNumFans method")
		},
		GetNumGpuCoresFunc: func() (int, nvml.Return) {
			panic("mock out the GetNumGpuCores method")
		},
		GetNvLinkCapabilityFunc: func(n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return) {
			panic("mock out the GetNvLinkCapability method")
		},
		GetNvLinkErrorCounterFunc: func(n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return) {
			panic("mock out the GetNvLinkErrorCounter method")
		},
		GetNvLinkRemoteDeviceTypeFunc: func(n int) (nvml.IntNvLinkDeviceType, nvml.Return) {
			panic("mock out the GetNvLinkRemoteDeviceType method")
		},
		GetNvLinkRemotePciInfoFunc: func(n int) (nvml.PciInfo, nvml.Return) {
			panic("mock out the GetNvLinkRemotePciInfo method")
		},
		GetNvLinkStateFunc: func(n int) (nvml.EnableState, nvml.Return) {
			panic("mock out the GetNvLinkState method")
		},
		GetNvLinkUtilizationControlFunc: func(n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return) {
			panic("mock out the GetNvLinkUtilizationControl method")
		},
		GetNvLinkUtilizationCounterFunc: func(n1 int, n2 int) (uint64, uint64, nvml.Return) {
			panic("mock out the GetNvLinkUtilizationCounter method")
		},
		GetNvLinkVersionFunc: func(n int) (uint32, nvml.Return) {
			panic("mock out the GetNvLinkVersion method")
		},
		GetP2PStatusFunc: func(device nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return) {
			panic("mock out the GetP2PStatus method")
		},
		GetPciInfoFunc: func() (nvml.PciInfo, nvml.Return) {
			panic("mock out the GetPciInfo method")
		},
		GetPcieLinkMaxSpeedFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetPcieLinkMaxSpeed method")
		},
		GetPcieReplayCounterFunc: func() (int, nvml.Return) {
			panic("mock out the GetPcieReplayCounter method")
		},
		GetPcieSpeedFunc: func() (int, nvml.Return) {
			panic("mock out the GetPcieSpeed method")
		},
		GetPcieThroughputFunc: func(pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return) {
			panic("mock out the GetPcieThroughput method")
		},
		GetPerformanceStateFunc: func() (nvml.Pstates, nvml.Return) {
			panic("mock out the GetPerformanceState method")
		},
		GetPersistenceModeFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetPersistenceMode method")
		},
		GetPgpuMetadataStringFunc: func() (string, nvml.Return) {
			panic("mock out the GetPgpuMetadataString method")
		},
		GetPowerManagementDefaultLimitFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetPowerManagementDefaultLimit method")
		},
		GetPowerManagementLimitFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetPowerManagementLimit method")
		},
		GetPowerManagementLimitConstraintsFunc: func() (uint32, uint32, nvml.Return) {
			panic("mock out the GetPowerManagementLimitConstraints method")
		},
		GetPowerManagementModeFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetPowerManagementMode method")
		},
		GetPowerSourceFunc: func() (nvml.PowerSource, nvml.Return) {
			panic("mock out the GetPowerSource method")
		},
		GetPowerStateFunc: func() (nvml.Pstates, nvml.Return) {
			panic("mock out the GetPowerState method")
		},
		GetPowerUsageFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetPowerUsage method")
		},
		GetProcessUtilizationFunc: func(v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return) {
			panic("mock out the GetProcessUtilization method")
		},
		GetRemappedRowsFunc: func() (int, int, bool, bool, nvml.Return) {
			panic("mock out the GetRemappedRows method")
		},
		GetRetiredPagesFunc: func(pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return) {
			panic("mock out the GetRetiredPages method")
		},
		GetRetiredPagesPendingStatusFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetRetiredPagesPendingStatus method")
		},
		GetRetiredPages_v2Func: func(pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return) {
			panic("mock out the GetRetiredPages_v2 method")
		},
		GetRowRemapperHistogramFunc: func() (nvml.RowRemapperHistogramValues, nvml.Return) {
			panic("mock out the GetRowRemapperHistogram method")
		},
		GetSamplesFunc: func(samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return) {
			panic("mock out the GetSamples method")
		},
		GetSerialFunc: func() (string, nvml.Return) {
			panic("mock out the GetSerial method")
		},
		GetSupportedClocksThrottleReasonsFunc: func() (uint64, nvml.Return) {
			panic("mock out the GetSupportedClocksThrottleReasons method")
		},
		GetSupportedEventTypesFunc: func() (uint64, nvml.Return) {
			panic("mock out the GetSupportedEventTypes method")
		},
		GetSupportedGraphicsClocksFunc: func(n int) (int, uint32, nvml.Return) {
			panic("mock out the GetSupportedGraphicsClocks method")
		},
		GetSupportedMemoryClocksFunc: func() (int, uint32, nvml.Return) {
			panic("mock out the GetSupportedMemoryClocks method")
		},
		GetSupportedPerformanceStatesFunc: func() ([]nvml.Pstates, nvml.Return) {
			panic("mock out the GetSupportedPerformanceStates method")
		},
		GetSupportedVgpusFunc: func() ([]nvml.VgpuTypeId, nvml.Return) {
			panic("mock out the GetSupportedVgpus method")
		},
		GetTargetFanSpeedFunc: func(n int) (int, nvml.Return) {
			panic("mock out the GetTargetFanSpeed method")
		},
		GetTemperatureFunc: func(temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return) {
			panic("mock out the GetTemperature method")
		},
		GetTemperatureThresholdFunc: func(temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return) {
			panic("mock out the GetTemperatureThreshold method")
		},
		GetThermalSettingsFunc: func(v uint32) (nvml.GpuThermalSettings, nvml.Return) {
			panic("mock out the GetThermalSettings method")
		},
		GetTopologyCommonAncestorFunc: func(device nvml.Device) (nvml.GpuTopologyLevel, nvml.Return) {
			panic("mock out the GetTopologyCommonAncestor method")
		},
		GetTopologyNearestGpusFunc: func(gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return) {
			panic("mock out the GetTopologyNearestGpus method")
		},
		GetTotalEccErrorsFunc: func(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (uint64, nvml.Return) {
			panic("mock out the GetTotalEccErrors method")
		},
		GetTotalEnergyConsumptionFunc: func() (uint64, nvml.Return) {
			panic("mock out the GetTotalEnergyConsumption method")
		},
		GetUUIDFunc: func() (string, nvml.Return) {
			panic("mock out the GetUUID method")
		},
		GetUtilizationRatesFunc: func() (nvml.Utilization, nvml.Return) {
			panic("mock out the GetUtilizationRates method")
		},
		GetVbiosVersionFunc: func() (string, nvml.Return) {
			panic("mock out the GetVbiosVersion method")
		},
		GetVgpuCapabilitiesFunc: func(deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return) {
			panic("mock out the GetVgpuCapabilities method")
		},
		GetVgpuMetadataFunc: func() (nvml.VgpuPgpuMetadata, nvml.Return) {
			panic("mock out the GetVgpuMetadata method")
		},
		GetVgpuProcessUtilizationFunc: func(v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return) {
			panic("mock out the GetVgpuProcessUtilization method")
		},
		GetVgpuSchedulerCapabilitiesFunc: func() (nvml.VgpuSchedulerCapabilities, nvml.Return) {
			panic("mock out the GetVgpuSchedulerCapabilities method")
		},
		GetVgpuSchedulerLogFunc: func() (nvml.VgpuSchedulerLog, nvml.Return) {
			panic("mock out the GetVgpuSchedulerLog method")
		},
		GetVgpuSchedulerStateFunc: func() (nvml.VgpuSchedulerGetState, nvml.Return) {
			panic("mock out the GetVgpuSchedulerState method")
		},
		GetVgpuUtilizationFunc: func(v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return) {
			panic("mock out the GetVgpuUtilization method")
		},
		GetViolationStatusFunc: func(perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return) {
			panic("mock out the GetViolationStatus method")
		},
		GetVirtualizationModeFunc: func() (nvml.GpuVirtualizationMode, nvml.Return) {
			panic("mock out the GetVirtualizationMode method")
		},
		GpmMigSampleGetFunc: func(n int, gpmSample nvml.GpmSample) nvml.Return {
			panic("mock out the GpmMigSampleGet method")
		},
		GpmQueryDeviceSupportFunc: func() (nvml.GpmSupport, nvml.Return) {
			panic("mock out the GpmQueryDeviceSupport method")
		},
		GpmQueryDeviceSupportVFunc: func() nvml.GpmSupportV {
			panic("mock out the GpmQueryDeviceSupportV method")
		},
		GpmSampleGetFunc: func(gpmSample nvml.GpmSample) nvml.Return {
			panic("mock out the GpmSampleGet method")
		},
		IsMigDeviceHandleFunc: func() (bool, nvml.Return) {
			panic("mock out the IsMigDeviceHandle method")
		},
		OnSameBoardFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the OnSameBoard method")
		},
		RegisterEventsFunc: func(v uint64, eventSet nvml.EventSet) nvml.Return {
			panic("mock out the RegisterEvents method")
		},
		ResetApplicationsClocksFunc: func() nvml.Return {
			panic("mock out the ResetApplicationsClocks method")
		},
		ResetGpuLockedClocksFunc: func() nvml.Return {
			panic("mock out the ResetGpuLockedClocks method")
		},
		ResetMemoryLockedClocksFunc: func() nvml.Return {
			panic("mock out the ResetMemoryLockedClocks method")
		},
		ResetNvLinkErrorCountersFunc: func(n int) nvml.Return {
			panic("mock out the ResetNvLinkErrorCounters method")
		},
		ResetNvLinkUtilizationCounterFunc: func(n1 int, n2 int) nvml.Return {
			panic("mock out the ResetNvLinkUtilizationCounter method")
		},
		SetAPIRestrictionFunc: func(restrictedAPI nvml.RestrictedAPI, enableState nvml.EnableState) nvml.Return {
			panic("mock out the SetAPIRestriction method")
		},
		SetAccountingModeFunc: func(enableState nvml.EnableState) nvml.Return {
			panic("mock out the SetAccountingMode method")
		},
		SetApplicationsClocksFunc: func(v1 uint32, v2 uint32) nvml.Return {
			panic("mock out the SetApplicationsClocks method")
		},
		SetAutoBoostedClocksEnabledFunc: func(enableState nvml.EnableState) nvml.Return {
			panic("mock out the SetAutoBoostedClocksEnabled method")
		},
		SetComputeModeFunc: func(computeMode nvml.ComputeMode) nvml.Return {
			panic("mock out the SetComputeMode method")
		},
		SetCpuAffinityFunc: func() nvml.Return {
			panic("mock out the SetCpuAffinity method")
		},
		SetDefaultAutoBoostedClocksEnabledFunc: func(enableState nvml.EnableState, v uint32) nvml.Return {
			panic("mock out the SetDefaultAutoBoostedClocksEnabled method")
		},
		SetDefaultFanSpeed_v2Func: func(n int) nvml.Return {
			panic("mock out the SetDefaultFanSpeed_v2 method")
		},
		SetDriverModelFunc: func(driverModel nvml.DriverModel, v uint32) nvml.Return {
			panic("mock out the SetDriverModel method")
		},
		SetEccModeFunc: func(enableState nvml.EnableState) nvml.Return {
			panic("mock out the SetEccMode method")
		},
		SetFanControlPolicyFunc: func(n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return {
			panic("mock out the SetFanControlPolicy method")
		},
		SetFanSpeed_v2Func: func(n1 int, n2 int) nvml.Return {
			panic("mock out the SetFanSpeed_v2 method")
		},
		SetGpcClkVfOffsetFunc: func(n int) nvml.Return {
			panic("mock out the SetGpcClkVfOffset method")
		},
		SetGpuLockedClocksFunc: func(v1 uint32, v2 uint32) nvml.Return {
			panic("mock out the SetGpuLockedClocks method")
		},
		SetGpuOperationModeFunc: func(gpuOperationMode nvml.GpuOperationMode) nvml.Return {
			panic("mock out the SetGpuOperationMode method")
		},
		SetMemClkVfOffsetFunc: func(n int) nvml.Return {
			panic("mock out the SetMemClkVfOffset method")
		},
		SetMemoryLockedClocksFunc: func(v1 uint32, v2 uint32) nvml.Return {
			panic("mock out the SetMemoryLockedClocks method")
		},
		SetMigModeFunc: func(n int) (nvml.Return, nvml.Return) {
			panic("mock out the SetMigMode method")
		},
		SetNvLinkDeviceLowPowerThresholdFunc: func(nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return {
			panic("mock out the SetNvLinkDeviceLowPowerThreshold method")
		},
		SetNvLinkUtilizationControlFunc: func(n1 int, n2 int, nvLinkUtilizationControl *nvml.NvLinkUtilizationControl, b bool) nvml.Return {
			panic("mock out the SetNvLinkUtilizationControl method")
		},
		SetPersistenceModeFunc: func(enableState nvml.EnableState) nvml.Return {
			panic("mock out the SetPersistenceMode method")
		},
		SetPowerManagementLimitFunc: func(v uint32) nvml.Return {
			panic("mock out the SetPowerManagementLimit method")
		},
		SetTemperatureThresholdFunc: func(temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return {
			panic("mock out the SetTemperatureThreshold method")
		},
		SetVgpuSchedulerStateFunc: func(vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return {
			panic("mock out the SetVgpuSchedulerState method")
		},
		SetVirtualizationModeFunc: func(gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return {
			panic("mock out the SetVirtualizationMode method")
		},
		ValidateInforomFunc: func() nvml.Return {
			panic("mock out the ValidateInforom method")
		},
		VgpuTypeGetMaxInstancesFunc: func(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return) {
			panic("mock out the VgpuTypeGetMaxInstances method")
		},
	}

	// use mockedDevice in code that requires nvml.Device
	// and then make assertions.

}

func (*Device) CcuGetStreamState

func (mock *Device) CcuGetStreamState() (int, nvml.Return)

CcuGetStreamState calls CcuGetStreamStateFunc.

func (*Device) CcuGetStreamStateCalls

func (mock *Device) CcuGetStreamStateCalls() []struct {
}

CcuGetStreamStateCalls gets all the calls that were made to CcuGetStreamState. Check the length with:

len(mockedDevice.CcuGetStreamStateCalls())

func (*Device) CcuSetStreamState

func (mock *Device) CcuSetStreamState(n int) nvml.Return

CcuSetStreamState calls CcuSetStreamStateFunc.

func (*Device) CcuSetStreamStateCalls

func (mock *Device) CcuSetStreamStateCalls() []struct {
	N int
}

CcuSetStreamStateCalls gets all the calls that were made to CcuSetStreamState. Check the length with:

len(mockedDevice.CcuSetStreamStateCalls())

func (*Device) ClearAccountingPids

func (mock *Device) ClearAccountingPids() nvml.Return

ClearAccountingPids calls ClearAccountingPidsFunc.

func (*Device) ClearAccountingPidsCalls

func (mock *Device) ClearAccountingPidsCalls() []struct {
}

ClearAccountingPidsCalls gets all the calls that were made to ClearAccountingPids. Check the length with:

len(mockedDevice.ClearAccountingPidsCalls())

func (*Device) ClearCpuAffinity

func (mock *Device) ClearCpuAffinity() nvml.Return

ClearCpuAffinity calls ClearCpuAffinityFunc.

func (*Device) ClearCpuAffinityCalls

func (mock *Device) ClearCpuAffinityCalls() []struct {
}

ClearCpuAffinityCalls gets all the calls that were made to ClearCpuAffinity. Check the length with:

len(mockedDevice.ClearCpuAffinityCalls())

func (*Device) ClearEccErrorCounts

func (mock *Device) ClearEccErrorCounts(eccCounterType nvml.EccCounterType) nvml.Return

ClearEccErrorCounts calls ClearEccErrorCountsFunc.

func (*Device) ClearEccErrorCountsCalls

func (mock *Device) ClearEccErrorCountsCalls() []struct {
	EccCounterType nvml.EccCounterType
}

ClearEccErrorCountsCalls gets all the calls that were made to ClearEccErrorCounts. Check the length with:

len(mockedDevice.ClearEccErrorCountsCalls())

func (*Device) ClearFieldValues

func (mock *Device) ClearFieldValues(fieldValues []nvml.FieldValue) nvml.Return

ClearFieldValues calls ClearFieldValuesFunc.

func (*Device) ClearFieldValuesCalls

func (mock *Device) ClearFieldValuesCalls() []struct {
	FieldValues []nvml.FieldValue
}

ClearFieldValuesCalls gets all the calls that were made to ClearFieldValues. Check the length with:

len(mockedDevice.ClearFieldValuesCalls())

func (*Device) CreateGpuInstance

func (mock *Device) CreateGpuInstance(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return)

CreateGpuInstance calls CreateGpuInstanceFunc.

func (*Device) CreateGpuInstanceCalls

func (mock *Device) CreateGpuInstanceCalls() []struct {
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

CreateGpuInstanceCalls gets all the calls that were made to CreateGpuInstance. Check the length with:

len(mockedDevice.CreateGpuInstanceCalls())

func (*Device) CreateGpuInstanceWithPlacement

func (mock *Device) CreateGpuInstanceWithPlacement(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, gpuInstancePlacement *nvml.GpuInstancePlacement) (nvml.GpuInstance, nvml.Return)

CreateGpuInstanceWithPlacement calls CreateGpuInstanceWithPlacementFunc.

func (*Device) CreateGpuInstanceWithPlacementCalls

func (mock *Device) CreateGpuInstanceWithPlacementCalls() []struct {
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
	GpuInstancePlacement   *nvml.GpuInstancePlacement
}

CreateGpuInstanceWithPlacementCalls gets all the calls that were made to CreateGpuInstanceWithPlacement. Check the length with:

len(mockedDevice.CreateGpuInstanceWithPlacementCalls())

func (*Device) FreezeNvLinkUtilizationCounter

func (mock *Device) FreezeNvLinkUtilizationCounter(n1 int, n2 int, enableState nvml.EnableState) nvml.Return

FreezeNvLinkUtilizationCounter calls FreezeNvLinkUtilizationCounterFunc.

func (*Device) FreezeNvLinkUtilizationCounterCalls

func (mock *Device) FreezeNvLinkUtilizationCounterCalls() []struct {
	N1          int
	N2          int
	EnableState nvml.EnableState
}

FreezeNvLinkUtilizationCounterCalls gets all the calls that were made to FreezeNvLinkUtilizationCounter. Check the length with:

len(mockedDevice.FreezeNvLinkUtilizationCounterCalls())

func (*Device) GetAPIRestriction

func (mock *Device) GetAPIRestriction(restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return)

GetAPIRestriction calls GetAPIRestrictionFunc.

func (*Device) GetAPIRestrictionCalls

func (mock *Device) GetAPIRestrictionCalls() []struct {
	RestrictedAPI nvml.RestrictedAPI
}

GetAPIRestrictionCalls gets all the calls that were made to GetAPIRestriction. Check the length with:

len(mockedDevice.GetAPIRestrictionCalls())

func (*Device) GetAccountingBufferSize

func (mock *Device) GetAccountingBufferSize() (int, nvml.Return)

GetAccountingBufferSize calls GetAccountingBufferSizeFunc.

func (*Device) GetAccountingBufferSizeCalls

func (mock *Device) GetAccountingBufferSizeCalls() []struct {
}

GetAccountingBufferSizeCalls gets all the calls that were made to GetAccountingBufferSize. Check the length with:

len(mockedDevice.GetAccountingBufferSizeCalls())

func (*Device) GetAccountingMode

func (mock *Device) GetAccountingMode() (nvml.EnableState, nvml.Return)

GetAccountingMode calls GetAccountingModeFunc.

func (*Device) GetAccountingModeCalls

func (mock *Device) GetAccountingModeCalls() []struct {
}

GetAccountingModeCalls gets all the calls that were made to GetAccountingMode. Check the length with:

len(mockedDevice.GetAccountingModeCalls())

func (*Device) GetAccountingPids

func (mock *Device) GetAccountingPids() ([]int, nvml.Return)

GetAccountingPids calls GetAccountingPidsFunc.

func (*Device) GetAccountingPidsCalls

func (mock *Device) GetAccountingPidsCalls() []struct {
}

GetAccountingPidsCalls gets all the calls that were made to GetAccountingPids. Check the length with:

len(mockedDevice.GetAccountingPidsCalls())

func (*Device) GetAccountingStats

func (mock *Device) GetAccountingStats(v uint32) (nvml.AccountingStats, nvml.Return)

GetAccountingStats calls GetAccountingStatsFunc.

func (*Device) GetAccountingStatsCalls

func (mock *Device) GetAccountingStatsCalls() []struct {
	V uint32
}

GetAccountingStatsCalls gets all the calls that were made to GetAccountingStats. Check the length with:

len(mockedDevice.GetAccountingStatsCalls())

func (*Device) GetActiveVgpus

func (mock *Device) GetActiveVgpus() ([]nvml.VgpuInstance, nvml.Return)

GetActiveVgpus calls GetActiveVgpusFunc.

func (*Device) GetActiveVgpusCalls

func (mock *Device) GetActiveVgpusCalls() []struct {
}

GetActiveVgpusCalls gets all the calls that were made to GetActiveVgpus. Check the length with:

len(mockedDevice.GetActiveVgpusCalls())

func (*Device) GetAdaptiveClockInfoStatus

func (mock *Device) GetAdaptiveClockInfoStatus() (uint32, nvml.Return)

GetAdaptiveClockInfoStatus calls GetAdaptiveClockInfoStatusFunc.

func (*Device) GetAdaptiveClockInfoStatusCalls

func (mock *Device) GetAdaptiveClockInfoStatusCalls() []struct {
}

GetAdaptiveClockInfoStatusCalls gets all the calls that were made to GetAdaptiveClockInfoStatus. Check the length with:

len(mockedDevice.GetAdaptiveClockInfoStatusCalls())

func (*Device) GetApplicationsClock

func (mock *Device) GetApplicationsClock(clockType nvml.ClockType) (uint32, nvml.Return)

GetApplicationsClock calls GetApplicationsClockFunc.

func (*Device) GetApplicationsClockCalls

func (mock *Device) GetApplicationsClockCalls() []struct {
	ClockType nvml.ClockType
}

GetApplicationsClockCalls gets all the calls that were made to GetApplicationsClock. Check the length with:

len(mockedDevice.GetApplicationsClockCalls())

func (*Device) GetArchitecture

func (mock *Device) GetArchitecture() (nvml.DeviceArchitecture, nvml.Return)

GetArchitecture calls GetArchitectureFunc.

func (*Device) GetArchitectureCalls

func (mock *Device) GetArchitectureCalls() []struct {
}

GetArchitectureCalls gets all the calls that were made to GetArchitecture. Check the length with:

len(mockedDevice.GetArchitectureCalls())

func (*Device) GetAttributes

func (mock *Device) GetAttributes() (nvml.DeviceAttributes, nvml.Return)

GetAttributes calls GetAttributesFunc.

func (*Device) GetAttributesCalls

func (mock *Device) GetAttributesCalls() []struct {
}

GetAttributesCalls gets all the calls that were made to GetAttributes. Check the length with:

len(mockedDevice.GetAttributesCalls())

func (*Device) GetAutoBoostedClocksEnabled

func (mock *Device) GetAutoBoostedClocksEnabled() (nvml.EnableState, nvml.EnableState, nvml.Return)

GetAutoBoostedClocksEnabled calls GetAutoBoostedClocksEnabledFunc.

func (*Device) GetAutoBoostedClocksEnabledCalls

func (mock *Device) GetAutoBoostedClocksEnabledCalls() []struct {
}

GetAutoBoostedClocksEnabledCalls gets all the calls that were made to GetAutoBoostedClocksEnabled. Check the length with:

len(mockedDevice.GetAutoBoostedClocksEnabledCalls())

func (*Device) GetBAR1MemoryInfo

func (mock *Device) GetBAR1MemoryInfo() (nvml.BAR1Memory, nvml.Return)

GetBAR1MemoryInfo calls GetBAR1MemoryInfoFunc.

func (*Device) GetBAR1MemoryInfoCalls

func (mock *Device) GetBAR1MemoryInfoCalls() []struct {
}

GetBAR1MemoryInfoCalls gets all the calls that were made to GetBAR1MemoryInfo. Check the length with:

len(mockedDevice.GetBAR1MemoryInfoCalls())

func (*Device) GetBoardId

func (mock *Device) GetBoardId() (uint32, nvml.Return)

GetBoardId calls GetBoardIdFunc.

func (*Device) GetBoardIdCalls

func (mock *Device) GetBoardIdCalls() []struct {
}

GetBoardIdCalls gets all the calls that were made to GetBoardId. Check the length with:

len(mockedDevice.GetBoardIdCalls())

func (*Device) GetBoardPartNumber

func (mock *Device) GetBoardPartNumber() (string, nvml.Return)

GetBoardPartNumber calls GetBoardPartNumberFunc.

func (*Device) GetBoardPartNumberCalls

func (mock *Device) GetBoardPartNumberCalls() []struct {
}

GetBoardPartNumberCalls gets all the calls that were made to GetBoardPartNumber. Check the length with:

len(mockedDevice.GetBoardPartNumberCalls())

func (*Device) GetBrand

func (mock *Device) GetBrand() (nvml.BrandType, nvml.Return)

GetBrand calls GetBrandFunc.

func (*Device) GetBrandCalls

func (mock *Device) GetBrandCalls() []struct {
}

GetBrandCalls gets all the calls that were made to GetBrand. Check the length with:

len(mockedDevice.GetBrandCalls())

func (*Device) GetBridgeChipInfo

func (mock *Device) GetBridgeChipInfo() (nvml.BridgeChipHierarchy, nvml.Return)

GetBridgeChipInfo calls GetBridgeChipInfoFunc.

func (*Device) GetBridgeChipInfoCalls

func (mock *Device) GetBridgeChipInfoCalls() []struct {
}

GetBridgeChipInfoCalls gets all the calls that were made to GetBridgeChipInfo. Check the length with:

len(mockedDevice.GetBridgeChipInfoCalls())

func (*Device) GetBusType

func (mock *Device) GetBusType() (nvml.BusType, nvml.Return)

GetBusType calls GetBusTypeFunc.

func (*Device) GetBusTypeCalls

func (mock *Device) GetBusTypeCalls() []struct {
}

GetBusTypeCalls gets all the calls that were made to GetBusType. Check the length with:

len(mockedDevice.GetBusTypeCalls())

func (*Device) GetClkMonStatus

func (mock *Device) GetClkMonStatus() (nvml.ClkMonStatus, nvml.Return)

GetClkMonStatus calls GetClkMonStatusFunc.

func (*Device) GetClkMonStatusCalls

func (mock *Device) GetClkMonStatusCalls() []struct {
}

GetClkMonStatusCalls gets all the calls that were made to GetClkMonStatus. Check the length with:

len(mockedDevice.GetClkMonStatusCalls())

func (*Device) GetClock

func (mock *Device) GetClock(clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return)

GetClock calls GetClockFunc.

func (*Device) GetClockCalls

func (mock *Device) GetClockCalls() []struct {
	ClockType nvml.ClockType
	ClockId   nvml.ClockId
}

GetClockCalls gets all the calls that were made to GetClock. Check the length with:

len(mockedDevice.GetClockCalls())

func (*Device) GetClockInfo

func (mock *Device) GetClockInfo(clockType nvml.ClockType) (uint32, nvml.Return)

GetClockInfo calls GetClockInfoFunc.

func (*Device) GetClockInfoCalls

func (mock *Device) GetClockInfoCalls() []struct {
	ClockType nvml.ClockType
}

GetClockInfoCalls gets all the calls that were made to GetClockInfo. Check the length with:

len(mockedDevice.GetClockInfoCalls())

func (*Device) GetComputeInstanceId

func (mock *Device) GetComputeInstanceId() (int, nvml.Return)

GetComputeInstanceId calls GetComputeInstanceIdFunc.

func (*Device) GetComputeInstanceIdCalls

func (mock *Device) GetComputeInstanceIdCalls() []struct {
}

GetComputeInstanceIdCalls gets all the calls that were made to GetComputeInstanceId. Check the length with:

len(mockedDevice.GetComputeInstanceIdCalls())

func (*Device) GetComputeMode

func (mock *Device) GetComputeMode() (nvml.ComputeMode, nvml.Return)

GetComputeMode calls GetComputeModeFunc.

func (*Device) GetComputeModeCalls

func (mock *Device) GetComputeModeCalls() []struct {
}

GetComputeModeCalls gets all the calls that were made to GetComputeMode. Check the length with:

len(mockedDevice.GetComputeModeCalls())

func (*Device) GetComputeRunningProcesses

func (mock *Device) GetComputeRunningProcesses() ([]nvml.ProcessInfo, nvml.Return)

GetComputeRunningProcesses calls GetComputeRunningProcessesFunc.

func (*Device) GetComputeRunningProcessesCalls

func (mock *Device) GetComputeRunningProcessesCalls() []struct {
}

GetComputeRunningProcessesCalls gets all the calls that were made to GetComputeRunningProcesses. Check the length with:

len(mockedDevice.GetComputeRunningProcessesCalls())

func (*Device) GetCpuAffinity

func (mock *Device) GetCpuAffinity(n int) ([]uint, nvml.Return)

GetCpuAffinity calls GetCpuAffinityFunc.

func (*Device) GetCpuAffinityCalls

func (mock *Device) GetCpuAffinityCalls() []struct {
	N int
}

GetCpuAffinityCalls gets all the calls that were made to GetCpuAffinity. Check the length with:

len(mockedDevice.GetCpuAffinityCalls())

func (*Device) GetCpuAffinityWithinScope

func (mock *Device) GetCpuAffinityWithinScope(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

GetCpuAffinityWithinScope calls GetCpuAffinityWithinScopeFunc.

func (*Device) GetCpuAffinityWithinScopeCalls

func (mock *Device) GetCpuAffinityWithinScopeCalls() []struct {
	N             int
	AffinityScope nvml.AffinityScope
}

GetCpuAffinityWithinScopeCalls gets all the calls that were made to GetCpuAffinityWithinScope. Check the length with:

len(mockedDevice.GetCpuAffinityWithinScopeCalls())

func (*Device) GetCreatableVgpus

func (mock *Device) GetCreatableVgpus() ([]nvml.VgpuTypeId, nvml.Return)

GetCreatableVgpus calls GetCreatableVgpusFunc.

func (*Device) GetCreatableVgpusCalls

func (mock *Device) GetCreatableVgpusCalls() []struct {
}

GetCreatableVgpusCalls gets all the calls that were made to GetCreatableVgpus. Check the length with:

len(mockedDevice.GetCreatableVgpusCalls())

func (*Device) GetCudaComputeCapability

func (mock *Device) GetCudaComputeCapability() (int, int, nvml.Return)

GetCudaComputeCapability calls GetCudaComputeCapabilityFunc.

func (*Device) GetCudaComputeCapabilityCalls

func (mock *Device) GetCudaComputeCapabilityCalls() []struct {
}

GetCudaComputeCapabilityCalls gets all the calls that were made to GetCudaComputeCapability. Check the length with:

len(mockedDevice.GetCudaComputeCapabilityCalls())

func (*Device) GetCurrPcieLinkGeneration

func (mock *Device) GetCurrPcieLinkGeneration() (int, nvml.Return)

GetCurrPcieLinkGeneration calls GetCurrPcieLinkGenerationFunc.

func (*Device) GetCurrPcieLinkGenerationCalls

func (mock *Device) GetCurrPcieLinkGenerationCalls() []struct {
}

GetCurrPcieLinkGenerationCalls gets all the calls that were made to GetCurrPcieLinkGeneration. Check the length with:

len(mockedDevice.GetCurrPcieLinkGenerationCalls())

func (*Device) GetCurrPcieLinkWidth

func (mock *Device) GetCurrPcieLinkWidth() (int, nvml.Return)

GetCurrPcieLinkWidth calls GetCurrPcieLinkWidthFunc.

func (*Device) GetCurrPcieLinkWidthCalls

func (mock *Device) GetCurrPcieLinkWidthCalls() []struct {
}

GetCurrPcieLinkWidthCalls gets all the calls that were made to GetCurrPcieLinkWidth. Check the length with:

len(mockedDevice.GetCurrPcieLinkWidthCalls())

func (*Device) GetCurrentClocksThrottleReasons

func (mock *Device) GetCurrentClocksThrottleReasons() (uint64, nvml.Return)

GetCurrentClocksThrottleReasons calls GetCurrentClocksThrottleReasonsFunc.

func (*Device) GetCurrentClocksThrottleReasonsCalls

func (mock *Device) GetCurrentClocksThrottleReasonsCalls() []struct {
}

GetCurrentClocksThrottleReasonsCalls gets all the calls that were made to GetCurrentClocksThrottleReasons. Check the length with:

len(mockedDevice.GetCurrentClocksThrottleReasonsCalls())

func (*Device) GetDecoderUtilization

func (mock *Device) GetDecoderUtilization() (uint32, uint32, nvml.Return)

GetDecoderUtilization calls GetDecoderUtilizationFunc.

func (*Device) GetDecoderUtilizationCalls

func (mock *Device) GetDecoderUtilizationCalls() []struct {
}

GetDecoderUtilizationCalls gets all the calls that were made to GetDecoderUtilization. Check the length with:

len(mockedDevice.GetDecoderUtilizationCalls())

func (*Device) GetDefaultApplicationsClock

func (mock *Device) GetDefaultApplicationsClock(clockType nvml.ClockType) (uint32, nvml.Return)

GetDefaultApplicationsClock calls GetDefaultApplicationsClockFunc.

func (*Device) GetDefaultApplicationsClockCalls

func (mock *Device) GetDefaultApplicationsClockCalls() []struct {
	ClockType nvml.ClockType
}

GetDefaultApplicationsClockCalls gets all the calls that were made to GetDefaultApplicationsClock. Check the length with:

len(mockedDevice.GetDefaultApplicationsClockCalls())

func (*Device) GetDefaultEccMode

func (mock *Device) GetDefaultEccMode() (nvml.EnableState, nvml.Return)

GetDefaultEccMode calls GetDefaultEccModeFunc.

func (*Device) GetDefaultEccModeCalls

func (mock *Device) GetDefaultEccModeCalls() []struct {
}

GetDefaultEccModeCalls gets all the calls that were made to GetDefaultEccMode. Check the length with:

len(mockedDevice.GetDefaultEccModeCalls())

func (*Device) GetDetailedEccErrors

func (mock *Device) GetDetailedEccErrors(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (nvml.EccErrorCounts, nvml.Return)

GetDetailedEccErrors calls GetDetailedEccErrorsFunc.

func (*Device) GetDetailedEccErrorsCalls

func (mock *Device) GetDetailedEccErrorsCalls() []struct {
	MemoryErrorType nvml.MemoryErrorType
	EccCounterType  nvml.EccCounterType
}

GetDetailedEccErrorsCalls gets all the calls that were made to GetDetailedEccErrors. Check the length with:

len(mockedDevice.GetDetailedEccErrorsCalls())

func (*Device) GetDeviceHandleFromMigDeviceHandle

func (mock *Device) GetDeviceHandleFromMigDeviceHandle() (nvml.Device, nvml.Return)

GetDeviceHandleFromMigDeviceHandle calls GetDeviceHandleFromMigDeviceHandleFunc.

func (*Device) GetDeviceHandleFromMigDeviceHandleCalls

func (mock *Device) GetDeviceHandleFromMigDeviceHandleCalls() []struct {
}

GetDeviceHandleFromMigDeviceHandleCalls gets all the calls that were made to GetDeviceHandleFromMigDeviceHandle. Check the length with:

len(mockedDevice.GetDeviceHandleFromMigDeviceHandleCalls())

func (*Device) GetDisplayActive

func (mock *Device) GetDisplayActive() (nvml.EnableState, nvml.Return)

GetDisplayActive calls GetDisplayActiveFunc.

func (*Device) GetDisplayActiveCalls

func (mock *Device) GetDisplayActiveCalls() []struct {
}

GetDisplayActiveCalls gets all the calls that were made to GetDisplayActive. Check the length with:

len(mockedDevice.GetDisplayActiveCalls())

func (*Device) GetDisplayMode

func (mock *Device) GetDisplayMode() (nvml.EnableState, nvml.Return)

GetDisplayMode calls GetDisplayModeFunc.

func (*Device) GetDisplayModeCalls

func (mock *Device) GetDisplayModeCalls() []struct {
}

GetDisplayModeCalls gets all the calls that were made to GetDisplayMode. Check the length with:

len(mockedDevice.GetDisplayModeCalls())

func (*Device) GetDriverModel

func (mock *Device) GetDriverModel() (nvml.DriverModel, nvml.DriverModel, nvml.Return)

GetDriverModel calls GetDriverModelFunc.

func (*Device) GetDriverModelCalls

func (mock *Device) GetDriverModelCalls() []struct {
}

GetDriverModelCalls gets all the calls that were made to GetDriverModel. Check the length with:

len(mockedDevice.GetDriverModelCalls())

func (*Device) GetDynamicPstatesInfo

func (mock *Device) GetDynamicPstatesInfo() (nvml.GpuDynamicPstatesInfo, nvml.Return)

GetDynamicPstatesInfo calls GetDynamicPstatesInfoFunc.

func (*Device) GetDynamicPstatesInfoCalls

func (mock *Device) GetDynamicPstatesInfoCalls() []struct {
}

GetDynamicPstatesInfoCalls gets all the calls that were made to GetDynamicPstatesInfo. Check the length with:

len(mockedDevice.GetDynamicPstatesInfoCalls())

func (*Device) GetEccMode

func (mock *Device) GetEccMode() (nvml.EnableState, nvml.EnableState, nvml.Return)

GetEccMode calls GetEccModeFunc.

func (*Device) GetEccModeCalls

func (mock *Device) GetEccModeCalls() []struct {
}

GetEccModeCalls gets all the calls that were made to GetEccMode. Check the length with:

len(mockedDevice.GetEccModeCalls())

func (*Device) GetEncoderCapacity

func (mock *Device) GetEncoderCapacity(encoderType nvml.EncoderType) (int, nvml.Return)

GetEncoderCapacity calls GetEncoderCapacityFunc.

func (*Device) GetEncoderCapacityCalls

func (mock *Device) GetEncoderCapacityCalls() []struct {
	EncoderType nvml.EncoderType
}

GetEncoderCapacityCalls gets all the calls that were made to GetEncoderCapacity. Check the length with:

len(mockedDevice.GetEncoderCapacityCalls())

func (*Device) GetEncoderSessions

func (mock *Device) GetEncoderSessions() ([]nvml.EncoderSessionInfo, nvml.Return)

GetEncoderSessions calls GetEncoderSessionsFunc.

func (*Device) GetEncoderSessionsCalls

func (mock *Device) GetEncoderSessionsCalls() []struct {
}

GetEncoderSessionsCalls gets all the calls that were made to GetEncoderSessions. Check the length with:

len(mockedDevice.GetEncoderSessionsCalls())

func (*Device) GetEncoderStats

func (mock *Device) GetEncoderStats() (int, uint32, uint32, nvml.Return)

GetEncoderStats calls GetEncoderStatsFunc.

func (*Device) GetEncoderStatsCalls

func (mock *Device) GetEncoderStatsCalls() []struct {
}

GetEncoderStatsCalls gets all the calls that were made to GetEncoderStats. Check the length with:

len(mockedDevice.GetEncoderStatsCalls())

func (*Device) GetEncoderUtilization

func (mock *Device) GetEncoderUtilization() (uint32, uint32, nvml.Return)

GetEncoderUtilization calls GetEncoderUtilizationFunc.

func (*Device) GetEncoderUtilizationCalls

func (mock *Device) GetEncoderUtilizationCalls() []struct {
}

GetEncoderUtilizationCalls gets all the calls that were made to GetEncoderUtilization. Check the length with:

len(mockedDevice.GetEncoderUtilizationCalls())

func (*Device) GetEnforcedPowerLimit

func (mock *Device) GetEnforcedPowerLimit() (uint32, nvml.Return)

GetEnforcedPowerLimit calls GetEnforcedPowerLimitFunc.

func (*Device) GetEnforcedPowerLimitCalls

func (mock *Device) GetEnforcedPowerLimitCalls() []struct {
}

GetEnforcedPowerLimitCalls gets all the calls that were made to GetEnforcedPowerLimit. Check the length with:

len(mockedDevice.GetEnforcedPowerLimitCalls())

func (*Device) GetFBCSessions

func (mock *Device) GetFBCSessions() ([]nvml.FBCSessionInfo, nvml.Return)

GetFBCSessions calls GetFBCSessionsFunc.

func (*Device) GetFBCSessionsCalls

func (mock *Device) GetFBCSessionsCalls() []struct {
}

GetFBCSessionsCalls gets all the calls that were made to GetFBCSessions. Check the length with:

len(mockedDevice.GetFBCSessionsCalls())

func (*Device) GetFBCStats

func (mock *Device) GetFBCStats() (nvml.FBCStats, nvml.Return)

GetFBCStats calls GetFBCStatsFunc.

func (*Device) GetFBCStatsCalls

func (mock *Device) GetFBCStatsCalls() []struct {
}

GetFBCStatsCalls gets all the calls that were made to GetFBCStats. Check the length with:

len(mockedDevice.GetFBCStatsCalls())

func (*Device) GetFanControlPolicy_v2

func (mock *Device) GetFanControlPolicy_v2(n int) (nvml.FanControlPolicy, nvml.Return)

GetFanControlPolicy_v2 calls GetFanControlPolicy_v2Func.

func (*Device) GetFanControlPolicy_v2Calls

func (mock *Device) GetFanControlPolicy_v2Calls() []struct {
	N int
}

GetFanControlPolicy_v2Calls gets all the calls that were made to GetFanControlPolicy_v2. Check the length with:

len(mockedDevice.GetFanControlPolicy_v2Calls())

func (*Device) GetFanSpeed

func (mock *Device) GetFanSpeed() (uint32, nvml.Return)

GetFanSpeed calls GetFanSpeedFunc.

func (*Device) GetFanSpeedCalls

func (mock *Device) GetFanSpeedCalls() []struct {
}

GetFanSpeedCalls gets all the calls that were made to GetFanSpeed. Check the length with:

len(mockedDevice.GetFanSpeedCalls())

func (*Device) GetFanSpeed_v2

func (mock *Device) GetFanSpeed_v2(n int) (uint32, nvml.Return)

GetFanSpeed_v2 calls GetFanSpeed_v2Func.

func (*Device) GetFanSpeed_v2Calls

func (mock *Device) GetFanSpeed_v2Calls() []struct {
	N int
}

GetFanSpeed_v2Calls gets all the calls that were made to GetFanSpeed_v2. Check the length with:

len(mockedDevice.GetFanSpeed_v2Calls())

func (*Device) GetFieldValues

func (mock *Device) GetFieldValues(fieldValues []nvml.FieldValue) nvml.Return

GetFieldValues calls GetFieldValuesFunc.

func (*Device) GetFieldValuesCalls

func (mock *Device) GetFieldValuesCalls() []struct {
	FieldValues []nvml.FieldValue
}

GetFieldValuesCalls gets all the calls that were made to GetFieldValues. Check the length with:

len(mockedDevice.GetFieldValuesCalls())

func (*Device) GetGpcClkMinMaxVfOffset

func (mock *Device) GetGpcClkMinMaxVfOffset() (int, int, nvml.Return)

GetGpcClkMinMaxVfOffset calls GetGpcClkMinMaxVfOffsetFunc.

func (*Device) GetGpcClkMinMaxVfOffsetCalls

func (mock *Device) GetGpcClkMinMaxVfOffsetCalls() []struct {
}

GetGpcClkMinMaxVfOffsetCalls gets all the calls that were made to GetGpcClkMinMaxVfOffset. Check the length with:

len(mockedDevice.GetGpcClkMinMaxVfOffsetCalls())

func (*Device) GetGpcClkVfOffset

func (mock *Device) GetGpcClkVfOffset() (int, nvml.Return)

GetGpcClkVfOffset calls GetGpcClkVfOffsetFunc.

func (*Device) GetGpcClkVfOffsetCalls

func (mock *Device) GetGpcClkVfOffsetCalls() []struct {
}

GetGpcClkVfOffsetCalls gets all the calls that were made to GetGpcClkVfOffset. Check the length with:

len(mockedDevice.GetGpcClkVfOffsetCalls())

func (*Device) GetGpuFabricInfo

func (mock *Device) GetGpuFabricInfo() (nvml.GpuFabricInfo, nvml.Return)

GetGpuFabricInfo calls GetGpuFabricInfoFunc.

func (*Device) GetGpuFabricInfoCalls

func (mock *Device) GetGpuFabricInfoCalls() []struct {
}

GetGpuFabricInfoCalls gets all the calls that were made to GetGpuFabricInfo. Check the length with:

len(mockedDevice.GetGpuFabricInfoCalls())

func (*Device) GetGpuInstanceById

func (mock *Device) GetGpuInstanceById(n int) (nvml.GpuInstance, nvml.Return)

GetGpuInstanceById calls GetGpuInstanceByIdFunc.

func (*Device) GetGpuInstanceByIdCalls

func (mock *Device) GetGpuInstanceByIdCalls() []struct {
	N int
}

GetGpuInstanceByIdCalls gets all the calls that were made to GetGpuInstanceById. Check the length with:

len(mockedDevice.GetGpuInstanceByIdCalls())

func (*Device) GetGpuInstanceId

func (mock *Device) GetGpuInstanceId() (int, nvml.Return)

GetGpuInstanceId calls GetGpuInstanceIdFunc.

func (*Device) GetGpuInstanceIdCalls

func (mock *Device) GetGpuInstanceIdCalls() []struct {
}

GetGpuInstanceIdCalls gets all the calls that were made to GetGpuInstanceId. Check the length with:

len(mockedDevice.GetGpuInstanceIdCalls())

func (*Device) GetGpuInstancePossiblePlacements

func (mock *Device) GetGpuInstancePossiblePlacements(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return)

GetGpuInstancePossiblePlacements calls GetGpuInstancePossiblePlacementsFunc.

func (*Device) GetGpuInstancePossiblePlacementsCalls

func (mock *Device) GetGpuInstancePossiblePlacementsCalls() []struct {
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

GetGpuInstancePossiblePlacementsCalls gets all the calls that were made to GetGpuInstancePossiblePlacements. Check the length with:

len(mockedDevice.GetGpuInstancePossiblePlacementsCalls())

func (*Device) GetGpuInstanceProfileInfo

func (mock *Device) GetGpuInstanceProfileInfo(n int) (nvml.GpuInstanceProfileInfo, nvml.Return)

GetGpuInstanceProfileInfo calls GetGpuInstanceProfileInfoFunc.

func (*Device) GetGpuInstanceProfileInfoCalls

func (mock *Device) GetGpuInstanceProfileInfoCalls() []struct {
	N int
}

GetGpuInstanceProfileInfoCalls gets all the calls that were made to GetGpuInstanceProfileInfo. Check the length with:

len(mockedDevice.GetGpuInstanceProfileInfoCalls())

func (*Device) GetGpuInstanceProfileInfoV

func (mock *Device) GetGpuInstanceProfileInfoV(n int) nvml.GpuInstanceProfileInfoV

GetGpuInstanceProfileInfoV calls GetGpuInstanceProfileInfoVFunc.

func (*Device) GetGpuInstanceProfileInfoVCalls

func (mock *Device) GetGpuInstanceProfileInfoVCalls() []struct {
	N int
}

GetGpuInstanceProfileInfoVCalls gets all the calls that were made to GetGpuInstanceProfileInfoV. Check the length with:

len(mockedDevice.GetGpuInstanceProfileInfoVCalls())

func (*Device) GetGpuInstanceRemainingCapacity

func (mock *Device) GetGpuInstanceRemainingCapacity(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return)

GetGpuInstanceRemainingCapacity calls GetGpuInstanceRemainingCapacityFunc.

func (*Device) GetGpuInstanceRemainingCapacityCalls

func (mock *Device) GetGpuInstanceRemainingCapacityCalls() []struct {
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

GetGpuInstanceRemainingCapacityCalls gets all the calls that were made to GetGpuInstanceRemainingCapacity. Check the length with:

len(mockedDevice.GetGpuInstanceRemainingCapacityCalls())

func (*Device) GetGpuInstances

func (mock *Device) GetGpuInstances(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return)

GetGpuInstances calls GetGpuInstancesFunc.

func (*Device) GetGpuInstancesCalls

func (mock *Device) GetGpuInstancesCalls() []struct {
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

GetGpuInstancesCalls gets all the calls that were made to GetGpuInstances. Check the length with:

len(mockedDevice.GetGpuInstancesCalls())

func (*Device) GetGpuMaxPcieLinkGeneration

func (mock *Device) GetGpuMaxPcieLinkGeneration() (int, nvml.Return)

GetGpuMaxPcieLinkGeneration calls GetGpuMaxPcieLinkGenerationFunc.

func (*Device) GetGpuMaxPcieLinkGenerationCalls

func (mock *Device) GetGpuMaxPcieLinkGenerationCalls() []struct {
}

GetGpuMaxPcieLinkGenerationCalls gets all the calls that were made to GetGpuMaxPcieLinkGeneration. Check the length with:

len(mockedDevice.GetGpuMaxPcieLinkGenerationCalls())

func (*Device) GetGpuOperationMode

func (mock *Device) GetGpuOperationMode() (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return)

GetGpuOperationMode calls GetGpuOperationModeFunc.

func (*Device) GetGpuOperationModeCalls

func (mock *Device) GetGpuOperationModeCalls() []struct {
}

GetGpuOperationModeCalls gets all the calls that were made to GetGpuOperationMode. Check the length with:

len(mockedDevice.GetGpuOperationModeCalls())

func (*Device) GetGraphicsRunningProcesses

func (mock *Device) GetGraphicsRunningProcesses() ([]nvml.ProcessInfo, nvml.Return)

GetGraphicsRunningProcesses calls GetGraphicsRunningProcessesFunc.

func (*Device) GetGraphicsRunningProcessesCalls

func (mock *Device) GetGraphicsRunningProcessesCalls() []struct {
}

GetGraphicsRunningProcessesCalls gets all the calls that were made to GetGraphicsRunningProcesses. Check the length with:

len(mockedDevice.GetGraphicsRunningProcessesCalls())

func (*Device) GetGridLicensableFeatures

func (mock *Device) GetGridLicensableFeatures() (nvml.GridLicensableFeatures, nvml.Return)

GetGridLicensableFeatures calls GetGridLicensableFeaturesFunc.

func (*Device) GetGridLicensableFeaturesCalls

func (mock *Device) GetGridLicensableFeaturesCalls() []struct {
}

GetGridLicensableFeaturesCalls gets all the calls that were made to GetGridLicensableFeatures. Check the length with:

len(mockedDevice.GetGridLicensableFeaturesCalls())

func (*Device) GetGspFirmwareMode

func (mock *Device) GetGspFirmwareMode() (bool, bool, nvml.Return)

GetGspFirmwareMode calls GetGspFirmwareModeFunc.

func (*Device) GetGspFirmwareModeCalls

func (mock *Device) GetGspFirmwareModeCalls() []struct {
}

GetGspFirmwareModeCalls gets all the calls that were made to GetGspFirmwareMode. Check the length with:

len(mockedDevice.GetGspFirmwareModeCalls())

func (*Device) GetGspFirmwareVersion

func (mock *Device) GetGspFirmwareVersion() (string, nvml.Return)

GetGspFirmwareVersion calls GetGspFirmwareVersionFunc.

func (*Device) GetGspFirmwareVersionCalls

func (mock *Device) GetGspFirmwareVersionCalls() []struct {
}

GetGspFirmwareVersionCalls gets all the calls that were made to GetGspFirmwareVersion. Check the length with:

len(mockedDevice.GetGspFirmwareVersionCalls())

func (*Device) GetHostVgpuMode

func (mock *Device) GetHostVgpuMode() (nvml.HostVgpuMode, nvml.Return)

GetHostVgpuMode calls GetHostVgpuModeFunc.

func (*Device) GetHostVgpuModeCalls

func (mock *Device) GetHostVgpuModeCalls() []struct {
}

GetHostVgpuModeCalls gets all the calls that were made to GetHostVgpuMode. Check the length with:

len(mockedDevice.GetHostVgpuModeCalls())

func (*Device) GetIndex

func (mock *Device) GetIndex() (int, nvml.Return)

GetIndex calls GetIndexFunc.

func (*Device) GetIndexCalls

func (mock *Device) GetIndexCalls() []struct {
}

GetIndexCalls gets all the calls that were made to GetIndex. Check the length with:

len(mockedDevice.GetIndexCalls())

func (*Device) GetInforomConfigurationChecksum

func (mock *Device) GetInforomConfigurationChecksum() (uint32, nvml.Return)

GetInforomConfigurationChecksum calls GetInforomConfigurationChecksumFunc.

func (*Device) GetInforomConfigurationChecksumCalls

func (mock *Device) GetInforomConfigurationChecksumCalls() []struct {
}

GetInforomConfigurationChecksumCalls gets all the calls that were made to GetInforomConfigurationChecksum. Check the length with:

len(mockedDevice.GetInforomConfigurationChecksumCalls())

func (*Device) GetInforomImageVersion

func (mock *Device) GetInforomImageVersion() (string, nvml.Return)

GetInforomImageVersion calls GetInforomImageVersionFunc.

func (*Device) GetInforomImageVersionCalls

func (mock *Device) GetInforomImageVersionCalls() []struct {
}

GetInforomImageVersionCalls gets all the calls that were made to GetInforomImageVersion. Check the length with:

len(mockedDevice.GetInforomImageVersionCalls())

func (*Device) GetInforomVersion

func (mock *Device) GetInforomVersion(inforomObject nvml.InforomObject) (string, nvml.Return)

GetInforomVersion calls GetInforomVersionFunc.

func (*Device) GetInforomVersionCalls

func (mock *Device) GetInforomVersionCalls() []struct {
	InforomObject nvml.InforomObject
}

GetInforomVersionCalls gets all the calls that were made to GetInforomVersion. Check the length with:

len(mockedDevice.GetInforomVersionCalls())

func (*Device) GetIrqNum

func (mock *Device) GetIrqNum() (int, nvml.Return)

GetIrqNum calls GetIrqNumFunc.

func (*Device) GetIrqNumCalls

func (mock *Device) GetIrqNumCalls() []struct {
}

GetIrqNumCalls gets all the calls that were made to GetIrqNum. Check the length with:

len(mockedDevice.GetIrqNumCalls())

func (*Device) GetMPSComputeRunningProcesses

func (mock *Device) GetMPSComputeRunningProcesses() ([]nvml.ProcessInfo, nvml.Return)

GetMPSComputeRunningProcesses calls GetMPSComputeRunningProcessesFunc.

func (*Device) GetMPSComputeRunningProcessesCalls

func (mock *Device) GetMPSComputeRunningProcessesCalls() []struct {
}

GetMPSComputeRunningProcessesCalls gets all the calls that were made to GetMPSComputeRunningProcesses. Check the length with:

len(mockedDevice.GetMPSComputeRunningProcessesCalls())

func (*Device) GetMaxClockInfo

func (mock *Device) GetMaxClockInfo(clockType nvml.ClockType) (uint32, nvml.Return)

GetMaxClockInfo calls GetMaxClockInfoFunc.

func (*Device) GetMaxClockInfoCalls

func (mock *Device) GetMaxClockInfoCalls() []struct {
	ClockType nvml.ClockType
}

GetMaxClockInfoCalls gets all the calls that were made to GetMaxClockInfo. Check the length with:

len(mockedDevice.GetMaxClockInfoCalls())

func (*Device) GetMaxCustomerBoostClock

func (mock *Device) GetMaxCustomerBoostClock(clockType nvml.ClockType) (uint32, nvml.Return)

GetMaxCustomerBoostClock calls GetMaxCustomerBoostClockFunc.

func (*Device) GetMaxCustomerBoostClockCalls

func (mock *Device) GetMaxCustomerBoostClockCalls() []struct {
	ClockType nvml.ClockType
}

GetMaxCustomerBoostClockCalls gets all the calls that were made to GetMaxCustomerBoostClock. Check the length with:

len(mockedDevice.GetMaxCustomerBoostClockCalls())

func (*Device) GetMaxMigDeviceCount

func (mock *Device) GetMaxMigDeviceCount() (int, nvml.Return)

GetMaxMigDeviceCount calls GetMaxMigDeviceCountFunc.

func (*Device) GetMaxMigDeviceCountCalls

func (mock *Device) GetMaxMigDeviceCountCalls() []struct {
}

GetMaxMigDeviceCountCalls gets all the calls that were made to GetMaxMigDeviceCount. Check the length with:

len(mockedDevice.GetMaxMigDeviceCountCalls())

func (*Device) GetMaxPcieLinkGeneration

func (mock *Device) GetMaxPcieLinkGeneration() (int, nvml.Return)

GetMaxPcieLinkGeneration calls GetMaxPcieLinkGenerationFunc.

func (*Device) GetMaxPcieLinkGenerationCalls

func (mock *Device) GetMaxPcieLinkGenerationCalls() []struct {
}

GetMaxPcieLinkGenerationCalls gets all the calls that were made to GetMaxPcieLinkGeneration. Check the length with:

len(mockedDevice.GetMaxPcieLinkGenerationCalls())

func (*Device) GetMaxPcieLinkWidth

func (mock *Device) GetMaxPcieLinkWidth() (int, nvml.Return)

GetMaxPcieLinkWidth calls GetMaxPcieLinkWidthFunc.

func (*Device) GetMaxPcieLinkWidthCalls

func (mock *Device) GetMaxPcieLinkWidthCalls() []struct {
}

GetMaxPcieLinkWidthCalls gets all the calls that were made to GetMaxPcieLinkWidth. Check the length with:

len(mockedDevice.GetMaxPcieLinkWidthCalls())

func (*Device) GetMemClkMinMaxVfOffset

func (mock *Device) GetMemClkMinMaxVfOffset() (int, int, nvml.Return)

GetMemClkMinMaxVfOffset calls GetMemClkMinMaxVfOffsetFunc.

func (*Device) GetMemClkMinMaxVfOffsetCalls

func (mock *Device) GetMemClkMinMaxVfOffsetCalls() []struct {
}

GetMemClkMinMaxVfOffsetCalls gets all the calls that were made to GetMemClkMinMaxVfOffset. Check the length with:

len(mockedDevice.GetMemClkMinMaxVfOffsetCalls())

func (*Device) GetMemClkVfOffset

func (mock *Device) GetMemClkVfOffset() (int, nvml.Return)

GetMemClkVfOffset calls GetMemClkVfOffsetFunc.

func (*Device) GetMemClkVfOffsetCalls

func (mock *Device) GetMemClkVfOffsetCalls() []struct {
}

GetMemClkVfOffsetCalls gets all the calls that were made to GetMemClkVfOffset. Check the length with:

len(mockedDevice.GetMemClkVfOffsetCalls())

func (*Device) GetMemoryAffinity

func (mock *Device) GetMemoryAffinity(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

GetMemoryAffinity calls GetMemoryAffinityFunc.

func (*Device) GetMemoryAffinityCalls

func (mock *Device) GetMemoryAffinityCalls() []struct {
	N             int
	AffinityScope nvml.AffinityScope
}

GetMemoryAffinityCalls gets all the calls that were made to GetMemoryAffinity. Check the length with:

len(mockedDevice.GetMemoryAffinityCalls())

func (*Device) GetMemoryBusWidth

func (mock *Device) GetMemoryBusWidth() (uint32, nvml.Return)

GetMemoryBusWidth calls GetMemoryBusWidthFunc.

func (*Device) GetMemoryBusWidthCalls

func (mock *Device) GetMemoryBusWidthCalls() []struct {
}

GetMemoryBusWidthCalls gets all the calls that were made to GetMemoryBusWidth. Check the length with:

len(mockedDevice.GetMemoryBusWidthCalls())

func (*Device) GetMemoryErrorCounter

func (mock *Device) GetMemoryErrorCounter(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType, memoryLocation nvml.MemoryLocation) (uint64, nvml.Return)

GetMemoryErrorCounter calls GetMemoryErrorCounterFunc.

func (*Device) GetMemoryErrorCounterCalls

func (mock *Device) GetMemoryErrorCounterCalls() []struct {
	MemoryErrorType nvml.MemoryErrorType
	EccCounterType  nvml.EccCounterType
	MemoryLocation  nvml.MemoryLocation
}

GetMemoryErrorCounterCalls gets all the calls that were made to GetMemoryErrorCounter. Check the length with:

len(mockedDevice.GetMemoryErrorCounterCalls())

func (*Device) GetMemoryInfo

func (mock *Device) GetMemoryInfo() (nvml.Memory, nvml.Return)

GetMemoryInfo calls GetMemoryInfoFunc.

func (*Device) GetMemoryInfoCalls

func (mock *Device) GetMemoryInfoCalls() []struct {
}

GetMemoryInfoCalls gets all the calls that were made to GetMemoryInfo. Check the length with:

len(mockedDevice.GetMemoryInfoCalls())

func (*Device) GetMemoryInfo_v2

func (mock *Device) GetMemoryInfo_v2() (nvml.Memory_v2, nvml.Return)

GetMemoryInfo_v2 calls GetMemoryInfo_v2Func.

func (*Device) GetMemoryInfo_v2Calls

func (mock *Device) GetMemoryInfo_v2Calls() []struct {
}

GetMemoryInfo_v2Calls gets all the calls that were made to GetMemoryInfo_v2. Check the length with:

len(mockedDevice.GetMemoryInfo_v2Calls())

func (*Device) GetMigDeviceHandleByIndex

func (mock *Device) GetMigDeviceHandleByIndex(n int) (nvml.Device, nvml.Return)

GetMigDeviceHandleByIndex calls GetMigDeviceHandleByIndexFunc.

func (*Device) GetMigDeviceHandleByIndexCalls

func (mock *Device) GetMigDeviceHandleByIndexCalls() []struct {
	N int
}

GetMigDeviceHandleByIndexCalls gets all the calls that were made to GetMigDeviceHandleByIndex. Check the length with:

len(mockedDevice.GetMigDeviceHandleByIndexCalls())

func (*Device) GetMigMode

func (mock *Device) GetMigMode() (int, int, nvml.Return)

GetMigMode calls GetMigModeFunc.

func (*Device) GetMigModeCalls

func (mock *Device) GetMigModeCalls() []struct {
}

GetMigModeCalls gets all the calls that were made to GetMigMode. Check the length with:

len(mockedDevice.GetMigModeCalls())

func (*Device) GetMinMaxClockOfPState

func (mock *Device) GetMinMaxClockOfPState(clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return)

GetMinMaxClockOfPState calls GetMinMaxClockOfPStateFunc.

func (*Device) GetMinMaxClockOfPStateCalls

func (mock *Device) GetMinMaxClockOfPStateCalls() []struct {
	ClockType nvml.ClockType
	Pstates   nvml.Pstates
}

GetMinMaxClockOfPStateCalls gets all the calls that were made to GetMinMaxClockOfPState. Check the length with:

len(mockedDevice.GetMinMaxClockOfPStateCalls())

func (*Device) GetMinMaxFanSpeed

func (mock *Device) GetMinMaxFanSpeed() (int, int, nvml.Return)

GetMinMaxFanSpeed calls GetMinMaxFanSpeedFunc.

func (*Device) GetMinMaxFanSpeedCalls

func (mock *Device) GetMinMaxFanSpeedCalls() []struct {
}

GetMinMaxFanSpeedCalls gets all the calls that were made to GetMinMaxFanSpeed. Check the length with:

len(mockedDevice.GetMinMaxFanSpeedCalls())

func (*Device) GetMinorNumber

func (mock *Device) GetMinorNumber() (int, nvml.Return)

GetMinorNumber calls GetMinorNumberFunc.

func (*Device) GetMinorNumberCalls

func (mock *Device) GetMinorNumberCalls() []struct {
}

GetMinorNumberCalls gets all the calls that were made to GetMinorNumber. Check the length with:

len(mockedDevice.GetMinorNumberCalls())

func (*Device) GetMultiGpuBoard

func (mock *Device) GetMultiGpuBoard() (int, nvml.Return)

GetMultiGpuBoard calls GetMultiGpuBoardFunc.

func (*Device) GetMultiGpuBoardCalls

func (mock *Device) GetMultiGpuBoardCalls() []struct {
}

GetMultiGpuBoardCalls gets all the calls that were made to GetMultiGpuBoard. Check the length with:

len(mockedDevice.GetMultiGpuBoardCalls())

func (*Device) GetName

func (mock *Device) GetName() (string, nvml.Return)

GetName calls GetNameFunc.

func (*Device) GetNameCalls

func (mock *Device) GetNameCalls() []struct {
}

GetNameCalls gets all the calls that were made to GetName. Check the length with:

len(mockedDevice.GetNameCalls())

func (*Device) GetNumFans

func (mock *Device) GetNumFans() (int, nvml.Return)

GetNumFans calls GetNumFansFunc.

func (*Device) GetNumFansCalls

func (mock *Device) GetNumFansCalls() []struct {
}

GetNumFansCalls gets all the calls that were made to GetNumFans. Check the length with:

len(mockedDevice.GetNumFansCalls())

func (*Device) GetNumGpuCores

func (mock *Device) GetNumGpuCores() (int, nvml.Return)

GetNumGpuCores calls GetNumGpuCoresFunc.

func (*Device) GetNumGpuCoresCalls

func (mock *Device) GetNumGpuCoresCalls() []struct {
}

GetNumGpuCoresCalls gets all the calls that were made to GetNumGpuCores. Check the length with:

len(mockedDevice.GetNumGpuCoresCalls())

func (*Device) GetNvLinkCapability

func (mock *Device) GetNvLinkCapability(n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return)

GetNvLinkCapability calls GetNvLinkCapabilityFunc.

func (*Device) GetNvLinkCapabilityCalls

func (mock *Device) GetNvLinkCapabilityCalls() []struct {
	N                int
	NvLinkCapability nvml.NvLinkCapability
}

GetNvLinkCapabilityCalls gets all the calls that were made to GetNvLinkCapability. Check the length with:

len(mockedDevice.GetNvLinkCapabilityCalls())

func (*Device) GetNvLinkErrorCounter

func (mock *Device) GetNvLinkErrorCounter(n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return)

GetNvLinkErrorCounter calls GetNvLinkErrorCounterFunc.

func (*Device) GetNvLinkErrorCounterCalls

func (mock *Device) GetNvLinkErrorCounterCalls() []struct {
	N                  int
	NvLinkErrorCounter nvml.NvLinkErrorCounter
}

GetNvLinkErrorCounterCalls gets all the calls that were made to GetNvLinkErrorCounter. Check the length with:

len(mockedDevice.GetNvLinkErrorCounterCalls())

func (*Device) GetNvLinkRemoteDeviceType

func (mock *Device) GetNvLinkRemoteDeviceType(n int) (nvml.IntNvLinkDeviceType, nvml.Return)

GetNvLinkRemoteDeviceType calls GetNvLinkRemoteDeviceTypeFunc.

func (*Device) GetNvLinkRemoteDeviceTypeCalls

func (mock *Device) GetNvLinkRemoteDeviceTypeCalls() []struct {
	N int
}

GetNvLinkRemoteDeviceTypeCalls gets all the calls that were made to GetNvLinkRemoteDeviceType. Check the length with:

len(mockedDevice.GetNvLinkRemoteDeviceTypeCalls())

func (*Device) GetNvLinkRemotePciInfo

func (mock *Device) GetNvLinkRemotePciInfo(n int) (nvml.PciInfo, nvml.Return)

GetNvLinkRemotePciInfo calls GetNvLinkRemotePciInfoFunc.

func (*Device) GetNvLinkRemotePciInfoCalls

func (mock *Device) GetNvLinkRemotePciInfoCalls() []struct {
	N int
}

GetNvLinkRemotePciInfoCalls gets all the calls that were made to GetNvLinkRemotePciInfo. Check the length with:

len(mockedDevice.GetNvLinkRemotePciInfoCalls())

func (*Device) GetNvLinkState

func (mock *Device) GetNvLinkState(n int) (nvml.EnableState, nvml.Return)

GetNvLinkState calls GetNvLinkStateFunc.

func (*Device) GetNvLinkStateCalls

func (mock *Device) GetNvLinkStateCalls() []struct {
	N int
}

GetNvLinkStateCalls gets all the calls that were made to GetNvLinkState. Check the length with:

len(mockedDevice.GetNvLinkStateCalls())

func (*Device) GetNvLinkUtilizationControl

func (mock *Device) GetNvLinkUtilizationControl(n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return)

GetNvLinkUtilizationControl calls GetNvLinkUtilizationControlFunc.

func (*Device) GetNvLinkUtilizationControlCalls

func (mock *Device) GetNvLinkUtilizationControlCalls() []struct {
	N1 int
	N2 int
}

GetNvLinkUtilizationControlCalls gets all the calls that were made to GetNvLinkUtilizationControl. Check the length with:

len(mockedDevice.GetNvLinkUtilizationControlCalls())

func (*Device) GetNvLinkUtilizationCounter

func (mock *Device) GetNvLinkUtilizationCounter(n1 int, n2 int) (uint64, uint64, nvml.Return)

GetNvLinkUtilizationCounter calls GetNvLinkUtilizationCounterFunc.

func (*Device) GetNvLinkUtilizationCounterCalls

func (mock *Device) GetNvLinkUtilizationCounterCalls() []struct {
	N1 int
	N2 int
}

GetNvLinkUtilizationCounterCalls gets all the calls that were made to GetNvLinkUtilizationCounter. Check the length with:

len(mockedDevice.GetNvLinkUtilizationCounterCalls())

func (*Device) GetNvLinkVersion

func (mock *Device) GetNvLinkVersion(n int) (uint32, nvml.Return)

GetNvLinkVersion calls GetNvLinkVersionFunc.

func (*Device) GetNvLinkVersionCalls

func (mock *Device) GetNvLinkVersionCalls() []struct {
	N int
}

GetNvLinkVersionCalls gets all the calls that were made to GetNvLinkVersion. Check the length with:

len(mockedDevice.GetNvLinkVersionCalls())

func (*Device) GetP2PStatus

func (mock *Device) GetP2PStatus(device nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return)

GetP2PStatus calls GetP2PStatusFunc.

func (*Device) GetP2PStatusCalls

func (mock *Device) GetP2PStatusCalls() []struct {
	Device          nvml.Device
	GpuP2PCapsIndex nvml.GpuP2PCapsIndex
}

GetP2PStatusCalls gets all the calls that were made to GetP2PStatus. Check the length with:

len(mockedDevice.GetP2PStatusCalls())

func (*Device) GetPciInfo

func (mock *Device) GetPciInfo() (nvml.PciInfo, nvml.Return)

GetPciInfo calls GetPciInfoFunc.

func (*Device) GetPciInfoCalls

func (mock *Device) GetPciInfoCalls() []struct {
}

GetPciInfoCalls gets all the calls that were made to GetPciInfo. Check the length with:

len(mockedDevice.GetPciInfoCalls())

func (*Device) GetPcieLinkMaxSpeed

func (mock *Device) GetPcieLinkMaxSpeed() (uint32, nvml.Return)

GetPcieLinkMaxSpeed calls GetPcieLinkMaxSpeedFunc.

func (*Device) GetPcieLinkMaxSpeedCalls

func (mock *Device) GetPcieLinkMaxSpeedCalls() []struct {
}

GetPcieLinkMaxSpeedCalls gets all the calls that were made to GetPcieLinkMaxSpeed. Check the length with:

len(mockedDevice.GetPcieLinkMaxSpeedCalls())

func (*Device) GetPcieReplayCounter

func (mock *Device) GetPcieReplayCounter() (int, nvml.Return)

GetPcieReplayCounter calls GetPcieReplayCounterFunc.

func (*Device) GetPcieReplayCounterCalls

func (mock *Device) GetPcieReplayCounterCalls() []struct {
}

GetPcieReplayCounterCalls gets all the calls that were made to GetPcieReplayCounter. Check the length with:

len(mockedDevice.GetPcieReplayCounterCalls())

func (*Device) GetPcieSpeed

func (mock *Device) GetPcieSpeed() (int, nvml.Return)

GetPcieSpeed calls GetPcieSpeedFunc.

func (*Device) GetPcieSpeedCalls

func (mock *Device) GetPcieSpeedCalls() []struct {
}

GetPcieSpeedCalls gets all the calls that were made to GetPcieSpeed. Check the length with:

len(mockedDevice.GetPcieSpeedCalls())

func (*Device) GetPcieThroughput

func (mock *Device) GetPcieThroughput(pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return)

GetPcieThroughput calls GetPcieThroughputFunc.

func (*Device) GetPcieThroughputCalls

func (mock *Device) GetPcieThroughputCalls() []struct {
	PcieUtilCounter nvml.PcieUtilCounter
}

GetPcieThroughputCalls gets all the calls that were made to GetPcieThroughput. Check the length with:

len(mockedDevice.GetPcieThroughputCalls())

func (*Device) GetPerformanceState

func (mock *Device) GetPerformanceState() (nvml.Pstates, nvml.Return)

GetPerformanceState calls GetPerformanceStateFunc.

func (*Device) GetPerformanceStateCalls

func (mock *Device) GetPerformanceStateCalls() []struct {
}

GetPerformanceStateCalls gets all the calls that were made to GetPerformanceState. Check the length with:

len(mockedDevice.GetPerformanceStateCalls())

func (*Device) GetPersistenceMode

func (mock *Device) GetPersistenceMode() (nvml.EnableState, nvml.Return)

GetPersistenceMode calls GetPersistenceModeFunc.

func (*Device) GetPersistenceModeCalls

func (mock *Device) GetPersistenceModeCalls() []struct {
}

GetPersistenceModeCalls gets all the calls that were made to GetPersistenceMode. Check the length with:

len(mockedDevice.GetPersistenceModeCalls())

func (*Device) GetPgpuMetadataString

func (mock *Device) GetPgpuMetadataString() (string, nvml.Return)

GetPgpuMetadataString calls GetPgpuMetadataStringFunc.

func (*Device) GetPgpuMetadataStringCalls

func (mock *Device) GetPgpuMetadataStringCalls() []struct {
}

GetPgpuMetadataStringCalls gets all the calls that were made to GetPgpuMetadataString. Check the length with:

len(mockedDevice.GetPgpuMetadataStringCalls())

func (*Device) GetPowerManagementDefaultLimit

func (mock *Device) GetPowerManagementDefaultLimit() (uint32, nvml.Return)

GetPowerManagementDefaultLimit calls GetPowerManagementDefaultLimitFunc.

func (*Device) GetPowerManagementDefaultLimitCalls

func (mock *Device) GetPowerManagementDefaultLimitCalls() []struct {
}

GetPowerManagementDefaultLimitCalls gets all the calls that were made to GetPowerManagementDefaultLimit. Check the length with:

len(mockedDevice.GetPowerManagementDefaultLimitCalls())

func (*Device) GetPowerManagementLimit

func (mock *Device) GetPowerManagementLimit() (uint32, nvml.Return)

GetPowerManagementLimit calls GetPowerManagementLimitFunc.

func (*Device) GetPowerManagementLimitCalls

func (mock *Device) GetPowerManagementLimitCalls() []struct {
}

GetPowerManagementLimitCalls gets all the calls that were made to GetPowerManagementLimit. Check the length with:

len(mockedDevice.GetPowerManagementLimitCalls())

func (*Device) GetPowerManagementLimitConstraints

func (mock *Device) GetPowerManagementLimitConstraints() (uint32, uint32, nvml.Return)

GetPowerManagementLimitConstraints calls GetPowerManagementLimitConstraintsFunc.

func (*Device) GetPowerManagementLimitConstraintsCalls

func (mock *Device) GetPowerManagementLimitConstraintsCalls() []struct {
}

GetPowerManagementLimitConstraintsCalls gets all the calls that were made to GetPowerManagementLimitConstraints. Check the length with:

len(mockedDevice.GetPowerManagementLimitConstraintsCalls())

func (*Device) GetPowerManagementMode

func (mock *Device) GetPowerManagementMode() (nvml.EnableState, nvml.Return)

GetPowerManagementMode calls GetPowerManagementModeFunc.

func (*Device) GetPowerManagementModeCalls

func (mock *Device) GetPowerManagementModeCalls() []struct {
}

GetPowerManagementModeCalls gets all the calls that were made to GetPowerManagementMode. Check the length with:

len(mockedDevice.GetPowerManagementModeCalls())

func (*Device) GetPowerSource

func (mock *Device) GetPowerSource() (nvml.PowerSource, nvml.Return)

GetPowerSource calls GetPowerSourceFunc.

func (*Device) GetPowerSourceCalls

func (mock *Device) GetPowerSourceCalls() []struct {
}

GetPowerSourceCalls gets all the calls that were made to GetPowerSource. Check the length with:

len(mockedDevice.GetPowerSourceCalls())

func (*Device) GetPowerState

func (mock *Device) GetPowerState() (nvml.Pstates, nvml.Return)

GetPowerState calls GetPowerStateFunc.

func (*Device) GetPowerStateCalls

func (mock *Device) GetPowerStateCalls() []struct {
}

GetPowerStateCalls gets all the calls that were made to GetPowerState. Check the length with:

len(mockedDevice.GetPowerStateCalls())

func (*Device) GetPowerUsage

func (mock *Device) GetPowerUsage() (uint32, nvml.Return)

GetPowerUsage calls GetPowerUsageFunc.

func (*Device) GetPowerUsageCalls

func (mock *Device) GetPowerUsageCalls() []struct {
}

GetPowerUsageCalls gets all the calls that were made to GetPowerUsage. Check the length with:

len(mockedDevice.GetPowerUsageCalls())

func (*Device) GetProcessUtilization

func (mock *Device) GetProcessUtilization(v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return)

GetProcessUtilization calls GetProcessUtilizationFunc.

func (*Device) GetProcessUtilizationCalls

func (mock *Device) GetProcessUtilizationCalls() []struct {
	V uint64
}

GetProcessUtilizationCalls gets all the calls that were made to GetProcessUtilization. Check the length with:

len(mockedDevice.GetProcessUtilizationCalls())

func (*Device) GetRemappedRows

func (mock *Device) GetRemappedRows() (int, int, bool, bool, nvml.Return)

GetRemappedRows calls GetRemappedRowsFunc.

func (*Device) GetRemappedRowsCalls

func (mock *Device) GetRemappedRowsCalls() []struct {
}

GetRemappedRowsCalls gets all the calls that were made to GetRemappedRows. Check the length with:

len(mockedDevice.GetRemappedRowsCalls())

func (*Device) GetRetiredPages

func (mock *Device) GetRetiredPages(pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return)

GetRetiredPages calls GetRetiredPagesFunc.

func (*Device) GetRetiredPagesCalls

func (mock *Device) GetRetiredPagesCalls() []struct {
	PageRetirementCause nvml.PageRetirementCause
}

GetRetiredPagesCalls gets all the calls that were made to GetRetiredPages. Check the length with:

len(mockedDevice.GetRetiredPagesCalls())

func (*Device) GetRetiredPagesPendingStatus

func (mock *Device) GetRetiredPagesPendingStatus() (nvml.EnableState, nvml.Return)

GetRetiredPagesPendingStatus calls GetRetiredPagesPendingStatusFunc.

func (*Device) GetRetiredPagesPendingStatusCalls

func (mock *Device) GetRetiredPagesPendingStatusCalls() []struct {
}

GetRetiredPagesPendingStatusCalls gets all the calls that were made to GetRetiredPagesPendingStatus. Check the length with:

len(mockedDevice.GetRetiredPagesPendingStatusCalls())

func (*Device) GetRetiredPages_v2

func (mock *Device) GetRetiredPages_v2(pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return)

GetRetiredPages_v2 calls GetRetiredPages_v2Func.

func (*Device) GetRetiredPages_v2Calls

func (mock *Device) GetRetiredPages_v2Calls() []struct {
	PageRetirementCause nvml.PageRetirementCause
}

GetRetiredPages_v2Calls gets all the calls that were made to GetRetiredPages_v2. Check the length with:

len(mockedDevice.GetRetiredPages_v2Calls())

func (*Device) GetRowRemapperHistogram

func (mock *Device) GetRowRemapperHistogram() (nvml.RowRemapperHistogramValues, nvml.Return)

GetRowRemapperHistogram calls GetRowRemapperHistogramFunc.

func (*Device) GetRowRemapperHistogramCalls

func (mock *Device) GetRowRemapperHistogramCalls() []struct {
}

GetRowRemapperHistogramCalls gets all the calls that were made to GetRowRemapperHistogram. Check the length with:

len(mockedDevice.GetRowRemapperHistogramCalls())

func (*Device) GetSamples

func (mock *Device) GetSamples(samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return)

GetSamples calls GetSamplesFunc.

func (*Device) GetSamplesCalls

func (mock *Device) GetSamplesCalls() []struct {
	SamplingType nvml.SamplingType
	V            uint64
}

GetSamplesCalls gets all the calls that were made to GetSamples. Check the length with:

len(mockedDevice.GetSamplesCalls())

func (*Device) GetSerial

func (mock *Device) GetSerial() (string, nvml.Return)

GetSerial calls GetSerialFunc.

func (*Device) GetSerialCalls

func (mock *Device) GetSerialCalls() []struct {
}

GetSerialCalls gets all the calls that were made to GetSerial. Check the length with:

len(mockedDevice.GetSerialCalls())

func (*Device) GetSupportedClocksThrottleReasons

func (mock *Device) GetSupportedClocksThrottleReasons() (uint64, nvml.Return)

GetSupportedClocksThrottleReasons calls GetSupportedClocksThrottleReasonsFunc.

func (*Device) GetSupportedClocksThrottleReasonsCalls

func (mock *Device) GetSupportedClocksThrottleReasonsCalls() []struct {
}

GetSupportedClocksThrottleReasonsCalls gets all the calls that were made to GetSupportedClocksThrottleReasons. Check the length with:

len(mockedDevice.GetSupportedClocksThrottleReasonsCalls())

func (*Device) GetSupportedEventTypes

func (mock *Device) GetSupportedEventTypes() (uint64, nvml.Return)

GetSupportedEventTypes calls GetSupportedEventTypesFunc.

func (*Device) GetSupportedEventTypesCalls

func (mock *Device) GetSupportedEventTypesCalls() []struct {
}

GetSupportedEventTypesCalls gets all the calls that were made to GetSupportedEventTypes. Check the length with:

len(mockedDevice.GetSupportedEventTypesCalls())

func (*Device) GetSupportedGraphicsClocks

func (mock *Device) GetSupportedGraphicsClocks(n int) (int, uint32, nvml.Return)

GetSupportedGraphicsClocks calls GetSupportedGraphicsClocksFunc.

func (*Device) GetSupportedGraphicsClocksCalls

func (mock *Device) GetSupportedGraphicsClocksCalls() []struct {
	N int
}

GetSupportedGraphicsClocksCalls gets all the calls that were made to GetSupportedGraphicsClocks. Check the length with:

len(mockedDevice.GetSupportedGraphicsClocksCalls())

func (*Device) GetSupportedMemoryClocks

func (mock *Device) GetSupportedMemoryClocks() (int, uint32, nvml.Return)

GetSupportedMemoryClocks calls GetSupportedMemoryClocksFunc.

func (*Device) GetSupportedMemoryClocksCalls

func (mock *Device) GetSupportedMemoryClocksCalls() []struct {
}

GetSupportedMemoryClocksCalls gets all the calls that were made to GetSupportedMemoryClocks. Check the length with:

len(mockedDevice.GetSupportedMemoryClocksCalls())

func (*Device) GetSupportedPerformanceStates

func (mock *Device) GetSupportedPerformanceStates() ([]nvml.Pstates, nvml.Return)

GetSupportedPerformanceStates calls GetSupportedPerformanceStatesFunc.

func (*Device) GetSupportedPerformanceStatesCalls

func (mock *Device) GetSupportedPerformanceStatesCalls() []struct {
}

GetSupportedPerformanceStatesCalls gets all the calls that were made to GetSupportedPerformanceStates. Check the length with:

len(mockedDevice.GetSupportedPerformanceStatesCalls())

func (*Device) GetSupportedVgpus

func (mock *Device) GetSupportedVgpus() ([]nvml.VgpuTypeId, nvml.Return)

GetSupportedVgpus calls GetSupportedVgpusFunc.

func (*Device) GetSupportedVgpusCalls

func (mock *Device) GetSupportedVgpusCalls() []struct {
}

GetSupportedVgpusCalls gets all the calls that were made to GetSupportedVgpus. Check the length with:

len(mockedDevice.GetSupportedVgpusCalls())

func (*Device) GetTargetFanSpeed

func (mock *Device) GetTargetFanSpeed(n int) (int, nvml.Return)

GetTargetFanSpeed calls GetTargetFanSpeedFunc.

func (*Device) GetTargetFanSpeedCalls

func (mock *Device) GetTargetFanSpeedCalls() []struct {
	N int
}

GetTargetFanSpeedCalls gets all the calls that were made to GetTargetFanSpeed. Check the length with:

len(mockedDevice.GetTargetFanSpeedCalls())

func (*Device) GetTemperature

func (mock *Device) GetTemperature(temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return)

GetTemperature calls GetTemperatureFunc.

func (*Device) GetTemperatureCalls

func (mock *Device) GetTemperatureCalls() []struct {
	TemperatureSensors nvml.TemperatureSensors
}

GetTemperatureCalls gets all the calls that were made to GetTemperature. Check the length with:

len(mockedDevice.GetTemperatureCalls())

func (*Device) GetTemperatureThreshold

func (mock *Device) GetTemperatureThreshold(temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return)

GetTemperatureThreshold calls GetTemperatureThresholdFunc.

func (*Device) GetTemperatureThresholdCalls

func (mock *Device) GetTemperatureThresholdCalls() []struct {
	TemperatureThresholds nvml.TemperatureThresholds
}

GetTemperatureThresholdCalls gets all the calls that were made to GetTemperatureThreshold. Check the length with:

len(mockedDevice.GetTemperatureThresholdCalls())

func (*Device) GetThermalSettings

func (mock *Device) GetThermalSettings(v uint32) (nvml.GpuThermalSettings, nvml.Return)

GetThermalSettings calls GetThermalSettingsFunc.

func (*Device) GetThermalSettingsCalls

func (mock *Device) GetThermalSettingsCalls() []struct {
	V uint32
}

GetThermalSettingsCalls gets all the calls that were made to GetThermalSettings. Check the length with:

len(mockedDevice.GetThermalSettingsCalls())

func (*Device) GetTopologyCommonAncestor

func (mock *Device) GetTopologyCommonAncestor(device nvml.Device) (nvml.GpuTopologyLevel, nvml.Return)

GetTopologyCommonAncestor calls GetTopologyCommonAncestorFunc.

func (*Device) GetTopologyCommonAncestorCalls

func (mock *Device) GetTopologyCommonAncestorCalls() []struct {
	Device nvml.Device
}

GetTopologyCommonAncestorCalls gets all the calls that were made to GetTopologyCommonAncestor. Check the length with:

len(mockedDevice.GetTopologyCommonAncestorCalls())

func (*Device) GetTopologyNearestGpus

func (mock *Device) GetTopologyNearestGpus(gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return)

GetTopologyNearestGpus calls GetTopologyNearestGpusFunc.

func (*Device) GetTopologyNearestGpusCalls

func (mock *Device) GetTopologyNearestGpusCalls() []struct {
	GpuTopologyLevel nvml.GpuTopologyLevel
}

GetTopologyNearestGpusCalls gets all the calls that were made to GetTopologyNearestGpus. Check the length with:

len(mockedDevice.GetTopologyNearestGpusCalls())

func (*Device) GetTotalEccErrors

func (mock *Device) GetTotalEccErrors(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (uint64, nvml.Return)

GetTotalEccErrors calls GetTotalEccErrorsFunc.

func (*Device) GetTotalEccErrorsCalls

func (mock *Device) GetTotalEccErrorsCalls() []struct {
	MemoryErrorType nvml.MemoryErrorType
	EccCounterType  nvml.EccCounterType
}

GetTotalEccErrorsCalls gets all the calls that were made to GetTotalEccErrors. Check the length with:

len(mockedDevice.GetTotalEccErrorsCalls())

func (*Device) GetTotalEnergyConsumption

func (mock *Device) GetTotalEnergyConsumption() (uint64, nvml.Return)

GetTotalEnergyConsumption calls GetTotalEnergyConsumptionFunc.

func (*Device) GetTotalEnergyConsumptionCalls

func (mock *Device) GetTotalEnergyConsumptionCalls() []struct {
}

GetTotalEnergyConsumptionCalls gets all the calls that were made to GetTotalEnergyConsumption. Check the length with:

len(mockedDevice.GetTotalEnergyConsumptionCalls())

func (*Device) GetUUID

func (mock *Device) GetUUID() (string, nvml.Return)

GetUUID calls GetUUIDFunc.

func (*Device) GetUUIDCalls

func (mock *Device) GetUUIDCalls() []struct {
}

GetUUIDCalls gets all the calls that were made to GetUUID. Check the length with:

len(mockedDevice.GetUUIDCalls())

func (*Device) GetUtilizationRates

func (mock *Device) GetUtilizationRates() (nvml.Utilization, nvml.Return)

GetUtilizationRates calls GetUtilizationRatesFunc.

func (*Device) GetUtilizationRatesCalls

func (mock *Device) GetUtilizationRatesCalls() []struct {
}

GetUtilizationRatesCalls gets all the calls that were made to GetUtilizationRates. Check the length with:

len(mockedDevice.GetUtilizationRatesCalls())

func (*Device) GetVbiosVersion

func (mock *Device) GetVbiosVersion() (string, nvml.Return)

GetVbiosVersion calls GetVbiosVersionFunc.

func (*Device) GetVbiosVersionCalls

func (mock *Device) GetVbiosVersionCalls() []struct {
}

GetVbiosVersionCalls gets all the calls that were made to GetVbiosVersion. Check the length with:

len(mockedDevice.GetVbiosVersionCalls())

func (*Device) GetVgpuCapabilities

func (mock *Device) GetVgpuCapabilities(deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return)

GetVgpuCapabilities calls GetVgpuCapabilitiesFunc.

func (*Device) GetVgpuCapabilitiesCalls

func (mock *Device) GetVgpuCapabilitiesCalls() []struct {
	DeviceVgpuCapability nvml.DeviceVgpuCapability
}

GetVgpuCapabilitiesCalls gets all the calls that were made to GetVgpuCapabilities. Check the length with:

len(mockedDevice.GetVgpuCapabilitiesCalls())

func (*Device) GetVgpuMetadata

func (mock *Device) GetVgpuMetadata() (nvml.VgpuPgpuMetadata, nvml.Return)

GetVgpuMetadata calls GetVgpuMetadataFunc.

func (*Device) GetVgpuMetadataCalls

func (mock *Device) GetVgpuMetadataCalls() []struct {
}

GetVgpuMetadataCalls gets all the calls that were made to GetVgpuMetadata. Check the length with:

len(mockedDevice.GetVgpuMetadataCalls())

func (*Device) GetVgpuProcessUtilization

func (mock *Device) GetVgpuProcessUtilization(v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return)

GetVgpuProcessUtilization calls GetVgpuProcessUtilizationFunc.

func (*Device) GetVgpuProcessUtilizationCalls

func (mock *Device) GetVgpuProcessUtilizationCalls() []struct {
	V uint64
}

GetVgpuProcessUtilizationCalls gets all the calls that were made to GetVgpuProcessUtilization. Check the length with:

len(mockedDevice.GetVgpuProcessUtilizationCalls())

func (*Device) GetVgpuSchedulerCapabilities

func (mock *Device) GetVgpuSchedulerCapabilities() (nvml.VgpuSchedulerCapabilities, nvml.Return)

GetVgpuSchedulerCapabilities calls GetVgpuSchedulerCapabilitiesFunc.

func (*Device) GetVgpuSchedulerCapabilitiesCalls

func (mock *Device) GetVgpuSchedulerCapabilitiesCalls() []struct {
}

GetVgpuSchedulerCapabilitiesCalls gets all the calls that were made to GetVgpuSchedulerCapabilities. Check the length with:

len(mockedDevice.GetVgpuSchedulerCapabilitiesCalls())

func (*Device) GetVgpuSchedulerLog

func (mock *Device) GetVgpuSchedulerLog() (nvml.VgpuSchedulerLog, nvml.Return)

GetVgpuSchedulerLog calls GetVgpuSchedulerLogFunc.

func (*Device) GetVgpuSchedulerLogCalls

func (mock *Device) GetVgpuSchedulerLogCalls() []struct {
}

GetVgpuSchedulerLogCalls gets all the calls that were made to GetVgpuSchedulerLog. Check the length with:

len(mockedDevice.GetVgpuSchedulerLogCalls())

func (*Device) GetVgpuSchedulerState

func (mock *Device) GetVgpuSchedulerState() (nvml.VgpuSchedulerGetState, nvml.Return)

GetVgpuSchedulerState calls GetVgpuSchedulerStateFunc.

func (*Device) GetVgpuSchedulerStateCalls

func (mock *Device) GetVgpuSchedulerStateCalls() []struct {
}

GetVgpuSchedulerStateCalls gets all the calls that were made to GetVgpuSchedulerState. Check the length with:

len(mockedDevice.GetVgpuSchedulerStateCalls())

func (*Device) GetVgpuUtilization

func (mock *Device) GetVgpuUtilization(v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)

GetVgpuUtilization calls GetVgpuUtilizationFunc.

func (*Device) GetVgpuUtilizationCalls

func (mock *Device) GetVgpuUtilizationCalls() []struct {
	V uint64
}

GetVgpuUtilizationCalls gets all the calls that were made to GetVgpuUtilization. Check the length with:

len(mockedDevice.GetVgpuUtilizationCalls())

func (*Device) GetViolationStatus

func (mock *Device) GetViolationStatus(perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return)

GetViolationStatus calls GetViolationStatusFunc.

func (*Device) GetViolationStatusCalls

func (mock *Device) GetViolationStatusCalls() []struct {
	PerfPolicyType nvml.PerfPolicyType
}

GetViolationStatusCalls gets all the calls that were made to GetViolationStatus. Check the length with:

len(mockedDevice.GetViolationStatusCalls())

func (*Device) GetVirtualizationMode

func (mock *Device) GetVirtualizationMode() (nvml.GpuVirtualizationMode, nvml.Return)

GetVirtualizationMode calls GetVirtualizationModeFunc.

func (*Device) GetVirtualizationModeCalls

func (mock *Device) GetVirtualizationModeCalls() []struct {
}

GetVirtualizationModeCalls gets all the calls that were made to GetVirtualizationMode. Check the length with:

len(mockedDevice.GetVirtualizationModeCalls())

func (*Device) GpmMigSampleGet

func (mock *Device) GpmMigSampleGet(n int, gpmSample nvml.GpmSample) nvml.Return

GpmMigSampleGet calls GpmMigSampleGetFunc.

func (*Device) GpmMigSampleGetCalls

func (mock *Device) GpmMigSampleGetCalls() []struct {
	N         int
	GpmSample nvml.GpmSample
}

GpmMigSampleGetCalls gets all the calls that were made to GpmMigSampleGet. Check the length with:

len(mockedDevice.GpmMigSampleGetCalls())

func (*Device) GpmQueryDeviceSupport

func (mock *Device) GpmQueryDeviceSupport() (nvml.GpmSupport, nvml.Return)

GpmQueryDeviceSupport calls GpmQueryDeviceSupportFunc.

func (*Device) GpmQueryDeviceSupportCalls

func (mock *Device) GpmQueryDeviceSupportCalls() []struct {
}

GpmQueryDeviceSupportCalls gets all the calls that were made to GpmQueryDeviceSupport. Check the length with:

len(mockedDevice.GpmQueryDeviceSupportCalls())

func (*Device) GpmQueryDeviceSupportV

func (mock *Device) GpmQueryDeviceSupportV() nvml.GpmSupportV

GpmQueryDeviceSupportV calls GpmQueryDeviceSupportVFunc.

func (*Device) GpmQueryDeviceSupportVCalls

func (mock *Device) GpmQueryDeviceSupportVCalls() []struct {
}

GpmQueryDeviceSupportVCalls gets all the calls that were made to GpmQueryDeviceSupportV. Check the length with:

len(mockedDevice.GpmQueryDeviceSupportVCalls())

func (*Device) GpmSampleGet

func (mock *Device) GpmSampleGet(gpmSample nvml.GpmSample) nvml.Return

GpmSampleGet calls GpmSampleGetFunc.

func (*Device) GpmSampleGetCalls

func (mock *Device) GpmSampleGetCalls() []struct {
	GpmSample nvml.GpmSample
}

GpmSampleGetCalls gets all the calls that were made to GpmSampleGet. Check the length with:

len(mockedDevice.GpmSampleGetCalls())

func (*Device) IsMigDeviceHandle

func (mock *Device) IsMigDeviceHandle() (bool, nvml.Return)

IsMigDeviceHandle calls IsMigDeviceHandleFunc.

func (*Device) IsMigDeviceHandleCalls

func (mock *Device) IsMigDeviceHandleCalls() []struct {
}

IsMigDeviceHandleCalls gets all the calls that were made to IsMigDeviceHandle. Check the length with:

len(mockedDevice.IsMigDeviceHandleCalls())

func (*Device) OnSameBoard

func (mock *Device) OnSameBoard(device nvml.Device) (int, nvml.Return)

OnSameBoard calls OnSameBoardFunc.

func (*Device) OnSameBoardCalls

func (mock *Device) OnSameBoardCalls() []struct {
	Device nvml.Device
}

OnSameBoardCalls gets all the calls that were made to OnSameBoard. Check the length with:

len(mockedDevice.OnSameBoardCalls())

func (*Device) RegisterEvents

func (mock *Device) RegisterEvents(v uint64, eventSet nvml.EventSet) nvml.Return

RegisterEvents calls RegisterEventsFunc.

func (*Device) RegisterEventsCalls

func (mock *Device) RegisterEventsCalls() []struct {
	V        uint64
	EventSet nvml.EventSet
}

RegisterEventsCalls gets all the calls that were made to RegisterEvents. Check the length with:

len(mockedDevice.RegisterEventsCalls())

func (*Device) ResetApplicationsClocks

func (mock *Device) ResetApplicationsClocks() nvml.Return

ResetApplicationsClocks calls ResetApplicationsClocksFunc.

func (*Device) ResetApplicationsClocksCalls

func (mock *Device) ResetApplicationsClocksCalls() []struct {
}

ResetApplicationsClocksCalls gets all the calls that were made to ResetApplicationsClocks. Check the length with:

len(mockedDevice.ResetApplicationsClocksCalls())

func (*Device) ResetGpuLockedClocks

func (mock *Device) ResetGpuLockedClocks() nvml.Return

ResetGpuLockedClocks calls ResetGpuLockedClocksFunc.

func (*Device) ResetGpuLockedClocksCalls

func (mock *Device) ResetGpuLockedClocksCalls() []struct {
}

ResetGpuLockedClocksCalls gets all the calls that were made to ResetGpuLockedClocks. Check the length with:

len(mockedDevice.ResetGpuLockedClocksCalls())

func (*Device) ResetMemoryLockedClocks

func (mock *Device) ResetMemoryLockedClocks() nvml.Return

ResetMemoryLockedClocks calls ResetMemoryLockedClocksFunc.

func (*Device) ResetMemoryLockedClocksCalls

func (mock *Device) ResetMemoryLockedClocksCalls() []struct {
}

ResetMemoryLockedClocksCalls gets all the calls that were made to ResetMemoryLockedClocks. Check the length with:

len(mockedDevice.ResetMemoryLockedClocksCalls())

func (*Device) ResetNvLinkErrorCounters

func (mock *Device) ResetNvLinkErrorCounters(n int) nvml.Return

ResetNvLinkErrorCounters calls ResetNvLinkErrorCountersFunc.

func (*Device) ResetNvLinkErrorCountersCalls

func (mock *Device) ResetNvLinkErrorCountersCalls() []struct {
	N int
}

ResetNvLinkErrorCountersCalls gets all the calls that were made to ResetNvLinkErrorCounters. Check the length with:

len(mockedDevice.ResetNvLinkErrorCountersCalls())

func (*Device) ResetNvLinkUtilizationCounter

func (mock *Device) ResetNvLinkUtilizationCounter(n1 int, n2 int) nvml.Return

ResetNvLinkUtilizationCounter calls ResetNvLinkUtilizationCounterFunc.

func (*Device) ResetNvLinkUtilizationCounterCalls

func (mock *Device) ResetNvLinkUtilizationCounterCalls() []struct {
	N1 int
	N2 int
}

ResetNvLinkUtilizationCounterCalls gets all the calls that were made to ResetNvLinkUtilizationCounter. Check the length with:

len(mockedDevice.ResetNvLinkUtilizationCounterCalls())

func (*Device) SetAPIRestriction

func (mock *Device) SetAPIRestriction(restrictedAPI nvml.RestrictedAPI, enableState nvml.EnableState) nvml.Return

SetAPIRestriction calls SetAPIRestrictionFunc.

func (*Device) SetAPIRestrictionCalls

func (mock *Device) SetAPIRestrictionCalls() []struct {
	RestrictedAPI nvml.RestrictedAPI
	EnableState   nvml.EnableState
}

SetAPIRestrictionCalls gets all the calls that were made to SetAPIRestriction. Check the length with:

len(mockedDevice.SetAPIRestrictionCalls())

func (*Device) SetAccountingMode

func (mock *Device) SetAccountingMode(enableState nvml.EnableState) nvml.Return

SetAccountingMode calls SetAccountingModeFunc.

func (*Device) SetAccountingModeCalls

func (mock *Device) SetAccountingModeCalls() []struct {
	EnableState nvml.EnableState
}

SetAccountingModeCalls gets all the calls that were made to SetAccountingMode. Check the length with:

len(mockedDevice.SetAccountingModeCalls())

func (*Device) SetApplicationsClocks

func (mock *Device) SetApplicationsClocks(v1 uint32, v2 uint32) nvml.Return

SetApplicationsClocks calls SetApplicationsClocksFunc.

func (*Device) SetApplicationsClocksCalls

func (mock *Device) SetApplicationsClocksCalls() []struct {
	V1 uint32
	V2 uint32
}

SetApplicationsClocksCalls gets all the calls that were made to SetApplicationsClocks. Check the length with:

len(mockedDevice.SetApplicationsClocksCalls())

func (*Device) SetAutoBoostedClocksEnabled

func (mock *Device) SetAutoBoostedClocksEnabled(enableState nvml.EnableState) nvml.Return

SetAutoBoostedClocksEnabled calls SetAutoBoostedClocksEnabledFunc.

func (*Device) SetAutoBoostedClocksEnabledCalls

func (mock *Device) SetAutoBoostedClocksEnabledCalls() []struct {
	EnableState nvml.EnableState
}

SetAutoBoostedClocksEnabledCalls gets all the calls that were made to SetAutoBoostedClocksEnabled. Check the length with:

len(mockedDevice.SetAutoBoostedClocksEnabledCalls())

func (*Device) SetComputeMode

func (mock *Device) SetComputeMode(computeMode nvml.ComputeMode) nvml.Return

SetComputeMode calls SetComputeModeFunc.

func (*Device) SetComputeModeCalls

func (mock *Device) SetComputeModeCalls() []struct {
	ComputeMode nvml.ComputeMode
}

SetComputeModeCalls gets all the calls that were made to SetComputeMode. Check the length with:

len(mockedDevice.SetComputeModeCalls())

func (*Device) SetCpuAffinity

func (mock *Device) SetCpuAffinity() nvml.Return

SetCpuAffinity calls SetCpuAffinityFunc.

func (*Device) SetCpuAffinityCalls

func (mock *Device) SetCpuAffinityCalls() []struct {
}

SetCpuAffinityCalls gets all the calls that were made to SetCpuAffinity. Check the length with:

len(mockedDevice.SetCpuAffinityCalls())

func (*Device) SetDefaultAutoBoostedClocksEnabled

func (mock *Device) SetDefaultAutoBoostedClocksEnabled(enableState nvml.EnableState, v uint32) nvml.Return

SetDefaultAutoBoostedClocksEnabled calls SetDefaultAutoBoostedClocksEnabledFunc.

func (*Device) SetDefaultAutoBoostedClocksEnabledCalls

func (mock *Device) SetDefaultAutoBoostedClocksEnabledCalls() []struct {
	EnableState nvml.EnableState
	V           uint32
}

SetDefaultAutoBoostedClocksEnabledCalls gets all the calls that were made to SetDefaultAutoBoostedClocksEnabled. Check the length with:

len(mockedDevice.SetDefaultAutoBoostedClocksEnabledCalls())

func (*Device) SetDefaultFanSpeed_v2

func (mock *Device) SetDefaultFanSpeed_v2(n int) nvml.Return

SetDefaultFanSpeed_v2 calls SetDefaultFanSpeed_v2Func.

func (*Device) SetDefaultFanSpeed_v2Calls

func (mock *Device) SetDefaultFanSpeed_v2Calls() []struct {
	N int
}

SetDefaultFanSpeed_v2Calls gets all the calls that were made to SetDefaultFanSpeed_v2. Check the length with:

len(mockedDevice.SetDefaultFanSpeed_v2Calls())

func (*Device) SetDriverModel

func (mock *Device) SetDriverModel(driverModel nvml.DriverModel, v uint32) nvml.Return

SetDriverModel calls SetDriverModelFunc.

func (*Device) SetDriverModelCalls

func (mock *Device) SetDriverModelCalls() []struct {
	DriverModel nvml.DriverModel
	V           uint32
}

SetDriverModelCalls gets all the calls that were made to SetDriverModel. Check the length with:

len(mockedDevice.SetDriverModelCalls())

func (*Device) SetEccMode

func (mock *Device) SetEccMode(enableState nvml.EnableState) nvml.Return

SetEccMode calls SetEccModeFunc.

func (*Device) SetEccModeCalls

func (mock *Device) SetEccModeCalls() []struct {
	EnableState nvml.EnableState
}

SetEccModeCalls gets all the calls that were made to SetEccMode. Check the length with:

len(mockedDevice.SetEccModeCalls())

func (*Device) SetFanControlPolicy

func (mock *Device) SetFanControlPolicy(n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return

SetFanControlPolicy calls SetFanControlPolicyFunc.

func (*Device) SetFanControlPolicyCalls

func (mock *Device) SetFanControlPolicyCalls() []struct {
	N                int
	FanControlPolicy nvml.FanControlPolicy
}

SetFanControlPolicyCalls gets all the calls that were made to SetFanControlPolicy. Check the length with:

len(mockedDevice.SetFanControlPolicyCalls())

func (*Device) SetFanSpeed_v2

func (mock *Device) SetFanSpeed_v2(n1 int, n2 int) nvml.Return

SetFanSpeed_v2 calls SetFanSpeed_v2Func.

func (*Device) SetFanSpeed_v2Calls

func (mock *Device) SetFanSpeed_v2Calls() []struct {
	N1 int
	N2 int
}

SetFanSpeed_v2Calls gets all the calls that were made to SetFanSpeed_v2. Check the length with:

len(mockedDevice.SetFanSpeed_v2Calls())

func (*Device) SetGpcClkVfOffset

func (mock *Device) SetGpcClkVfOffset(n int) nvml.Return

SetGpcClkVfOffset calls SetGpcClkVfOffsetFunc.

func (*Device) SetGpcClkVfOffsetCalls

func (mock *Device) SetGpcClkVfOffsetCalls() []struct {
	N int
}

SetGpcClkVfOffsetCalls gets all the calls that were made to SetGpcClkVfOffset. Check the length with:

len(mockedDevice.SetGpcClkVfOffsetCalls())

func (*Device) SetGpuLockedClocks

func (mock *Device) SetGpuLockedClocks(v1 uint32, v2 uint32) nvml.Return

SetGpuLockedClocks calls SetGpuLockedClocksFunc.

func (*Device) SetGpuLockedClocksCalls

func (mock *Device) SetGpuLockedClocksCalls() []struct {
	V1 uint32
	V2 uint32
}

SetGpuLockedClocksCalls gets all the calls that were made to SetGpuLockedClocks. Check the length with:

len(mockedDevice.SetGpuLockedClocksCalls())

func (*Device) SetGpuOperationMode

func (mock *Device) SetGpuOperationMode(gpuOperationMode nvml.GpuOperationMode) nvml.Return

SetGpuOperationMode calls SetGpuOperationModeFunc.

func (*Device) SetGpuOperationModeCalls

func (mock *Device) SetGpuOperationModeCalls() []struct {
	GpuOperationMode nvml.GpuOperationMode
}

SetGpuOperationModeCalls gets all the calls that were made to SetGpuOperationMode. Check the length with:

len(mockedDevice.SetGpuOperationModeCalls())

func (*Device) SetMemClkVfOffset

func (mock *Device) SetMemClkVfOffset(n int) nvml.Return

SetMemClkVfOffset calls SetMemClkVfOffsetFunc.

func (*Device) SetMemClkVfOffsetCalls

func (mock *Device) SetMemClkVfOffsetCalls() []struct {
	N int
}

SetMemClkVfOffsetCalls gets all the calls that were made to SetMemClkVfOffset. Check the length with:

len(mockedDevice.SetMemClkVfOffsetCalls())

func (*Device) SetMemoryLockedClocks

func (mock *Device) SetMemoryLockedClocks(v1 uint32, v2 uint32) nvml.Return

SetMemoryLockedClocks calls SetMemoryLockedClocksFunc.

func (*Device) SetMemoryLockedClocksCalls

func (mock *Device) SetMemoryLockedClocksCalls() []struct {
	V1 uint32
	V2 uint32
}

SetMemoryLockedClocksCalls gets all the calls that were made to SetMemoryLockedClocks. Check the length with:

len(mockedDevice.SetMemoryLockedClocksCalls())

func (*Device) SetMigMode

func (mock *Device) SetMigMode(n int) (nvml.Return, nvml.Return)

SetMigMode calls SetMigModeFunc.

func (*Device) SetMigModeCalls

func (mock *Device) SetMigModeCalls() []struct {
	N int
}

SetMigModeCalls gets all the calls that were made to SetMigMode. Check the length with:

len(mockedDevice.SetMigModeCalls())

func (*Device) SetNvLinkDeviceLowPowerThreshold

func (mock *Device) SetNvLinkDeviceLowPowerThreshold(nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return

SetNvLinkDeviceLowPowerThreshold calls SetNvLinkDeviceLowPowerThresholdFunc.

func (*Device) SetNvLinkDeviceLowPowerThresholdCalls

func (mock *Device) SetNvLinkDeviceLowPowerThresholdCalls() []struct {
	NvLinkPowerThres *nvml.NvLinkPowerThres
}

SetNvLinkDeviceLowPowerThresholdCalls gets all the calls that were made to SetNvLinkDeviceLowPowerThreshold. Check the length with:

len(mockedDevice.SetNvLinkDeviceLowPowerThresholdCalls())

func (*Device) SetNvLinkUtilizationControl

func (mock *Device) SetNvLinkUtilizationControl(n1 int, n2 int, nvLinkUtilizationControl *nvml.NvLinkUtilizationControl, b bool) nvml.Return

SetNvLinkUtilizationControl calls SetNvLinkUtilizationControlFunc.

func (*Device) SetNvLinkUtilizationControlCalls

func (mock *Device) SetNvLinkUtilizationControlCalls() []struct {
	N1                       int
	N2                       int
	NvLinkUtilizationControl *nvml.NvLinkUtilizationControl
	B                        bool
}

SetNvLinkUtilizationControlCalls gets all the calls that were made to SetNvLinkUtilizationControl. Check the length with:

len(mockedDevice.SetNvLinkUtilizationControlCalls())

func (*Device) SetPersistenceMode

func (mock *Device) SetPersistenceMode(enableState nvml.EnableState) nvml.Return

SetPersistenceMode calls SetPersistenceModeFunc.

func (*Device) SetPersistenceModeCalls

func (mock *Device) SetPersistenceModeCalls() []struct {
	EnableState nvml.EnableState
}

SetPersistenceModeCalls gets all the calls that were made to SetPersistenceMode. Check the length with:

len(mockedDevice.SetPersistenceModeCalls())

func (*Device) SetPowerManagementLimit

func (mock *Device) SetPowerManagementLimit(v uint32) nvml.Return

SetPowerManagementLimit calls SetPowerManagementLimitFunc.

func (*Device) SetPowerManagementLimitCalls

func (mock *Device) SetPowerManagementLimitCalls() []struct {
	V uint32
}

SetPowerManagementLimitCalls gets all the calls that were made to SetPowerManagementLimit. Check the length with:

len(mockedDevice.SetPowerManagementLimitCalls())

func (*Device) SetTemperatureThreshold

func (mock *Device) SetTemperatureThreshold(temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return

SetTemperatureThreshold calls SetTemperatureThresholdFunc.

func (*Device) SetTemperatureThresholdCalls

func (mock *Device) SetTemperatureThresholdCalls() []struct {
	TemperatureThresholds nvml.TemperatureThresholds
	N                     int
}

SetTemperatureThresholdCalls gets all the calls that were made to SetTemperatureThreshold. Check the length with:

len(mockedDevice.SetTemperatureThresholdCalls())

func (*Device) SetVgpuSchedulerState

func (mock *Device) SetVgpuSchedulerState(vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return

SetVgpuSchedulerState calls SetVgpuSchedulerStateFunc.

func (*Device) SetVgpuSchedulerStateCalls

func (mock *Device) SetVgpuSchedulerStateCalls() []struct {
	VgpuSchedulerSetState *nvml.VgpuSchedulerSetState
}

SetVgpuSchedulerStateCalls gets all the calls that were made to SetVgpuSchedulerState. Check the length with:

len(mockedDevice.SetVgpuSchedulerStateCalls())

func (*Device) SetVirtualizationMode

func (mock *Device) SetVirtualizationMode(gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return

SetVirtualizationMode calls SetVirtualizationModeFunc.

func (*Device) SetVirtualizationModeCalls

func (mock *Device) SetVirtualizationModeCalls() []struct {
	GpuVirtualizationMode nvml.GpuVirtualizationMode
}

SetVirtualizationModeCalls gets all the calls that were made to SetVirtualizationMode. Check the length with:

len(mockedDevice.SetVirtualizationModeCalls())

func (*Device) ValidateInforom

func (mock *Device) ValidateInforom() nvml.Return

ValidateInforom calls ValidateInforomFunc.

func (*Device) ValidateInforomCalls

func (mock *Device) ValidateInforomCalls() []struct {
}

ValidateInforomCalls gets all the calls that were made to ValidateInforom. Check the length with:

len(mockedDevice.ValidateInforomCalls())

func (*Device) VgpuTypeGetMaxInstances

func (mock *Device) VgpuTypeGetMaxInstances(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)

VgpuTypeGetMaxInstances calls VgpuTypeGetMaxInstancesFunc.

func (*Device) VgpuTypeGetMaxInstancesCalls

func (mock *Device) VgpuTypeGetMaxInstancesCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetMaxInstancesCalls gets all the calls that were made to VgpuTypeGetMaxInstances. Check the length with:

len(mockedDevice.VgpuTypeGetMaxInstancesCalls())

type EventSet

type EventSet struct {
	// FreeFunc mocks the Free method.
	FreeFunc func() nvml.Return

	// WaitFunc mocks the Wait method.
	WaitFunc func(v uint32) (nvml.EventData, nvml.Return)
	// contains filtered or unexported fields
}

EventSet is a mock implementation of nvml.EventSet.

func TestSomethingThatUsesEventSet(t *testing.T) {

	// make and configure a mocked nvml.EventSet
	mockedEventSet := &EventSet{
		FreeFunc: func() nvml.Return {
			panic("mock out the Free method")
		},
		WaitFunc: func(v uint32) (nvml.EventData, nvml.Return) {
			panic("mock out the Wait method")
		},
	}

	// use mockedEventSet in code that requires nvml.EventSet
	// and then make assertions.

}

func (*EventSet) Free

func (mock *EventSet) Free() nvml.Return

Free calls FreeFunc.

func (*EventSet) FreeCalls

func (mock *EventSet) FreeCalls() []struct {
}

FreeCalls gets all the calls that were made to Free. Check the length with:

len(mockedEventSet.FreeCalls())

func (*EventSet) Wait

func (mock *EventSet) Wait(v uint32) (nvml.EventData, nvml.Return)

Wait calls WaitFunc.

func (*EventSet) WaitCalls

func (mock *EventSet) WaitCalls() []struct {
	V uint32
}

WaitCalls gets all the calls that were made to Wait. Check the length with:

len(mockedEventSet.WaitCalls())

type ExtendedInterface

type ExtendedInterface struct {
	// LookupSymbolFunc mocks the LookupSymbol method.
	LookupSymbolFunc func(s string) error
	// contains filtered or unexported fields
}

ExtendedInterface is a mock implementation of nvml.ExtendedInterface.

func TestSomethingThatUsesExtendedInterface(t *testing.T) {

	// make and configure a mocked nvml.ExtendedInterface
	mockedExtendedInterface := &ExtendedInterface{
		LookupSymbolFunc: func(s string) error {
			panic("mock out the LookupSymbol method")
		},
	}

	// use mockedExtendedInterface in code that requires nvml.ExtendedInterface
	// and then make assertions.

}

func (*ExtendedInterface) LookupSymbol

func (mock *ExtendedInterface) LookupSymbol(s string) error

LookupSymbol calls LookupSymbolFunc.

func (*ExtendedInterface) LookupSymbolCalls

func (mock *ExtendedInterface) LookupSymbolCalls() []struct {
	S string
}

LookupSymbolCalls gets all the calls that were made to LookupSymbol. Check the length with:

len(mockedExtendedInterface.LookupSymbolCalls())

type GpmSample

type GpmSample struct {
	// FreeFunc mocks the Free method.
	FreeFunc func() nvml.Return

	// GetFunc mocks the Get method.
	GetFunc func(device nvml.Device) nvml.Return

	// MigGetFunc mocks the MigGet method.
	MigGetFunc func(device nvml.Device, n int) nvml.Return
	// contains filtered or unexported fields
}

GpmSample is a mock implementation of nvml.GpmSample.

func TestSomethingThatUsesGpmSample(t *testing.T) {

	// make and configure a mocked nvml.GpmSample
	mockedGpmSample := &GpmSample{
		FreeFunc: func() nvml.Return {
			panic("mock out the Free method")
		},
		GetFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the Get method")
		},
		MigGetFunc: func(device nvml.Device, n int) nvml.Return {
			panic("mock out the MigGet method")
		},
	}

	// use mockedGpmSample in code that requires nvml.GpmSample
	// and then make assertions.

}

func (*GpmSample) Free

func (mock *GpmSample) Free() nvml.Return

Free calls FreeFunc.

func (*GpmSample) FreeCalls

func (mock *GpmSample) FreeCalls() []struct {
}

FreeCalls gets all the calls that were made to Free. Check the length with:

len(mockedGpmSample.FreeCalls())

func (*GpmSample) Get

func (mock *GpmSample) Get(device nvml.Device) nvml.Return

Get calls GetFunc.

func (*GpmSample) GetCalls

func (mock *GpmSample) GetCalls() []struct {
	Device nvml.Device
}

GetCalls gets all the calls that were made to Get. Check the length with:

len(mockedGpmSample.GetCalls())

func (*GpmSample) MigGet

func (mock *GpmSample) MigGet(device nvml.Device, n int) nvml.Return

MigGet calls MigGetFunc.

func (*GpmSample) MigGetCalls

func (mock *GpmSample) MigGetCalls() []struct {
	Device nvml.Device
	N      int
}

MigGetCalls gets all the calls that were made to MigGet. Check the length with:

len(mockedGpmSample.MigGetCalls())

type GpuInstance

type GpuInstance struct {
	// CreateComputeInstanceFunc mocks the CreateComputeInstance method.
	CreateComputeInstanceFunc func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (nvml.ComputeInstance, nvml.Return)

	// CreateComputeInstanceWithPlacementFunc mocks the CreateComputeInstanceWithPlacement method.
	CreateComputeInstanceWithPlacementFunc func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo, computeInstancePlacement *nvml.ComputeInstancePlacement) (nvml.ComputeInstance, nvml.Return)

	// DestroyFunc mocks the Destroy method.
	DestroyFunc func() nvml.Return

	// GetComputeInstanceByIdFunc mocks the GetComputeInstanceById method.
	GetComputeInstanceByIdFunc func(n int) (nvml.ComputeInstance, nvml.Return)

	// GetComputeInstancePossiblePlacementsFunc mocks the GetComputeInstancePossiblePlacements method.
	GetComputeInstancePossiblePlacementsFunc func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstancePlacement, nvml.Return)

	// GetComputeInstanceProfileInfoFunc mocks the GetComputeInstanceProfileInfo method.
	GetComputeInstanceProfileInfoFunc func(n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return)

	// GetComputeInstanceProfileInfoVFunc mocks the GetComputeInstanceProfileInfoV method.
	GetComputeInstanceProfileInfoVFunc func(n1 int, n2 int) nvml.ComputeInstanceProfileInfoV

	// GetComputeInstanceRemainingCapacityFunc mocks the GetComputeInstanceRemainingCapacity method.
	GetComputeInstanceRemainingCapacityFunc func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (int, nvml.Return)

	// GetComputeInstancesFunc mocks the GetComputeInstances method.
	GetComputeInstancesFunc func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstance, nvml.Return)

	// GetInfoFunc mocks the GetInfo method.
	GetInfoFunc func() (nvml.GpuInstanceInfo, nvml.Return)
	// contains filtered or unexported fields
}

GpuInstance is a mock implementation of nvml.GpuInstance.

func TestSomethingThatUsesGpuInstance(t *testing.T) {

	// make and configure a mocked nvml.GpuInstance
	mockedGpuInstance := &GpuInstance{
		CreateComputeInstanceFunc: func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (nvml.ComputeInstance, nvml.Return) {
			panic("mock out the CreateComputeInstance method")
		},
		CreateComputeInstanceWithPlacementFunc: func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo, computeInstancePlacement *nvml.ComputeInstancePlacement) (nvml.ComputeInstance, nvml.Return) {
			panic("mock out the CreateComputeInstanceWithPlacement method")
		},
		DestroyFunc: func() nvml.Return {
			panic("mock out the Destroy method")
		},
		GetComputeInstanceByIdFunc: func(n int) (nvml.ComputeInstance, nvml.Return) {
			panic("mock out the GetComputeInstanceById method")
		},
		GetComputeInstancePossiblePlacementsFunc: func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstancePlacement, nvml.Return) {
			panic("mock out the GetComputeInstancePossiblePlacements method")
		},
		GetComputeInstanceProfileInfoFunc: func(n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return) {
			panic("mock out the GetComputeInstanceProfileInfo method")
		},
		GetComputeInstanceProfileInfoVFunc: func(n1 int, n2 int) nvml.ComputeInstanceProfileInfoV {
			panic("mock out the GetComputeInstanceProfileInfoV method")
		},
		GetComputeInstanceRemainingCapacityFunc: func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (int, nvml.Return) {
			panic("mock out the GetComputeInstanceRemainingCapacity method")
		},
		GetComputeInstancesFunc: func(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstance, nvml.Return) {
			panic("mock out the GetComputeInstances method")
		},
		GetInfoFunc: func() (nvml.GpuInstanceInfo, nvml.Return) {
			panic("mock out the GetInfo method")
		},
	}

	// use mockedGpuInstance in code that requires nvml.GpuInstance
	// and then make assertions.

}

func (*GpuInstance) CreateComputeInstance

func (mock *GpuInstance) CreateComputeInstance(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (nvml.ComputeInstance, nvml.Return)

CreateComputeInstance calls CreateComputeInstanceFunc.

func (*GpuInstance) CreateComputeInstanceCalls

func (mock *GpuInstance) CreateComputeInstanceCalls() []struct {
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

CreateComputeInstanceCalls gets all the calls that were made to CreateComputeInstance. Check the length with:

len(mockedGpuInstance.CreateComputeInstanceCalls())

func (*GpuInstance) CreateComputeInstanceWithPlacement

func (mock *GpuInstance) CreateComputeInstanceWithPlacement(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo, computeInstancePlacement *nvml.ComputeInstancePlacement) (nvml.ComputeInstance, nvml.Return)

CreateComputeInstanceWithPlacement calls CreateComputeInstanceWithPlacementFunc.

func (*GpuInstance) CreateComputeInstanceWithPlacementCalls

func (mock *GpuInstance) CreateComputeInstanceWithPlacementCalls() []struct {
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
	ComputeInstancePlacement   *nvml.ComputeInstancePlacement
}

CreateComputeInstanceWithPlacementCalls gets all the calls that were made to CreateComputeInstanceWithPlacement. Check the length with:

len(mockedGpuInstance.CreateComputeInstanceWithPlacementCalls())

func (*GpuInstance) Destroy

func (mock *GpuInstance) Destroy() nvml.Return

Destroy calls DestroyFunc.

func (*GpuInstance) DestroyCalls

func (mock *GpuInstance) DestroyCalls() []struct {
}

DestroyCalls gets all the calls that were made to Destroy. Check the length with:

len(mockedGpuInstance.DestroyCalls())

func (*GpuInstance) GetComputeInstanceById

func (mock *GpuInstance) GetComputeInstanceById(n int) (nvml.ComputeInstance, nvml.Return)

GetComputeInstanceById calls GetComputeInstanceByIdFunc.

func (*GpuInstance) GetComputeInstanceByIdCalls

func (mock *GpuInstance) GetComputeInstanceByIdCalls() []struct {
	N int
}

GetComputeInstanceByIdCalls gets all the calls that were made to GetComputeInstanceById. Check the length with:

len(mockedGpuInstance.GetComputeInstanceByIdCalls())

func (*GpuInstance) GetComputeInstancePossiblePlacements

func (mock *GpuInstance) GetComputeInstancePossiblePlacements(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstancePlacement, nvml.Return)

GetComputeInstancePossiblePlacements calls GetComputeInstancePossiblePlacementsFunc.

func (*GpuInstance) GetComputeInstancePossiblePlacementsCalls

func (mock *GpuInstance) GetComputeInstancePossiblePlacementsCalls() []struct {
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

GetComputeInstancePossiblePlacementsCalls gets all the calls that were made to GetComputeInstancePossiblePlacements. Check the length with:

len(mockedGpuInstance.GetComputeInstancePossiblePlacementsCalls())

func (*GpuInstance) GetComputeInstanceProfileInfo

func (mock *GpuInstance) GetComputeInstanceProfileInfo(n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return)

GetComputeInstanceProfileInfo calls GetComputeInstanceProfileInfoFunc.

func (*GpuInstance) GetComputeInstanceProfileInfoCalls

func (mock *GpuInstance) GetComputeInstanceProfileInfoCalls() []struct {
	N1 int
	N2 int
}

GetComputeInstanceProfileInfoCalls gets all the calls that were made to GetComputeInstanceProfileInfo. Check the length with:

len(mockedGpuInstance.GetComputeInstanceProfileInfoCalls())

func (*GpuInstance) GetComputeInstanceProfileInfoV

func (mock *GpuInstance) GetComputeInstanceProfileInfoV(n1 int, n2 int) nvml.ComputeInstanceProfileInfoV

GetComputeInstanceProfileInfoV calls GetComputeInstanceProfileInfoVFunc.

func (*GpuInstance) GetComputeInstanceProfileInfoVCalls

func (mock *GpuInstance) GetComputeInstanceProfileInfoVCalls() []struct {
	N1 int
	N2 int
}

GetComputeInstanceProfileInfoVCalls gets all the calls that were made to GetComputeInstanceProfileInfoV. Check the length with:

len(mockedGpuInstance.GetComputeInstanceProfileInfoVCalls())

func (*GpuInstance) GetComputeInstanceRemainingCapacity

func (mock *GpuInstance) GetComputeInstanceRemainingCapacity(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (int, nvml.Return)

GetComputeInstanceRemainingCapacity calls GetComputeInstanceRemainingCapacityFunc.

func (*GpuInstance) GetComputeInstanceRemainingCapacityCalls

func (mock *GpuInstance) GetComputeInstanceRemainingCapacityCalls() []struct {
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

GetComputeInstanceRemainingCapacityCalls gets all the calls that were made to GetComputeInstanceRemainingCapacity. Check the length with:

len(mockedGpuInstance.GetComputeInstanceRemainingCapacityCalls())

func (*GpuInstance) GetComputeInstances

func (mock *GpuInstance) GetComputeInstances(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstance, nvml.Return)

GetComputeInstances calls GetComputeInstancesFunc.

func (*GpuInstance) GetComputeInstancesCalls

func (mock *GpuInstance) GetComputeInstancesCalls() []struct {
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

GetComputeInstancesCalls gets all the calls that were made to GetComputeInstances. Check the length with:

len(mockedGpuInstance.GetComputeInstancesCalls())

func (*GpuInstance) GetInfo

func (mock *GpuInstance) GetInfo() (nvml.GpuInstanceInfo, nvml.Return)

GetInfo calls GetInfoFunc.

func (*GpuInstance) GetInfoCalls

func (mock *GpuInstance) GetInfoCalls() []struct {
}

GetInfoCalls gets all the calls that were made to GetInfo. Check the length with:

len(mockedGpuInstance.GetInfoCalls())

type Interface

type Interface struct {
	// ComputeInstanceDestroyFunc mocks the ComputeInstanceDestroy method.
	ComputeInstanceDestroyFunc func(computeInstance nvml.ComputeInstance) nvml.Return

	// ComputeInstanceGetInfoFunc mocks the ComputeInstanceGetInfo method.
	ComputeInstanceGetInfoFunc func(computeInstance nvml.ComputeInstance) (nvml.ComputeInstanceInfo, nvml.Return)

	// DeviceCcuGetStreamStateFunc mocks the DeviceCcuGetStreamState method.
	DeviceCcuGetStreamStateFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceCcuSetStreamStateFunc mocks the DeviceCcuSetStreamState method.
	DeviceCcuSetStreamStateFunc func(device nvml.Device, n int) nvml.Return

	// DeviceClearAccountingPidsFunc mocks the DeviceClearAccountingPids method.
	DeviceClearAccountingPidsFunc func(device nvml.Device) nvml.Return

	// DeviceClearCpuAffinityFunc mocks the DeviceClearCpuAffinity method.
	DeviceClearCpuAffinityFunc func(device nvml.Device) nvml.Return

	// DeviceClearEccErrorCountsFunc mocks the DeviceClearEccErrorCounts method.
	DeviceClearEccErrorCountsFunc func(device nvml.Device, eccCounterType nvml.EccCounterType) nvml.Return

	// DeviceClearFieldValuesFunc mocks the DeviceClearFieldValues method.
	DeviceClearFieldValuesFunc func(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return

	// DeviceCreateGpuInstanceFunc mocks the DeviceCreateGpuInstance method.
	DeviceCreateGpuInstanceFunc func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return)

	// DeviceCreateGpuInstanceWithPlacementFunc mocks the DeviceCreateGpuInstanceWithPlacement method.
	DeviceCreateGpuInstanceWithPlacementFunc func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, gpuInstancePlacement *nvml.GpuInstancePlacement) (nvml.GpuInstance, nvml.Return)

	// DeviceDiscoverGpusFunc mocks the DeviceDiscoverGpus method.
	DeviceDiscoverGpusFunc func() (nvml.PciInfo, nvml.Return)

	// DeviceFreezeNvLinkUtilizationCounterFunc mocks the DeviceFreezeNvLinkUtilizationCounter method.
	DeviceFreezeNvLinkUtilizationCounterFunc func(device nvml.Device, n1 int, n2 int, enableState nvml.EnableState) nvml.Return

	// DeviceGetAPIRestrictionFunc mocks the DeviceGetAPIRestriction method.
	DeviceGetAPIRestrictionFunc func(device nvml.Device, restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return)

	// DeviceGetAccountingBufferSizeFunc mocks the DeviceGetAccountingBufferSize method.
	DeviceGetAccountingBufferSizeFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetAccountingModeFunc mocks the DeviceGetAccountingMode method.
	DeviceGetAccountingModeFunc func(device nvml.Device) (nvml.EnableState, nvml.Return)

	// DeviceGetAccountingPidsFunc mocks the DeviceGetAccountingPids method.
	DeviceGetAccountingPidsFunc func(device nvml.Device) ([]int, nvml.Return)

	// DeviceGetAccountingStatsFunc mocks the DeviceGetAccountingStats method.
	DeviceGetAccountingStatsFunc func(device nvml.Device, v uint32) (nvml.AccountingStats, nvml.Return)

	// DeviceGetActiveVgpusFunc mocks the DeviceGetActiveVgpus method.
	DeviceGetActiveVgpusFunc func(device nvml.Device) ([]nvml.VgpuInstance, nvml.Return)

	// DeviceGetAdaptiveClockInfoStatusFunc mocks the DeviceGetAdaptiveClockInfoStatus method.
	DeviceGetAdaptiveClockInfoStatusFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetApplicationsClockFunc mocks the DeviceGetApplicationsClock method.
	DeviceGetApplicationsClockFunc func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

	// DeviceGetArchitectureFunc mocks the DeviceGetArchitecture method.
	DeviceGetArchitectureFunc func(device nvml.Device) (nvml.DeviceArchitecture, nvml.Return)

	// DeviceGetAttributesFunc mocks the DeviceGetAttributes method.
	DeviceGetAttributesFunc func(device nvml.Device) (nvml.DeviceAttributes, nvml.Return)

	// DeviceGetAutoBoostedClocksEnabledFunc mocks the DeviceGetAutoBoostedClocksEnabled method.
	DeviceGetAutoBoostedClocksEnabledFunc func(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return)

	// DeviceGetBAR1MemoryInfoFunc mocks the DeviceGetBAR1MemoryInfo method.
	DeviceGetBAR1MemoryInfoFunc func(device nvml.Device) (nvml.BAR1Memory, nvml.Return)

	// DeviceGetBoardIdFunc mocks the DeviceGetBoardId method.
	DeviceGetBoardIdFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetBoardPartNumberFunc mocks the DeviceGetBoardPartNumber method.
	DeviceGetBoardPartNumberFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetBrandFunc mocks the DeviceGetBrand method.
	DeviceGetBrandFunc func(device nvml.Device) (nvml.BrandType, nvml.Return)

	// DeviceGetBridgeChipInfoFunc mocks the DeviceGetBridgeChipInfo method.
	DeviceGetBridgeChipInfoFunc func(device nvml.Device) (nvml.BridgeChipHierarchy, nvml.Return)

	// DeviceGetBusTypeFunc mocks the DeviceGetBusType method.
	DeviceGetBusTypeFunc func(device nvml.Device) (nvml.BusType, nvml.Return)

	// DeviceGetClkMonStatusFunc mocks the DeviceGetClkMonStatus method.
	DeviceGetClkMonStatusFunc func(device nvml.Device) (nvml.ClkMonStatus, nvml.Return)

	// DeviceGetClockFunc mocks the DeviceGetClock method.
	DeviceGetClockFunc func(device nvml.Device, clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return)

	// DeviceGetClockInfoFunc mocks the DeviceGetClockInfo method.
	DeviceGetClockInfoFunc func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

	// DeviceGetComputeInstanceIdFunc mocks the DeviceGetComputeInstanceId method.
	DeviceGetComputeInstanceIdFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetComputeModeFunc mocks the DeviceGetComputeMode method.
	DeviceGetComputeModeFunc func(device nvml.Device) (nvml.ComputeMode, nvml.Return)

	// DeviceGetComputeRunningProcessesFunc mocks the DeviceGetComputeRunningProcesses method.
	DeviceGetComputeRunningProcessesFunc func(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)

	// DeviceGetCountFunc mocks the DeviceGetCount method.
	DeviceGetCountFunc func() (int, nvml.Return)

	// DeviceGetCpuAffinityFunc mocks the DeviceGetCpuAffinity method.
	DeviceGetCpuAffinityFunc func(device nvml.Device, n int) ([]uint, nvml.Return)

	// DeviceGetCpuAffinityWithinScopeFunc mocks the DeviceGetCpuAffinityWithinScope method.
	DeviceGetCpuAffinityWithinScopeFunc func(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

	// DeviceGetCreatableVgpusFunc mocks the DeviceGetCreatableVgpus method.
	DeviceGetCreatableVgpusFunc func(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return)

	// DeviceGetCudaComputeCapabilityFunc mocks the DeviceGetCudaComputeCapability method.
	DeviceGetCudaComputeCapabilityFunc func(device nvml.Device) (int, int, nvml.Return)

	// DeviceGetCurrPcieLinkGenerationFunc mocks the DeviceGetCurrPcieLinkGeneration method.
	DeviceGetCurrPcieLinkGenerationFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetCurrPcieLinkWidthFunc mocks the DeviceGetCurrPcieLinkWidth method.
	DeviceGetCurrPcieLinkWidthFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetCurrentClocksThrottleReasonsFunc mocks the DeviceGetCurrentClocksThrottleReasons method.
	DeviceGetCurrentClocksThrottleReasonsFunc func(device nvml.Device) (uint64, nvml.Return)

	// DeviceGetDecoderUtilizationFunc mocks the DeviceGetDecoderUtilization method.
	DeviceGetDecoderUtilizationFunc func(device nvml.Device) (uint32, uint32, nvml.Return)

	// DeviceGetDefaultApplicationsClockFunc mocks the DeviceGetDefaultApplicationsClock method.
	DeviceGetDefaultApplicationsClockFunc func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

	// DeviceGetDefaultEccModeFunc mocks the DeviceGetDefaultEccMode method.
	DeviceGetDefaultEccModeFunc func(device nvml.Device) (nvml.EnableState, nvml.Return)

	// DeviceGetDetailedEccErrorsFunc mocks the DeviceGetDetailedEccErrors method.
	DeviceGetDetailedEccErrorsFunc func(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (nvml.EccErrorCounts, nvml.Return)

	// DeviceGetDeviceHandleFromMigDeviceHandleFunc mocks the DeviceGetDeviceHandleFromMigDeviceHandle method.
	DeviceGetDeviceHandleFromMigDeviceHandleFunc func(device nvml.Device) (nvml.Device, nvml.Return)

	// DeviceGetDisplayActiveFunc mocks the DeviceGetDisplayActive method.
	DeviceGetDisplayActiveFunc func(device nvml.Device) (nvml.EnableState, nvml.Return)

	// DeviceGetDisplayModeFunc mocks the DeviceGetDisplayMode method.
	DeviceGetDisplayModeFunc func(device nvml.Device) (nvml.EnableState, nvml.Return)

	// DeviceGetDriverModelFunc mocks the DeviceGetDriverModel method.
	DeviceGetDriverModelFunc func(device nvml.Device) (nvml.DriverModel, nvml.DriverModel, nvml.Return)

	// DeviceGetDynamicPstatesInfoFunc mocks the DeviceGetDynamicPstatesInfo method.
	DeviceGetDynamicPstatesInfoFunc func(device nvml.Device) (nvml.GpuDynamicPstatesInfo, nvml.Return)

	// DeviceGetEccModeFunc mocks the DeviceGetEccMode method.
	DeviceGetEccModeFunc func(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return)

	// DeviceGetEncoderCapacityFunc mocks the DeviceGetEncoderCapacity method.
	DeviceGetEncoderCapacityFunc func(device nvml.Device, encoderType nvml.EncoderType) (int, nvml.Return)

	// DeviceGetEncoderSessionsFunc mocks the DeviceGetEncoderSessions method.
	DeviceGetEncoderSessionsFunc func(device nvml.Device) ([]nvml.EncoderSessionInfo, nvml.Return)

	// DeviceGetEncoderStatsFunc mocks the DeviceGetEncoderStats method.
	DeviceGetEncoderStatsFunc func(device nvml.Device) (int, uint32, uint32, nvml.Return)

	// DeviceGetEncoderUtilizationFunc mocks the DeviceGetEncoderUtilization method.
	DeviceGetEncoderUtilizationFunc func(device nvml.Device) (uint32, uint32, nvml.Return)

	// DeviceGetEnforcedPowerLimitFunc mocks the DeviceGetEnforcedPowerLimit method.
	DeviceGetEnforcedPowerLimitFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetFBCSessionsFunc mocks the DeviceGetFBCSessions method.
	DeviceGetFBCSessionsFunc func(device nvml.Device) ([]nvml.FBCSessionInfo, nvml.Return)

	// DeviceGetFBCStatsFunc mocks the DeviceGetFBCStats method.
	DeviceGetFBCStatsFunc func(device nvml.Device) (nvml.FBCStats, nvml.Return)

	// DeviceGetFanControlPolicy_v2Func mocks the DeviceGetFanControlPolicy_v2 method.
	DeviceGetFanControlPolicy_v2Func func(device nvml.Device, n int) (nvml.FanControlPolicy, nvml.Return)

	// DeviceGetFanSpeedFunc mocks the DeviceGetFanSpeed method.
	DeviceGetFanSpeedFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetFanSpeed_v2Func mocks the DeviceGetFanSpeed_v2 method.
	DeviceGetFanSpeed_v2Func func(device nvml.Device, n int) (uint32, nvml.Return)

	// DeviceGetFieldValuesFunc mocks the DeviceGetFieldValues method.
	DeviceGetFieldValuesFunc func(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return

	// DeviceGetGpcClkMinMaxVfOffsetFunc mocks the DeviceGetGpcClkMinMaxVfOffset method.
	DeviceGetGpcClkMinMaxVfOffsetFunc func(device nvml.Device) (int, int, nvml.Return)

	// DeviceGetGpcClkVfOffsetFunc mocks the DeviceGetGpcClkVfOffset method.
	DeviceGetGpcClkVfOffsetFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetGpuFabricInfoFunc mocks the DeviceGetGpuFabricInfo method.
	DeviceGetGpuFabricInfoFunc func(device nvml.Device) (nvml.GpuFabricInfo, nvml.Return)

	// DeviceGetGpuInstanceByIdFunc mocks the DeviceGetGpuInstanceById method.
	DeviceGetGpuInstanceByIdFunc func(device nvml.Device, n int) (nvml.GpuInstance, nvml.Return)

	// DeviceGetGpuInstanceIdFunc mocks the DeviceGetGpuInstanceId method.
	DeviceGetGpuInstanceIdFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetGpuInstancePossiblePlacementsFunc mocks the DeviceGetGpuInstancePossiblePlacements method.
	DeviceGetGpuInstancePossiblePlacementsFunc func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return)

	// DeviceGetGpuInstanceProfileInfoFunc mocks the DeviceGetGpuInstanceProfileInfo method.
	DeviceGetGpuInstanceProfileInfoFunc func(device nvml.Device, n int) (nvml.GpuInstanceProfileInfo, nvml.Return)

	// DeviceGetGpuInstanceProfileInfoVFunc mocks the DeviceGetGpuInstanceProfileInfoV method.
	DeviceGetGpuInstanceProfileInfoVFunc func(device nvml.Device, n int) nvml.GpuInstanceProfileInfoV

	// DeviceGetGpuInstanceRemainingCapacityFunc mocks the DeviceGetGpuInstanceRemainingCapacity method.
	DeviceGetGpuInstanceRemainingCapacityFunc func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return)

	// DeviceGetGpuInstancesFunc mocks the DeviceGetGpuInstances method.
	DeviceGetGpuInstancesFunc func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return)

	// DeviceGetGpuMaxPcieLinkGenerationFunc mocks the DeviceGetGpuMaxPcieLinkGeneration method.
	DeviceGetGpuMaxPcieLinkGenerationFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetGpuOperationModeFunc mocks the DeviceGetGpuOperationMode method.
	DeviceGetGpuOperationModeFunc func(device nvml.Device) (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return)

	// DeviceGetGraphicsRunningProcessesFunc mocks the DeviceGetGraphicsRunningProcesses method.
	DeviceGetGraphicsRunningProcessesFunc func(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)

	// DeviceGetGridLicensableFeaturesFunc mocks the DeviceGetGridLicensableFeatures method.
	DeviceGetGridLicensableFeaturesFunc func(device nvml.Device) (nvml.GridLicensableFeatures, nvml.Return)

	// DeviceGetGspFirmwareModeFunc mocks the DeviceGetGspFirmwareMode method.
	DeviceGetGspFirmwareModeFunc func(device nvml.Device) (bool, bool, nvml.Return)

	// DeviceGetGspFirmwareVersionFunc mocks the DeviceGetGspFirmwareVersion method.
	DeviceGetGspFirmwareVersionFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetHandleByIndexFunc mocks the DeviceGetHandleByIndex method.
	DeviceGetHandleByIndexFunc func(n int) (nvml.Device, nvml.Return)

	// DeviceGetHandleByPciBusIdFunc mocks the DeviceGetHandleByPciBusId method.
	DeviceGetHandleByPciBusIdFunc func(s string) (nvml.Device, nvml.Return)

	// DeviceGetHandleBySerialFunc mocks the DeviceGetHandleBySerial method.
	DeviceGetHandleBySerialFunc func(s string) (nvml.Device, nvml.Return)

	// DeviceGetHandleByUUIDFunc mocks the DeviceGetHandleByUUID method.
	DeviceGetHandleByUUIDFunc func(s string) (nvml.Device, nvml.Return)

	// DeviceGetHostVgpuModeFunc mocks the DeviceGetHostVgpuMode method.
	DeviceGetHostVgpuModeFunc func(device nvml.Device) (nvml.HostVgpuMode, nvml.Return)

	// DeviceGetIndexFunc mocks the DeviceGetIndex method.
	DeviceGetIndexFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetInforomConfigurationChecksumFunc mocks the DeviceGetInforomConfigurationChecksum method.
	DeviceGetInforomConfigurationChecksumFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetInforomImageVersionFunc mocks the DeviceGetInforomImageVersion method.
	DeviceGetInforomImageVersionFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetInforomVersionFunc mocks the DeviceGetInforomVersion method.
	DeviceGetInforomVersionFunc func(device nvml.Device, inforomObject nvml.InforomObject) (string, nvml.Return)

	// DeviceGetIrqNumFunc mocks the DeviceGetIrqNum method.
	DeviceGetIrqNumFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetMPSComputeRunningProcessesFunc mocks the DeviceGetMPSComputeRunningProcesses method.
	DeviceGetMPSComputeRunningProcessesFunc func(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)

	// DeviceGetMaxClockInfoFunc mocks the DeviceGetMaxClockInfo method.
	DeviceGetMaxClockInfoFunc func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

	// DeviceGetMaxCustomerBoostClockFunc mocks the DeviceGetMaxCustomerBoostClock method.
	DeviceGetMaxCustomerBoostClockFunc func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

	// DeviceGetMaxMigDeviceCountFunc mocks the DeviceGetMaxMigDeviceCount method.
	DeviceGetMaxMigDeviceCountFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetMaxPcieLinkGenerationFunc mocks the DeviceGetMaxPcieLinkGeneration method.
	DeviceGetMaxPcieLinkGenerationFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetMaxPcieLinkWidthFunc mocks the DeviceGetMaxPcieLinkWidth method.
	DeviceGetMaxPcieLinkWidthFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetMemClkMinMaxVfOffsetFunc mocks the DeviceGetMemClkMinMaxVfOffset method.
	DeviceGetMemClkMinMaxVfOffsetFunc func(device nvml.Device) (int, int, nvml.Return)

	// DeviceGetMemClkVfOffsetFunc mocks the DeviceGetMemClkVfOffset method.
	DeviceGetMemClkVfOffsetFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetMemoryAffinityFunc mocks the DeviceGetMemoryAffinity method.
	DeviceGetMemoryAffinityFunc func(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

	// DeviceGetMemoryBusWidthFunc mocks the DeviceGetMemoryBusWidth method.
	DeviceGetMemoryBusWidthFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetMemoryErrorCounterFunc mocks the DeviceGetMemoryErrorCounter method.
	DeviceGetMemoryErrorCounterFunc func(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType, memoryLocation nvml.MemoryLocation) (uint64, nvml.Return)

	// DeviceGetMemoryInfoFunc mocks the DeviceGetMemoryInfo method.
	DeviceGetMemoryInfoFunc func(device nvml.Device) (nvml.Memory, nvml.Return)

	// DeviceGetMemoryInfo_v2Func mocks the DeviceGetMemoryInfo_v2 method.
	DeviceGetMemoryInfo_v2Func func(device nvml.Device) (nvml.Memory_v2, nvml.Return)

	// DeviceGetMigDeviceHandleByIndexFunc mocks the DeviceGetMigDeviceHandleByIndex method.
	DeviceGetMigDeviceHandleByIndexFunc func(device nvml.Device, n int) (nvml.Device, nvml.Return)

	// DeviceGetMigModeFunc mocks the DeviceGetMigMode method.
	DeviceGetMigModeFunc func(device nvml.Device) (int, int, nvml.Return)

	// DeviceGetMinMaxClockOfPStateFunc mocks the DeviceGetMinMaxClockOfPState method.
	DeviceGetMinMaxClockOfPStateFunc func(device nvml.Device, clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return)

	// DeviceGetMinMaxFanSpeedFunc mocks the DeviceGetMinMaxFanSpeed method.
	DeviceGetMinMaxFanSpeedFunc func(device nvml.Device) (int, int, nvml.Return)

	// DeviceGetMinorNumberFunc mocks the DeviceGetMinorNumber method.
	DeviceGetMinorNumberFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetMultiGpuBoardFunc mocks the DeviceGetMultiGpuBoard method.
	DeviceGetMultiGpuBoardFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetNameFunc mocks the DeviceGetName method.
	DeviceGetNameFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetNumFansFunc mocks the DeviceGetNumFans method.
	DeviceGetNumFansFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetNumGpuCoresFunc mocks the DeviceGetNumGpuCores method.
	DeviceGetNumGpuCoresFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetNvLinkCapabilityFunc mocks the DeviceGetNvLinkCapability method.
	DeviceGetNvLinkCapabilityFunc func(device nvml.Device, n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return)

	// DeviceGetNvLinkErrorCounterFunc mocks the DeviceGetNvLinkErrorCounter method.
	DeviceGetNvLinkErrorCounterFunc func(device nvml.Device, n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return)

	// DeviceGetNvLinkRemoteDeviceTypeFunc mocks the DeviceGetNvLinkRemoteDeviceType method.
	DeviceGetNvLinkRemoteDeviceTypeFunc func(device nvml.Device, n int) (nvml.IntNvLinkDeviceType, nvml.Return)

	// DeviceGetNvLinkRemotePciInfoFunc mocks the DeviceGetNvLinkRemotePciInfo method.
	DeviceGetNvLinkRemotePciInfoFunc func(device nvml.Device, n int) (nvml.PciInfo, nvml.Return)

	// DeviceGetNvLinkStateFunc mocks the DeviceGetNvLinkState method.
	DeviceGetNvLinkStateFunc func(device nvml.Device, n int) (nvml.EnableState, nvml.Return)

	// DeviceGetNvLinkUtilizationControlFunc mocks the DeviceGetNvLinkUtilizationControl method.
	DeviceGetNvLinkUtilizationControlFunc func(device nvml.Device, n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return)

	// DeviceGetNvLinkUtilizationCounterFunc mocks the DeviceGetNvLinkUtilizationCounter method.
	DeviceGetNvLinkUtilizationCounterFunc func(device nvml.Device, n1 int, n2 int) (uint64, uint64, nvml.Return)

	// DeviceGetNvLinkVersionFunc mocks the DeviceGetNvLinkVersion method.
	DeviceGetNvLinkVersionFunc func(device nvml.Device, n int) (uint32, nvml.Return)

	// DeviceGetP2PStatusFunc mocks the DeviceGetP2PStatus method.
	DeviceGetP2PStatusFunc func(device1 nvml.Device, device2 nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return)

	// DeviceGetPciInfoFunc mocks the DeviceGetPciInfo method.
	DeviceGetPciInfoFunc func(device nvml.Device) (nvml.PciInfo, nvml.Return)

	// DeviceGetPcieLinkMaxSpeedFunc mocks the DeviceGetPcieLinkMaxSpeed method.
	DeviceGetPcieLinkMaxSpeedFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetPcieReplayCounterFunc mocks the DeviceGetPcieReplayCounter method.
	DeviceGetPcieReplayCounterFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetPcieSpeedFunc mocks the DeviceGetPcieSpeed method.
	DeviceGetPcieSpeedFunc func(device nvml.Device) (int, nvml.Return)

	// DeviceGetPcieThroughputFunc mocks the DeviceGetPcieThroughput method.
	DeviceGetPcieThroughputFunc func(device nvml.Device, pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return)

	// DeviceGetPerformanceStateFunc mocks the DeviceGetPerformanceState method.
	DeviceGetPerformanceStateFunc func(device nvml.Device) (nvml.Pstates, nvml.Return)

	// DeviceGetPersistenceModeFunc mocks the DeviceGetPersistenceMode method.
	DeviceGetPersistenceModeFunc func(device nvml.Device) (nvml.EnableState, nvml.Return)

	// DeviceGetPgpuMetadataStringFunc mocks the DeviceGetPgpuMetadataString method.
	DeviceGetPgpuMetadataStringFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetPowerManagementDefaultLimitFunc mocks the DeviceGetPowerManagementDefaultLimit method.
	DeviceGetPowerManagementDefaultLimitFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetPowerManagementLimitFunc mocks the DeviceGetPowerManagementLimit method.
	DeviceGetPowerManagementLimitFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetPowerManagementLimitConstraintsFunc mocks the DeviceGetPowerManagementLimitConstraints method.
	DeviceGetPowerManagementLimitConstraintsFunc func(device nvml.Device) (uint32, uint32, nvml.Return)

	// DeviceGetPowerManagementModeFunc mocks the DeviceGetPowerManagementMode method.
	DeviceGetPowerManagementModeFunc func(device nvml.Device) (nvml.EnableState, nvml.Return)

	// DeviceGetPowerSourceFunc mocks the DeviceGetPowerSource method.
	DeviceGetPowerSourceFunc func(device nvml.Device) (nvml.PowerSource, nvml.Return)

	// DeviceGetPowerStateFunc mocks the DeviceGetPowerState method.
	DeviceGetPowerStateFunc func(device nvml.Device) (nvml.Pstates, nvml.Return)

	// DeviceGetPowerUsageFunc mocks the DeviceGetPowerUsage method.
	DeviceGetPowerUsageFunc func(device nvml.Device) (uint32, nvml.Return)

	// DeviceGetProcessUtilizationFunc mocks the DeviceGetProcessUtilization method.
	DeviceGetProcessUtilizationFunc func(device nvml.Device, v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return)

	// DeviceGetRemappedRowsFunc mocks the DeviceGetRemappedRows method.
	DeviceGetRemappedRowsFunc func(device nvml.Device) (int, int, bool, bool, nvml.Return)

	// DeviceGetRetiredPagesFunc mocks the DeviceGetRetiredPages method.
	DeviceGetRetiredPagesFunc func(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return)

	// DeviceGetRetiredPagesPendingStatusFunc mocks the DeviceGetRetiredPagesPendingStatus method.
	DeviceGetRetiredPagesPendingStatusFunc func(device nvml.Device) (nvml.EnableState, nvml.Return)

	// DeviceGetRetiredPages_v2Func mocks the DeviceGetRetiredPages_v2 method.
	DeviceGetRetiredPages_v2Func func(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return)

	// DeviceGetRowRemapperHistogramFunc mocks the DeviceGetRowRemapperHistogram method.
	DeviceGetRowRemapperHistogramFunc func(device nvml.Device) (nvml.RowRemapperHistogramValues, nvml.Return)

	// DeviceGetSamplesFunc mocks the DeviceGetSamples method.
	DeviceGetSamplesFunc func(device nvml.Device, samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return)

	// DeviceGetSerialFunc mocks the DeviceGetSerial method.
	DeviceGetSerialFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetSupportedClocksThrottleReasonsFunc mocks the DeviceGetSupportedClocksThrottleReasons method.
	DeviceGetSupportedClocksThrottleReasonsFunc func(device nvml.Device) (uint64, nvml.Return)

	// DeviceGetSupportedEventTypesFunc mocks the DeviceGetSupportedEventTypes method.
	DeviceGetSupportedEventTypesFunc func(device nvml.Device) (uint64, nvml.Return)

	// DeviceGetSupportedGraphicsClocksFunc mocks the DeviceGetSupportedGraphicsClocks method.
	DeviceGetSupportedGraphicsClocksFunc func(device nvml.Device, n int) (int, uint32, nvml.Return)

	// DeviceGetSupportedMemoryClocksFunc mocks the DeviceGetSupportedMemoryClocks method.
	DeviceGetSupportedMemoryClocksFunc func(device nvml.Device) (int, uint32, nvml.Return)

	// DeviceGetSupportedPerformanceStatesFunc mocks the DeviceGetSupportedPerformanceStates method.
	DeviceGetSupportedPerformanceStatesFunc func(device nvml.Device) ([]nvml.Pstates, nvml.Return)

	// DeviceGetSupportedVgpusFunc mocks the DeviceGetSupportedVgpus method.
	DeviceGetSupportedVgpusFunc func(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return)

	// DeviceGetTargetFanSpeedFunc mocks the DeviceGetTargetFanSpeed method.
	DeviceGetTargetFanSpeedFunc func(device nvml.Device, n int) (int, nvml.Return)

	// DeviceGetTemperatureFunc mocks the DeviceGetTemperature method.
	DeviceGetTemperatureFunc func(device nvml.Device, temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return)

	// DeviceGetTemperatureThresholdFunc mocks the DeviceGetTemperatureThreshold method.
	DeviceGetTemperatureThresholdFunc func(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return)

	// DeviceGetThermalSettingsFunc mocks the DeviceGetThermalSettings method.
	DeviceGetThermalSettingsFunc func(device nvml.Device, v uint32) (nvml.GpuThermalSettings, nvml.Return)

	// DeviceGetTopologyCommonAncestorFunc mocks the DeviceGetTopologyCommonAncestor method.
	DeviceGetTopologyCommonAncestorFunc func(device1 nvml.Device, device2 nvml.Device) (nvml.GpuTopologyLevel, nvml.Return)

	// DeviceGetTopologyNearestGpusFunc mocks the DeviceGetTopologyNearestGpus method.
	DeviceGetTopologyNearestGpusFunc func(device nvml.Device, gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return)

	// DeviceGetTotalEccErrorsFunc mocks the DeviceGetTotalEccErrors method.
	DeviceGetTotalEccErrorsFunc func(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (uint64, nvml.Return)

	// DeviceGetTotalEnergyConsumptionFunc mocks the DeviceGetTotalEnergyConsumption method.
	DeviceGetTotalEnergyConsumptionFunc func(device nvml.Device) (uint64, nvml.Return)

	// DeviceGetUUIDFunc mocks the DeviceGetUUID method.
	DeviceGetUUIDFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetUtilizationRatesFunc mocks the DeviceGetUtilizationRates method.
	DeviceGetUtilizationRatesFunc func(device nvml.Device) (nvml.Utilization, nvml.Return)

	// DeviceGetVbiosVersionFunc mocks the DeviceGetVbiosVersion method.
	DeviceGetVbiosVersionFunc func(device nvml.Device) (string, nvml.Return)

	// DeviceGetVgpuCapabilitiesFunc mocks the DeviceGetVgpuCapabilities method.
	DeviceGetVgpuCapabilitiesFunc func(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return)

	// DeviceGetVgpuMetadataFunc mocks the DeviceGetVgpuMetadata method.
	DeviceGetVgpuMetadataFunc func(device nvml.Device) (nvml.VgpuPgpuMetadata, nvml.Return)

	// DeviceGetVgpuProcessUtilizationFunc mocks the DeviceGetVgpuProcessUtilization method.
	DeviceGetVgpuProcessUtilizationFunc func(device nvml.Device, v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return)

	// DeviceGetVgpuSchedulerCapabilitiesFunc mocks the DeviceGetVgpuSchedulerCapabilities method.
	DeviceGetVgpuSchedulerCapabilitiesFunc func(device nvml.Device) (nvml.VgpuSchedulerCapabilities, nvml.Return)

	// DeviceGetVgpuSchedulerLogFunc mocks the DeviceGetVgpuSchedulerLog method.
	DeviceGetVgpuSchedulerLogFunc func(device nvml.Device) (nvml.VgpuSchedulerLog, nvml.Return)

	// DeviceGetVgpuSchedulerStateFunc mocks the DeviceGetVgpuSchedulerState method.
	DeviceGetVgpuSchedulerStateFunc func(device nvml.Device) (nvml.VgpuSchedulerGetState, nvml.Return)

	// DeviceGetVgpuUtilizationFunc mocks the DeviceGetVgpuUtilization method.
	DeviceGetVgpuUtilizationFunc func(device nvml.Device, v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)

	// DeviceGetViolationStatusFunc mocks the DeviceGetViolationStatus method.
	DeviceGetViolationStatusFunc func(device nvml.Device, perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return)

	// DeviceGetVirtualizationModeFunc mocks the DeviceGetVirtualizationMode method.
	DeviceGetVirtualizationModeFunc func(device nvml.Device) (nvml.GpuVirtualizationMode, nvml.Return)

	// DeviceIsMigDeviceHandleFunc mocks the DeviceIsMigDeviceHandle method.
	DeviceIsMigDeviceHandleFunc func(device nvml.Device) (bool, nvml.Return)

	// DeviceModifyDrainStateFunc mocks the DeviceModifyDrainState method.
	DeviceModifyDrainStateFunc func(pciInfo *nvml.PciInfo, enableState nvml.EnableState) nvml.Return

	// DeviceOnSameBoardFunc mocks the DeviceOnSameBoard method.
	DeviceOnSameBoardFunc func(device1 nvml.Device, device2 nvml.Device) (int, nvml.Return)

	// DeviceQueryDrainStateFunc mocks the DeviceQueryDrainState method.
	DeviceQueryDrainStateFunc func(pciInfo *nvml.PciInfo) (nvml.EnableState, nvml.Return)

	// DeviceRegisterEventsFunc mocks the DeviceRegisterEvents method.
	DeviceRegisterEventsFunc func(device nvml.Device, v uint64, eventSet nvml.EventSet) nvml.Return

	// DeviceRemoveGpuFunc mocks the DeviceRemoveGpu method.
	DeviceRemoveGpuFunc func(pciInfo *nvml.PciInfo) nvml.Return

	// DeviceRemoveGpu_v2Func mocks the DeviceRemoveGpu_v2 method.
	DeviceRemoveGpu_v2Func func(pciInfo *nvml.PciInfo, detachGpuState nvml.DetachGpuState, pcieLinkState nvml.PcieLinkState) nvml.Return

	// DeviceResetApplicationsClocksFunc mocks the DeviceResetApplicationsClocks method.
	DeviceResetApplicationsClocksFunc func(device nvml.Device) nvml.Return

	// DeviceResetGpuLockedClocksFunc mocks the DeviceResetGpuLockedClocks method.
	DeviceResetGpuLockedClocksFunc func(device nvml.Device) nvml.Return

	// DeviceResetMemoryLockedClocksFunc mocks the DeviceResetMemoryLockedClocks method.
	DeviceResetMemoryLockedClocksFunc func(device nvml.Device) nvml.Return

	// DeviceResetNvLinkErrorCountersFunc mocks the DeviceResetNvLinkErrorCounters method.
	DeviceResetNvLinkErrorCountersFunc func(device nvml.Device, n int) nvml.Return

	// DeviceResetNvLinkUtilizationCounterFunc mocks the DeviceResetNvLinkUtilizationCounter method.
	DeviceResetNvLinkUtilizationCounterFunc func(device nvml.Device, n1 int, n2 int) nvml.Return

	// DeviceSetAPIRestrictionFunc mocks the DeviceSetAPIRestriction method.
	DeviceSetAPIRestrictionFunc func(device nvml.Device, restrictedAPI nvml.RestrictedAPI, enableState nvml.EnableState) nvml.Return

	// DeviceSetAccountingModeFunc mocks the DeviceSetAccountingMode method.
	DeviceSetAccountingModeFunc func(device nvml.Device, enableState nvml.EnableState) nvml.Return

	// DeviceSetApplicationsClocksFunc mocks the DeviceSetApplicationsClocks method.
	DeviceSetApplicationsClocksFunc func(device nvml.Device, v1 uint32, v2 uint32) nvml.Return

	// DeviceSetAutoBoostedClocksEnabledFunc mocks the DeviceSetAutoBoostedClocksEnabled method.
	DeviceSetAutoBoostedClocksEnabledFunc func(device nvml.Device, enableState nvml.EnableState) nvml.Return

	// DeviceSetComputeModeFunc mocks the DeviceSetComputeMode method.
	DeviceSetComputeModeFunc func(device nvml.Device, computeMode nvml.ComputeMode) nvml.Return

	// DeviceSetCpuAffinityFunc mocks the DeviceSetCpuAffinity method.
	DeviceSetCpuAffinityFunc func(device nvml.Device) nvml.Return

	// DeviceSetDefaultAutoBoostedClocksEnabledFunc mocks the DeviceSetDefaultAutoBoostedClocksEnabled method.
	DeviceSetDefaultAutoBoostedClocksEnabledFunc func(device nvml.Device, enableState nvml.EnableState, v uint32) nvml.Return

	// DeviceSetDefaultFanSpeed_v2Func mocks the DeviceSetDefaultFanSpeed_v2 method.
	DeviceSetDefaultFanSpeed_v2Func func(device nvml.Device, n int) nvml.Return

	// DeviceSetDriverModelFunc mocks the DeviceSetDriverModel method.
	DeviceSetDriverModelFunc func(device nvml.Device, driverModel nvml.DriverModel, v uint32) nvml.Return

	// DeviceSetEccModeFunc mocks the DeviceSetEccMode method.
	DeviceSetEccModeFunc func(device nvml.Device, enableState nvml.EnableState) nvml.Return

	// DeviceSetFanControlPolicyFunc mocks the DeviceSetFanControlPolicy method.
	DeviceSetFanControlPolicyFunc func(device nvml.Device, n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return

	// DeviceSetFanSpeed_v2Func mocks the DeviceSetFanSpeed_v2 method.
	DeviceSetFanSpeed_v2Func func(device nvml.Device, n1 int, n2 int) nvml.Return

	// DeviceSetGpcClkVfOffsetFunc mocks the DeviceSetGpcClkVfOffset method.
	DeviceSetGpcClkVfOffsetFunc func(device nvml.Device, n int) nvml.Return

	// DeviceSetGpuLockedClocksFunc mocks the DeviceSetGpuLockedClocks method.
	DeviceSetGpuLockedClocksFunc func(device nvml.Device, v1 uint32, v2 uint32) nvml.Return

	// DeviceSetGpuOperationModeFunc mocks the DeviceSetGpuOperationMode method.
	DeviceSetGpuOperationModeFunc func(device nvml.Device, gpuOperationMode nvml.GpuOperationMode) nvml.Return

	// DeviceSetMemClkVfOffsetFunc mocks the DeviceSetMemClkVfOffset method.
	DeviceSetMemClkVfOffsetFunc func(device nvml.Device, n int) nvml.Return

	// DeviceSetMemoryLockedClocksFunc mocks the DeviceSetMemoryLockedClocks method.
	DeviceSetMemoryLockedClocksFunc func(device nvml.Device, v1 uint32, v2 uint32) nvml.Return

	// DeviceSetMigModeFunc mocks the DeviceSetMigMode method.
	DeviceSetMigModeFunc func(device nvml.Device, n int) (nvml.Return, nvml.Return)

	// DeviceSetNvLinkDeviceLowPowerThresholdFunc mocks the DeviceSetNvLinkDeviceLowPowerThreshold method.
	DeviceSetNvLinkDeviceLowPowerThresholdFunc func(device nvml.Device, nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return

	// DeviceSetNvLinkUtilizationControlFunc mocks the DeviceSetNvLinkUtilizationControl method.
	DeviceSetNvLinkUtilizationControlFunc func(device nvml.Device, n1 int, n2 int, nvLinkUtilizationControl *nvml.NvLinkUtilizationControl, b bool) nvml.Return

	// DeviceSetPersistenceModeFunc mocks the DeviceSetPersistenceMode method.
	DeviceSetPersistenceModeFunc func(device nvml.Device, enableState nvml.EnableState) nvml.Return

	// DeviceSetPowerManagementLimitFunc mocks the DeviceSetPowerManagementLimit method.
	DeviceSetPowerManagementLimitFunc func(device nvml.Device, v uint32) nvml.Return

	// DeviceSetTemperatureThresholdFunc mocks the DeviceSetTemperatureThreshold method.
	DeviceSetTemperatureThresholdFunc func(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return

	// DeviceSetVgpuSchedulerStateFunc mocks the DeviceSetVgpuSchedulerState method.
	DeviceSetVgpuSchedulerStateFunc func(device nvml.Device, vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return

	// DeviceSetVirtualizationModeFunc mocks the DeviceSetVirtualizationMode method.
	DeviceSetVirtualizationModeFunc func(device nvml.Device, gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return

	// DeviceValidateInforomFunc mocks the DeviceValidateInforom method.
	DeviceValidateInforomFunc func(device nvml.Device) nvml.Return

	// ErrorStringFunc mocks the ErrorString method.
	ErrorStringFunc func(returnMoqParam nvml.Return) string

	// EventSetCreateFunc mocks the EventSetCreate method.
	EventSetCreateFunc func() (nvml.EventSet, nvml.Return)

	// EventSetFreeFunc mocks the EventSetFree method.
	EventSetFreeFunc func(eventSet nvml.EventSet) nvml.Return

	// EventSetWaitFunc mocks the EventSetWait method.
	EventSetWaitFunc func(eventSet nvml.EventSet, v uint32) (nvml.EventData, nvml.Return)

	// ExtensionsFunc mocks the Extensions method.
	ExtensionsFunc func() nvml.ExtendedInterface

	// GetExcludedDeviceCountFunc mocks the GetExcludedDeviceCount method.
	GetExcludedDeviceCountFunc func() (int, nvml.Return)

	// GetExcludedDeviceInfoByIndexFunc mocks the GetExcludedDeviceInfoByIndex method.
	GetExcludedDeviceInfoByIndexFunc func(n int) (nvml.ExcludedDeviceInfo, nvml.Return)

	// GetVgpuCompatibilityFunc mocks the GetVgpuCompatibility method.
	GetVgpuCompatibilityFunc func(vgpuMetadata *nvml.VgpuMetadata, vgpuPgpuMetadata *nvml.VgpuPgpuMetadata) (nvml.VgpuPgpuCompatibility, nvml.Return)

	// GetVgpuDriverCapabilitiesFunc mocks the GetVgpuDriverCapabilities method.
	GetVgpuDriverCapabilitiesFunc func(vgpuDriverCapability nvml.VgpuDriverCapability) (bool, nvml.Return)

	// GetVgpuVersionFunc mocks the GetVgpuVersion method.
	GetVgpuVersionFunc func() (nvml.VgpuVersion, nvml.VgpuVersion, nvml.Return)

	// GpmMetricsGetFunc mocks the GpmMetricsGet method.
	GpmMetricsGetFunc func(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.Return

	// GpmMetricsGetVFunc mocks the GpmMetricsGetV method.
	GpmMetricsGetVFunc func(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.GpmMetricsGetVType

	// GpmMigSampleGetFunc mocks the GpmMigSampleGet method.
	GpmMigSampleGetFunc func(device nvml.Device, n int, gpmSample nvml.GpmSample) nvml.Return

	// GpmQueryDeviceSupportFunc mocks the GpmQueryDeviceSupport method.
	GpmQueryDeviceSupportFunc func(device nvml.Device) (nvml.GpmSupport, nvml.Return)

	// GpmQueryDeviceSupportVFunc mocks the GpmQueryDeviceSupportV method.
	GpmQueryDeviceSupportVFunc func(device nvml.Device) nvml.GpmSupportV

	// GpmSampleAllocFunc mocks the GpmSampleAlloc method.
	GpmSampleAllocFunc func() (nvml.GpmSample, nvml.Return)

	// GpmSampleFreeFunc mocks the GpmSampleFree method.
	GpmSampleFreeFunc func(gpmSample nvml.GpmSample) nvml.Return

	// GpmSampleGetFunc mocks the GpmSampleGet method.
	GpmSampleGetFunc func(device nvml.Device, gpmSample nvml.GpmSample) nvml.Return

	// GpuInstanceCreateComputeInstanceFunc mocks the GpuInstanceCreateComputeInstance method.
	GpuInstanceCreateComputeInstanceFunc func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (nvml.ComputeInstance, nvml.Return)

	// GpuInstanceCreateComputeInstanceWithPlacementFunc mocks the GpuInstanceCreateComputeInstanceWithPlacement method.
	GpuInstanceCreateComputeInstanceWithPlacementFunc func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo, computeInstancePlacement *nvml.ComputeInstancePlacement) (nvml.ComputeInstance, nvml.Return)

	// GpuInstanceDestroyFunc mocks the GpuInstanceDestroy method.
	GpuInstanceDestroyFunc func(gpuInstance nvml.GpuInstance) nvml.Return

	// GpuInstanceGetComputeInstanceByIdFunc mocks the GpuInstanceGetComputeInstanceById method.
	GpuInstanceGetComputeInstanceByIdFunc func(gpuInstance nvml.GpuInstance, n int) (nvml.ComputeInstance, nvml.Return)

	// GpuInstanceGetComputeInstancePossiblePlacementsFunc mocks the GpuInstanceGetComputeInstancePossiblePlacements method.
	GpuInstanceGetComputeInstancePossiblePlacementsFunc func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstancePlacement, nvml.Return)

	// GpuInstanceGetComputeInstanceProfileInfoFunc mocks the GpuInstanceGetComputeInstanceProfileInfo method.
	GpuInstanceGetComputeInstanceProfileInfoFunc func(gpuInstance nvml.GpuInstance, n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return)

	// GpuInstanceGetComputeInstanceProfileInfoVFunc mocks the GpuInstanceGetComputeInstanceProfileInfoV method.
	GpuInstanceGetComputeInstanceProfileInfoVFunc func(gpuInstance nvml.GpuInstance, n1 int, n2 int) nvml.ComputeInstanceProfileInfoV

	// GpuInstanceGetComputeInstanceRemainingCapacityFunc mocks the GpuInstanceGetComputeInstanceRemainingCapacity method.
	GpuInstanceGetComputeInstanceRemainingCapacityFunc func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (int, nvml.Return)

	// GpuInstanceGetComputeInstancesFunc mocks the GpuInstanceGetComputeInstances method.
	GpuInstanceGetComputeInstancesFunc func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstance, nvml.Return)

	// GpuInstanceGetInfoFunc mocks the GpuInstanceGetInfo method.
	GpuInstanceGetInfoFunc func(gpuInstance nvml.GpuInstance) (nvml.GpuInstanceInfo, nvml.Return)

	// InitFunc mocks the Init method.
	InitFunc func() nvml.Return

	// InitWithFlagsFunc mocks the InitWithFlags method.
	InitWithFlagsFunc func(v uint32) nvml.Return

	// SetVgpuVersionFunc mocks the SetVgpuVersion method.
	SetVgpuVersionFunc func(vgpuVersion *nvml.VgpuVersion) nvml.Return

	// ShutdownFunc mocks the Shutdown method.
	ShutdownFunc func() nvml.Return

	// SystemGetCudaDriverVersionFunc mocks the SystemGetCudaDriverVersion method.
	SystemGetCudaDriverVersionFunc func() (int, nvml.Return)

	// SystemGetCudaDriverVersion_v2Func mocks the SystemGetCudaDriverVersion_v2 method.
	SystemGetCudaDriverVersion_v2Func func() (int, nvml.Return)

	// SystemGetDriverVersionFunc mocks the SystemGetDriverVersion method.
	SystemGetDriverVersionFunc func() (string, nvml.Return)

	// SystemGetHicVersionFunc mocks the SystemGetHicVersion method.
	SystemGetHicVersionFunc func() ([]nvml.HwbcEntry, nvml.Return)

	// SystemGetNVMLVersionFunc mocks the SystemGetNVMLVersion method.
	SystemGetNVMLVersionFunc func() (string, nvml.Return)

	// SystemGetProcessNameFunc mocks the SystemGetProcessName method.
	SystemGetProcessNameFunc func(n int) (string, nvml.Return)

	// SystemGetTopologyGpuSetFunc mocks the SystemGetTopologyGpuSet method.
	SystemGetTopologyGpuSetFunc func(n int) ([]nvml.Device, nvml.Return)

	// UnitGetCountFunc mocks the UnitGetCount method.
	UnitGetCountFunc func() (int, nvml.Return)

	// UnitGetDevicesFunc mocks the UnitGetDevices method.
	UnitGetDevicesFunc func(unit nvml.Unit) ([]nvml.Device, nvml.Return)

	// UnitGetFanSpeedInfoFunc mocks the UnitGetFanSpeedInfo method.
	UnitGetFanSpeedInfoFunc func(unit nvml.Unit) (nvml.UnitFanSpeeds, nvml.Return)

	// UnitGetHandleByIndexFunc mocks the UnitGetHandleByIndex method.
	UnitGetHandleByIndexFunc func(n int) (nvml.Unit, nvml.Return)

	// UnitGetLedStateFunc mocks the UnitGetLedState method.
	UnitGetLedStateFunc func(unit nvml.Unit) (nvml.LedState, nvml.Return)

	// UnitGetPsuInfoFunc mocks the UnitGetPsuInfo method.
	UnitGetPsuInfoFunc func(unit nvml.Unit) (nvml.PSUInfo, nvml.Return)

	// UnitGetTemperatureFunc mocks the UnitGetTemperature method.
	UnitGetTemperatureFunc func(unit nvml.Unit, n int) (uint32, nvml.Return)

	// UnitGetUnitInfoFunc mocks the UnitGetUnitInfo method.
	UnitGetUnitInfoFunc func(unit nvml.Unit) (nvml.UnitInfo, nvml.Return)

	// UnitSetLedStateFunc mocks the UnitSetLedState method.
	UnitSetLedStateFunc func(unit nvml.Unit, ledColor nvml.LedColor) nvml.Return

	// VgpuInstanceClearAccountingPidsFunc mocks the VgpuInstanceClearAccountingPids method.
	VgpuInstanceClearAccountingPidsFunc func(vgpuInstance nvml.VgpuInstance) nvml.Return

	// VgpuInstanceGetAccountingModeFunc mocks the VgpuInstanceGetAccountingMode method.
	VgpuInstanceGetAccountingModeFunc func(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return)

	// VgpuInstanceGetAccountingPidsFunc mocks the VgpuInstanceGetAccountingPids method.
	VgpuInstanceGetAccountingPidsFunc func(vgpuInstance nvml.VgpuInstance) ([]int, nvml.Return)

	// VgpuInstanceGetAccountingStatsFunc mocks the VgpuInstanceGetAccountingStats method.
	VgpuInstanceGetAccountingStatsFunc func(vgpuInstance nvml.VgpuInstance, n int) (nvml.AccountingStats, nvml.Return)

	// VgpuInstanceGetEccModeFunc mocks the VgpuInstanceGetEccMode method.
	VgpuInstanceGetEccModeFunc func(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return)

	// VgpuInstanceGetEncoderCapacityFunc mocks the VgpuInstanceGetEncoderCapacity method.
	VgpuInstanceGetEncoderCapacityFunc func(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)

	// VgpuInstanceGetEncoderSessionsFunc mocks the VgpuInstanceGetEncoderSessions method.
	VgpuInstanceGetEncoderSessionsFunc func(vgpuInstance nvml.VgpuInstance) (int, nvml.EncoderSessionInfo, nvml.Return)

	// VgpuInstanceGetEncoderStatsFunc mocks the VgpuInstanceGetEncoderStats method.
	VgpuInstanceGetEncoderStatsFunc func(vgpuInstance nvml.VgpuInstance) (int, uint32, uint32, nvml.Return)

	// VgpuInstanceGetFBCSessionsFunc mocks the VgpuInstanceGetFBCSessions method.
	VgpuInstanceGetFBCSessionsFunc func(vgpuInstance nvml.VgpuInstance) (int, nvml.FBCSessionInfo, nvml.Return)

	// VgpuInstanceGetFBCStatsFunc mocks the VgpuInstanceGetFBCStats method.
	VgpuInstanceGetFBCStatsFunc func(vgpuInstance nvml.VgpuInstance) (nvml.FBCStats, nvml.Return)

	// VgpuInstanceGetFbUsageFunc mocks the VgpuInstanceGetFbUsage method.
	VgpuInstanceGetFbUsageFunc func(vgpuInstance nvml.VgpuInstance) (uint64, nvml.Return)

	// VgpuInstanceGetFrameRateLimitFunc mocks the VgpuInstanceGetFrameRateLimit method.
	VgpuInstanceGetFrameRateLimitFunc func(vgpuInstance nvml.VgpuInstance) (uint32, nvml.Return)

	// VgpuInstanceGetGpuInstanceIdFunc mocks the VgpuInstanceGetGpuInstanceId method.
	VgpuInstanceGetGpuInstanceIdFunc func(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)

	// VgpuInstanceGetGpuPciIdFunc mocks the VgpuInstanceGetGpuPciId method.
	VgpuInstanceGetGpuPciIdFunc func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

	// VgpuInstanceGetLicenseInfoFunc mocks the VgpuInstanceGetLicenseInfo method.
	VgpuInstanceGetLicenseInfoFunc func(vgpuInstance nvml.VgpuInstance) (nvml.VgpuLicenseInfo, nvml.Return)

	// VgpuInstanceGetLicenseStatusFunc mocks the VgpuInstanceGetLicenseStatus method.
	VgpuInstanceGetLicenseStatusFunc func(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)

	// VgpuInstanceGetMdevUUIDFunc mocks the VgpuInstanceGetMdevUUID method.
	VgpuInstanceGetMdevUUIDFunc func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

	// VgpuInstanceGetMetadataFunc mocks the VgpuInstanceGetMetadata method.
	VgpuInstanceGetMetadataFunc func(vgpuInstance nvml.VgpuInstance) (nvml.VgpuMetadata, nvml.Return)

	// VgpuInstanceGetTypeFunc mocks the VgpuInstanceGetType method.
	VgpuInstanceGetTypeFunc func(vgpuInstance nvml.VgpuInstance) (nvml.VgpuTypeId, nvml.Return)

	// VgpuInstanceGetUUIDFunc mocks the VgpuInstanceGetUUID method.
	VgpuInstanceGetUUIDFunc func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

	// VgpuInstanceGetVmDriverVersionFunc mocks the VgpuInstanceGetVmDriverVersion method.
	VgpuInstanceGetVmDriverVersionFunc func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

	// VgpuInstanceGetVmIDFunc mocks the VgpuInstanceGetVmID method.
	VgpuInstanceGetVmIDFunc func(vgpuInstance nvml.VgpuInstance) (string, nvml.VgpuVmIdType, nvml.Return)

	// VgpuInstanceSetEncoderCapacityFunc mocks the VgpuInstanceSetEncoderCapacity method.
	VgpuInstanceSetEncoderCapacityFunc func(vgpuInstance nvml.VgpuInstance, n int) nvml.Return

	// VgpuTypeGetCapabilitiesFunc mocks the VgpuTypeGetCapabilities method.
	VgpuTypeGetCapabilitiesFunc func(vgpuTypeId nvml.VgpuTypeId, vgpuCapability nvml.VgpuCapability) (bool, nvml.Return)

	// VgpuTypeGetClassFunc mocks the VgpuTypeGetClass method.
	VgpuTypeGetClassFunc func(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)

	// VgpuTypeGetDeviceIDFunc mocks the VgpuTypeGetDeviceID method.
	VgpuTypeGetDeviceIDFunc func(vgpuTypeId nvml.VgpuTypeId) (uint64, uint64, nvml.Return)

	// VgpuTypeGetFrameRateLimitFunc mocks the VgpuTypeGetFrameRateLimit method.
	VgpuTypeGetFrameRateLimitFunc func(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return)

	// VgpuTypeGetFramebufferSizeFunc mocks the VgpuTypeGetFramebufferSize method.
	VgpuTypeGetFramebufferSizeFunc func(vgpuTypeId nvml.VgpuTypeId) (uint64, nvml.Return)

	// VgpuTypeGetGpuInstanceProfileIdFunc mocks the VgpuTypeGetGpuInstanceProfileId method.
	VgpuTypeGetGpuInstanceProfileIdFunc func(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return)

	// VgpuTypeGetLicenseFunc mocks the VgpuTypeGetLicense method.
	VgpuTypeGetLicenseFunc func(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)

	// VgpuTypeGetMaxInstancesFunc mocks the VgpuTypeGetMaxInstances method.
	VgpuTypeGetMaxInstancesFunc func(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)

	// VgpuTypeGetMaxInstancesPerVmFunc mocks the VgpuTypeGetMaxInstancesPerVm method.
	VgpuTypeGetMaxInstancesPerVmFunc func(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)

	// VgpuTypeGetNameFunc mocks the VgpuTypeGetName method.
	VgpuTypeGetNameFunc func(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)

	// VgpuTypeGetNumDisplayHeadsFunc mocks the VgpuTypeGetNumDisplayHeads method.
	VgpuTypeGetNumDisplayHeadsFunc func(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)

	// VgpuTypeGetResolutionFunc mocks the VgpuTypeGetResolution method.
	VgpuTypeGetResolutionFunc func(vgpuTypeId nvml.VgpuTypeId, n int) (uint32, uint32, nvml.Return)
	// contains filtered or unexported fields
}

Interface is a mock implementation of nvml.Interface.

func TestSomethingThatUsesInterface(t *testing.T) {

	// make and configure a mocked nvml.Interface
	mockedInterface := &Interface{
		ComputeInstanceDestroyFunc: func(computeInstance nvml.ComputeInstance) nvml.Return {
			panic("mock out the ComputeInstanceDestroy method")
		},
		ComputeInstanceGetInfoFunc: func(computeInstance nvml.ComputeInstance) (nvml.ComputeInstanceInfo, nvml.Return) {
			panic("mock out the ComputeInstanceGetInfo method")
		},
		DeviceCcuGetStreamStateFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceCcuGetStreamState method")
		},
		DeviceCcuSetStreamStateFunc: func(device nvml.Device, n int) nvml.Return {
			panic("mock out the DeviceCcuSetStreamState method")
		},
		DeviceClearAccountingPidsFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the DeviceClearAccountingPids method")
		},
		DeviceClearCpuAffinityFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the DeviceClearCpuAffinity method")
		},
		DeviceClearEccErrorCountsFunc: func(device nvml.Device, eccCounterType nvml.EccCounterType) nvml.Return {
			panic("mock out the DeviceClearEccErrorCounts method")
		},
		DeviceClearFieldValuesFunc: func(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return {
			panic("mock out the DeviceClearFieldValues method")
		},
		DeviceCreateGpuInstanceFunc: func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return) {
			panic("mock out the DeviceCreateGpuInstance method")
		},
		DeviceCreateGpuInstanceWithPlacementFunc: func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, gpuInstancePlacement *nvml.GpuInstancePlacement) (nvml.GpuInstance, nvml.Return) {
			panic("mock out the DeviceCreateGpuInstanceWithPlacement method")
		},
		DeviceDiscoverGpusFunc: func() (nvml.PciInfo, nvml.Return) {
			panic("mock out the DeviceDiscoverGpus method")
		},
		DeviceFreezeNvLinkUtilizationCounterFunc: func(device nvml.Device, n1 int, n2 int, enableState nvml.EnableState) nvml.Return {
			panic("mock out the DeviceFreezeNvLinkUtilizationCounter method")
		},
		DeviceGetAPIRestrictionFunc: func(device nvml.Device, restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetAPIRestriction method")
		},
		DeviceGetAccountingBufferSizeFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetAccountingBufferSize method")
		},
		DeviceGetAccountingModeFunc: func(device nvml.Device) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetAccountingMode method")
		},
		DeviceGetAccountingPidsFunc: func(device nvml.Device) ([]int, nvml.Return) {
			panic("mock out the DeviceGetAccountingPids method")
		},
		DeviceGetAccountingStatsFunc: func(device nvml.Device, v uint32) (nvml.AccountingStats, nvml.Return) {
			panic("mock out the DeviceGetAccountingStats method")
		},
		DeviceGetActiveVgpusFunc: func(device nvml.Device) ([]nvml.VgpuInstance, nvml.Return) {
			panic("mock out the DeviceGetActiveVgpus method")
		},
		DeviceGetAdaptiveClockInfoStatusFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetAdaptiveClockInfoStatus method")
		},
		DeviceGetApplicationsClockFunc: func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the DeviceGetApplicationsClock method")
		},
		DeviceGetArchitectureFunc: func(device nvml.Device) (nvml.DeviceArchitecture, nvml.Return) {
			panic("mock out the DeviceGetArchitecture method")
		},
		DeviceGetAttributesFunc: func(device nvml.Device) (nvml.DeviceAttributes, nvml.Return) {
			panic("mock out the DeviceGetAttributes method")
		},
		DeviceGetAutoBoostedClocksEnabledFunc: func(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetAutoBoostedClocksEnabled method")
		},
		DeviceGetBAR1MemoryInfoFunc: func(device nvml.Device) (nvml.BAR1Memory, nvml.Return) {
			panic("mock out the DeviceGetBAR1MemoryInfo method")
		},
		DeviceGetBoardIdFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetBoardId method")
		},
		DeviceGetBoardPartNumberFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetBoardPartNumber method")
		},
		DeviceGetBrandFunc: func(device nvml.Device) (nvml.BrandType, nvml.Return) {
			panic("mock out the DeviceGetBrand method")
		},
		DeviceGetBridgeChipInfoFunc: func(device nvml.Device) (nvml.BridgeChipHierarchy, nvml.Return) {
			panic("mock out the DeviceGetBridgeChipInfo method")
		},
		DeviceGetBusTypeFunc: func(device nvml.Device) (nvml.BusType, nvml.Return) {
			panic("mock out the DeviceGetBusType method")
		},
		DeviceGetClkMonStatusFunc: func(device nvml.Device) (nvml.ClkMonStatus, nvml.Return) {
			panic("mock out the DeviceGetClkMonStatus method")
		},
		DeviceGetClockFunc: func(device nvml.Device, clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return) {
			panic("mock out the DeviceGetClock method")
		},
		DeviceGetClockInfoFunc: func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the DeviceGetClockInfo method")
		},
		DeviceGetComputeInstanceIdFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetComputeInstanceId method")
		},
		DeviceGetComputeModeFunc: func(device nvml.Device) (nvml.ComputeMode, nvml.Return) {
			panic("mock out the DeviceGetComputeMode method")
		},
		DeviceGetComputeRunningProcessesFunc: func(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return) {
			panic("mock out the DeviceGetComputeRunningProcesses method")
		},
		DeviceGetCountFunc: func() (int, nvml.Return) {
			panic("mock out the DeviceGetCount method")
		},
		DeviceGetCpuAffinityFunc: func(device nvml.Device, n int) ([]uint, nvml.Return) {
			panic("mock out the DeviceGetCpuAffinity method")
		},
		DeviceGetCpuAffinityWithinScopeFunc: func(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return) {
			panic("mock out the DeviceGetCpuAffinityWithinScope method")
		},
		DeviceGetCreatableVgpusFunc: func(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return) {
			panic("mock out the DeviceGetCreatableVgpus method")
		},
		DeviceGetCudaComputeCapabilityFunc: func(device nvml.Device) (int, int, nvml.Return) {
			panic("mock out the DeviceGetCudaComputeCapability method")
		},
		DeviceGetCurrPcieLinkGenerationFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetCurrPcieLinkGeneration method")
		},
		DeviceGetCurrPcieLinkWidthFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetCurrPcieLinkWidth method")
		},
		DeviceGetCurrentClocksThrottleReasonsFunc: func(device nvml.Device) (uint64, nvml.Return) {
			panic("mock out the DeviceGetCurrentClocksThrottleReasons method")
		},
		DeviceGetDecoderUtilizationFunc: func(device nvml.Device) (uint32, uint32, nvml.Return) {
			panic("mock out the DeviceGetDecoderUtilization method")
		},
		DeviceGetDefaultApplicationsClockFunc: func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the DeviceGetDefaultApplicationsClock method")
		},
		DeviceGetDefaultEccModeFunc: func(device nvml.Device) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetDefaultEccMode method")
		},
		DeviceGetDetailedEccErrorsFunc: func(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (nvml.EccErrorCounts, nvml.Return) {
			panic("mock out the DeviceGetDetailedEccErrors method")
		},
		DeviceGetDeviceHandleFromMigDeviceHandleFunc: func(device nvml.Device) (nvml.Device, nvml.Return) {
			panic("mock out the DeviceGetDeviceHandleFromMigDeviceHandle method")
		},
		DeviceGetDisplayActiveFunc: func(device nvml.Device) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetDisplayActive method")
		},
		DeviceGetDisplayModeFunc: func(device nvml.Device) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetDisplayMode method")
		},
		DeviceGetDriverModelFunc: func(device nvml.Device) (nvml.DriverModel, nvml.DriverModel, nvml.Return) {
			panic("mock out the DeviceGetDriverModel method")
		},
		DeviceGetDynamicPstatesInfoFunc: func(device nvml.Device) (nvml.GpuDynamicPstatesInfo, nvml.Return) {
			panic("mock out the DeviceGetDynamicPstatesInfo method")
		},
		DeviceGetEccModeFunc: func(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetEccMode method")
		},
		DeviceGetEncoderCapacityFunc: func(device nvml.Device, encoderType nvml.EncoderType) (int, nvml.Return) {
			panic("mock out the DeviceGetEncoderCapacity method")
		},
		DeviceGetEncoderSessionsFunc: func(device nvml.Device) ([]nvml.EncoderSessionInfo, nvml.Return) {
			panic("mock out the DeviceGetEncoderSessions method")
		},
		DeviceGetEncoderStatsFunc: func(device nvml.Device) (int, uint32, uint32, nvml.Return) {
			panic("mock out the DeviceGetEncoderStats method")
		},
		DeviceGetEncoderUtilizationFunc: func(device nvml.Device) (uint32, uint32, nvml.Return) {
			panic("mock out the DeviceGetEncoderUtilization method")
		},
		DeviceGetEnforcedPowerLimitFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetEnforcedPowerLimit method")
		},
		DeviceGetFBCSessionsFunc: func(device nvml.Device) ([]nvml.FBCSessionInfo, nvml.Return) {
			panic("mock out the DeviceGetFBCSessions method")
		},
		DeviceGetFBCStatsFunc: func(device nvml.Device) (nvml.FBCStats, nvml.Return) {
			panic("mock out the DeviceGetFBCStats method")
		},
		DeviceGetFanControlPolicy_v2Func: func(device nvml.Device, n int) (nvml.FanControlPolicy, nvml.Return) {
			panic("mock out the DeviceGetFanControlPolicy_v2 method")
		},
		DeviceGetFanSpeedFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetFanSpeed method")
		},
		DeviceGetFanSpeed_v2Func: func(device nvml.Device, n int) (uint32, nvml.Return) {
			panic("mock out the DeviceGetFanSpeed_v2 method")
		},
		DeviceGetFieldValuesFunc: func(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return {
			panic("mock out the DeviceGetFieldValues method")
		},
		DeviceGetGpcClkMinMaxVfOffsetFunc: func(device nvml.Device) (int, int, nvml.Return) {
			panic("mock out the DeviceGetGpcClkMinMaxVfOffset method")
		},
		DeviceGetGpcClkVfOffsetFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetGpcClkVfOffset method")
		},
		DeviceGetGpuFabricInfoFunc: func(device nvml.Device) (nvml.GpuFabricInfo, nvml.Return) {
			panic("mock out the DeviceGetGpuFabricInfo method")
		},
		DeviceGetGpuInstanceByIdFunc: func(device nvml.Device, n int) (nvml.GpuInstance, nvml.Return) {
			panic("mock out the DeviceGetGpuInstanceById method")
		},
		DeviceGetGpuInstanceIdFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetGpuInstanceId method")
		},
		DeviceGetGpuInstancePossiblePlacementsFunc: func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return) {
			panic("mock out the DeviceGetGpuInstancePossiblePlacements method")
		},
		DeviceGetGpuInstanceProfileInfoFunc: func(device nvml.Device, n int) (nvml.GpuInstanceProfileInfo, nvml.Return) {
			panic("mock out the DeviceGetGpuInstanceProfileInfo method")
		},
		DeviceGetGpuInstanceProfileInfoVFunc: func(device nvml.Device, n int) nvml.GpuInstanceProfileInfoV {
			panic("mock out the DeviceGetGpuInstanceProfileInfoV method")
		},
		DeviceGetGpuInstanceRemainingCapacityFunc: func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return) {
			panic("mock out the DeviceGetGpuInstanceRemainingCapacity method")
		},
		DeviceGetGpuInstancesFunc: func(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return) {
			panic("mock out the DeviceGetGpuInstances method")
		},
		DeviceGetGpuMaxPcieLinkGenerationFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetGpuMaxPcieLinkGeneration method")
		},
		DeviceGetGpuOperationModeFunc: func(device nvml.Device) (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return) {
			panic("mock out the DeviceGetGpuOperationMode method")
		},
		DeviceGetGraphicsRunningProcessesFunc: func(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return) {
			panic("mock out the DeviceGetGraphicsRunningProcesses method")
		},
		DeviceGetGridLicensableFeaturesFunc: func(device nvml.Device) (nvml.GridLicensableFeatures, nvml.Return) {
			panic("mock out the DeviceGetGridLicensableFeatures method")
		},
		DeviceGetGspFirmwareModeFunc: func(device nvml.Device) (bool, bool, nvml.Return) {
			panic("mock out the DeviceGetGspFirmwareMode method")
		},
		DeviceGetGspFirmwareVersionFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetGspFirmwareVersion method")
		},
		DeviceGetHandleByIndexFunc: func(n int) (nvml.Device, nvml.Return) {
			panic("mock out the DeviceGetHandleByIndex method")
		},
		DeviceGetHandleByPciBusIdFunc: func(s string) (nvml.Device, nvml.Return) {
			panic("mock out the DeviceGetHandleByPciBusId method")
		},
		DeviceGetHandleBySerialFunc: func(s string) (nvml.Device, nvml.Return) {
			panic("mock out the DeviceGetHandleBySerial method")
		},
		DeviceGetHandleByUUIDFunc: func(s string) (nvml.Device, nvml.Return) {
			panic("mock out the DeviceGetHandleByUUID method")
		},
		DeviceGetHostVgpuModeFunc: func(device nvml.Device) (nvml.HostVgpuMode, nvml.Return) {
			panic("mock out the DeviceGetHostVgpuMode method")
		},
		DeviceGetIndexFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetIndex method")
		},
		DeviceGetInforomConfigurationChecksumFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetInforomConfigurationChecksum method")
		},
		DeviceGetInforomImageVersionFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetInforomImageVersion method")
		},
		DeviceGetInforomVersionFunc: func(device nvml.Device, inforomObject nvml.InforomObject) (string, nvml.Return) {
			panic("mock out the DeviceGetInforomVersion method")
		},
		DeviceGetIrqNumFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetIrqNum method")
		},
		DeviceGetMPSComputeRunningProcessesFunc: func(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return) {
			panic("mock out the DeviceGetMPSComputeRunningProcesses method")
		},
		DeviceGetMaxClockInfoFunc: func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the DeviceGetMaxClockInfo method")
		},
		DeviceGetMaxCustomerBoostClockFunc: func(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return) {
			panic("mock out the DeviceGetMaxCustomerBoostClock method")
		},
		DeviceGetMaxMigDeviceCountFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetMaxMigDeviceCount method")
		},
		DeviceGetMaxPcieLinkGenerationFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetMaxPcieLinkGeneration method")
		},
		DeviceGetMaxPcieLinkWidthFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetMaxPcieLinkWidth method")
		},
		DeviceGetMemClkMinMaxVfOffsetFunc: func(device nvml.Device) (int, int, nvml.Return) {
			panic("mock out the DeviceGetMemClkMinMaxVfOffset method")
		},
		DeviceGetMemClkVfOffsetFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetMemClkVfOffset method")
		},
		DeviceGetMemoryAffinityFunc: func(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return) {
			panic("mock out the DeviceGetMemoryAffinity method")
		},
		DeviceGetMemoryBusWidthFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetMemoryBusWidth method")
		},
		DeviceGetMemoryErrorCounterFunc: func(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType, memoryLocation nvml.MemoryLocation) (uint64, nvml.Return) {
			panic("mock out the DeviceGetMemoryErrorCounter method")
		},
		DeviceGetMemoryInfoFunc: func(device nvml.Device) (nvml.Memory, nvml.Return) {
			panic("mock out the DeviceGetMemoryInfo method")
		},
		DeviceGetMemoryInfo_v2Func: func(device nvml.Device) (nvml.Memory_v2, nvml.Return) {
			panic("mock out the DeviceGetMemoryInfo_v2 method")
		},
		DeviceGetMigDeviceHandleByIndexFunc: func(device nvml.Device, n int) (nvml.Device, nvml.Return) {
			panic("mock out the DeviceGetMigDeviceHandleByIndex method")
		},
		DeviceGetMigModeFunc: func(device nvml.Device) (int, int, nvml.Return) {
			panic("mock out the DeviceGetMigMode method")
		},
		DeviceGetMinMaxClockOfPStateFunc: func(device nvml.Device, clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return) {
			panic("mock out the DeviceGetMinMaxClockOfPState method")
		},
		DeviceGetMinMaxFanSpeedFunc: func(device nvml.Device) (int, int, nvml.Return) {
			panic("mock out the DeviceGetMinMaxFanSpeed method")
		},
		DeviceGetMinorNumberFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetMinorNumber method")
		},
		DeviceGetMultiGpuBoardFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetMultiGpuBoard method")
		},
		DeviceGetNameFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetName method")
		},
		DeviceGetNumFansFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetNumFans method")
		},
		DeviceGetNumGpuCoresFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetNumGpuCores method")
		},
		DeviceGetNvLinkCapabilityFunc: func(device nvml.Device, n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return) {
			panic("mock out the DeviceGetNvLinkCapability method")
		},
		DeviceGetNvLinkErrorCounterFunc: func(device nvml.Device, n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return) {
			panic("mock out the DeviceGetNvLinkErrorCounter method")
		},
		DeviceGetNvLinkRemoteDeviceTypeFunc: func(device nvml.Device, n int) (nvml.IntNvLinkDeviceType, nvml.Return) {
			panic("mock out the DeviceGetNvLinkRemoteDeviceType method")
		},
		DeviceGetNvLinkRemotePciInfoFunc: func(device nvml.Device, n int) (nvml.PciInfo, nvml.Return) {
			panic("mock out the DeviceGetNvLinkRemotePciInfo method")
		},
		DeviceGetNvLinkStateFunc: func(device nvml.Device, n int) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetNvLinkState method")
		},
		DeviceGetNvLinkUtilizationControlFunc: func(device nvml.Device, n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return) {
			panic("mock out the DeviceGetNvLinkUtilizationControl method")
		},
		DeviceGetNvLinkUtilizationCounterFunc: func(device nvml.Device, n1 int, n2 int) (uint64, uint64, nvml.Return) {
			panic("mock out the DeviceGetNvLinkUtilizationCounter method")
		},
		DeviceGetNvLinkVersionFunc: func(device nvml.Device, n int) (uint32, nvml.Return) {
			panic("mock out the DeviceGetNvLinkVersion method")
		},
		DeviceGetP2PStatusFunc: func(device1 nvml.Device, device2 nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return) {
			panic("mock out the DeviceGetP2PStatus method")
		},
		DeviceGetPciInfoFunc: func(device nvml.Device) (nvml.PciInfo, nvml.Return) {
			panic("mock out the DeviceGetPciInfo method")
		},
		DeviceGetPcieLinkMaxSpeedFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetPcieLinkMaxSpeed method")
		},
		DeviceGetPcieReplayCounterFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetPcieReplayCounter method")
		},
		DeviceGetPcieSpeedFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceGetPcieSpeed method")
		},
		DeviceGetPcieThroughputFunc: func(device nvml.Device, pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return) {
			panic("mock out the DeviceGetPcieThroughput method")
		},
		DeviceGetPerformanceStateFunc: func(device nvml.Device) (nvml.Pstates, nvml.Return) {
			panic("mock out the DeviceGetPerformanceState method")
		},
		DeviceGetPersistenceModeFunc: func(device nvml.Device) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetPersistenceMode method")
		},
		DeviceGetPgpuMetadataStringFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetPgpuMetadataString method")
		},
		DeviceGetPowerManagementDefaultLimitFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetPowerManagementDefaultLimit method")
		},
		DeviceGetPowerManagementLimitFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetPowerManagementLimit method")
		},
		DeviceGetPowerManagementLimitConstraintsFunc: func(device nvml.Device) (uint32, uint32, nvml.Return) {
			panic("mock out the DeviceGetPowerManagementLimitConstraints method")
		},
		DeviceGetPowerManagementModeFunc: func(device nvml.Device) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetPowerManagementMode method")
		},
		DeviceGetPowerSourceFunc: func(device nvml.Device) (nvml.PowerSource, nvml.Return) {
			panic("mock out the DeviceGetPowerSource method")
		},
		DeviceGetPowerStateFunc: func(device nvml.Device) (nvml.Pstates, nvml.Return) {
			panic("mock out the DeviceGetPowerState method")
		},
		DeviceGetPowerUsageFunc: func(device nvml.Device) (uint32, nvml.Return) {
			panic("mock out the DeviceGetPowerUsage method")
		},
		DeviceGetProcessUtilizationFunc: func(device nvml.Device, v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return) {
			panic("mock out the DeviceGetProcessUtilization method")
		},
		DeviceGetRemappedRowsFunc: func(device nvml.Device) (int, int, bool, bool, nvml.Return) {
			panic("mock out the DeviceGetRemappedRows method")
		},
		DeviceGetRetiredPagesFunc: func(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return) {
			panic("mock out the DeviceGetRetiredPages method")
		},
		DeviceGetRetiredPagesPendingStatusFunc: func(device nvml.Device) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceGetRetiredPagesPendingStatus method")
		},
		DeviceGetRetiredPages_v2Func: func(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return) {
			panic("mock out the DeviceGetRetiredPages_v2 method")
		},
		DeviceGetRowRemapperHistogramFunc: func(device nvml.Device) (nvml.RowRemapperHistogramValues, nvml.Return) {
			panic("mock out the DeviceGetRowRemapperHistogram method")
		},
		DeviceGetSamplesFunc: func(device nvml.Device, samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return) {
			panic("mock out the DeviceGetSamples method")
		},
		DeviceGetSerialFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetSerial method")
		},
		DeviceGetSupportedClocksThrottleReasonsFunc: func(device nvml.Device) (uint64, nvml.Return) {
			panic("mock out the DeviceGetSupportedClocksThrottleReasons method")
		},
		DeviceGetSupportedEventTypesFunc: func(device nvml.Device) (uint64, nvml.Return) {
			panic("mock out the DeviceGetSupportedEventTypes method")
		},
		DeviceGetSupportedGraphicsClocksFunc: func(device nvml.Device, n int) (int, uint32, nvml.Return) {
			panic("mock out the DeviceGetSupportedGraphicsClocks method")
		},
		DeviceGetSupportedMemoryClocksFunc: func(device nvml.Device) (int, uint32, nvml.Return) {
			panic("mock out the DeviceGetSupportedMemoryClocks method")
		},
		DeviceGetSupportedPerformanceStatesFunc: func(device nvml.Device) ([]nvml.Pstates, nvml.Return) {
			panic("mock out the DeviceGetSupportedPerformanceStates method")
		},
		DeviceGetSupportedVgpusFunc: func(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return) {
			panic("mock out the DeviceGetSupportedVgpus method")
		},
		DeviceGetTargetFanSpeedFunc: func(device nvml.Device, n int) (int, nvml.Return) {
			panic("mock out the DeviceGetTargetFanSpeed method")
		},
		DeviceGetTemperatureFunc: func(device nvml.Device, temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return) {
			panic("mock out the DeviceGetTemperature method")
		},
		DeviceGetTemperatureThresholdFunc: func(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return) {
			panic("mock out the DeviceGetTemperatureThreshold method")
		},
		DeviceGetThermalSettingsFunc: func(device nvml.Device, v uint32) (nvml.GpuThermalSettings, nvml.Return) {
			panic("mock out the DeviceGetThermalSettings method")
		},
		DeviceGetTopologyCommonAncestorFunc: func(device1 nvml.Device, device2 nvml.Device) (nvml.GpuTopologyLevel, nvml.Return) {
			panic("mock out the DeviceGetTopologyCommonAncestor method")
		},
		DeviceGetTopologyNearestGpusFunc: func(device nvml.Device, gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return) {
			panic("mock out the DeviceGetTopologyNearestGpus method")
		},
		DeviceGetTotalEccErrorsFunc: func(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (uint64, nvml.Return) {
			panic("mock out the DeviceGetTotalEccErrors method")
		},
		DeviceGetTotalEnergyConsumptionFunc: func(device nvml.Device) (uint64, nvml.Return) {
			panic("mock out the DeviceGetTotalEnergyConsumption method")
		},
		DeviceGetUUIDFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetUUID method")
		},
		DeviceGetUtilizationRatesFunc: func(device nvml.Device) (nvml.Utilization, nvml.Return) {
			panic("mock out the DeviceGetUtilizationRates method")
		},
		DeviceGetVbiosVersionFunc: func(device nvml.Device) (string, nvml.Return) {
			panic("mock out the DeviceGetVbiosVersion method")
		},
		DeviceGetVgpuCapabilitiesFunc: func(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return) {
			panic("mock out the DeviceGetVgpuCapabilities method")
		},
		DeviceGetVgpuMetadataFunc: func(device nvml.Device) (nvml.VgpuPgpuMetadata, nvml.Return) {
			panic("mock out the DeviceGetVgpuMetadata method")
		},
		DeviceGetVgpuProcessUtilizationFunc: func(device nvml.Device, v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return) {
			panic("mock out the DeviceGetVgpuProcessUtilization method")
		},
		DeviceGetVgpuSchedulerCapabilitiesFunc: func(device nvml.Device) (nvml.VgpuSchedulerCapabilities, nvml.Return) {
			panic("mock out the DeviceGetVgpuSchedulerCapabilities method")
		},
		DeviceGetVgpuSchedulerLogFunc: func(device nvml.Device) (nvml.VgpuSchedulerLog, nvml.Return) {
			panic("mock out the DeviceGetVgpuSchedulerLog method")
		},
		DeviceGetVgpuSchedulerStateFunc: func(device nvml.Device) (nvml.VgpuSchedulerGetState, nvml.Return) {
			panic("mock out the DeviceGetVgpuSchedulerState method")
		},
		DeviceGetVgpuUtilizationFunc: func(device nvml.Device, v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return) {
			panic("mock out the DeviceGetVgpuUtilization method")
		},
		DeviceGetViolationStatusFunc: func(device nvml.Device, perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return) {
			panic("mock out the DeviceGetViolationStatus method")
		},
		DeviceGetVirtualizationModeFunc: func(device nvml.Device) (nvml.GpuVirtualizationMode, nvml.Return) {
			panic("mock out the DeviceGetVirtualizationMode method")
		},
		DeviceIsMigDeviceHandleFunc: func(device nvml.Device) (bool, nvml.Return) {
			panic("mock out the DeviceIsMigDeviceHandle method")
		},
		DeviceModifyDrainStateFunc: func(pciInfo *nvml.PciInfo, enableState nvml.EnableState) nvml.Return {
			panic("mock out the DeviceModifyDrainState method")
		},
		DeviceOnSameBoardFunc: func(device1 nvml.Device, device2 nvml.Device) (int, nvml.Return) {
			panic("mock out the DeviceOnSameBoard method")
		},
		DeviceQueryDrainStateFunc: func(pciInfo *nvml.PciInfo) (nvml.EnableState, nvml.Return) {
			panic("mock out the DeviceQueryDrainState method")
		},
		DeviceRegisterEventsFunc: func(device nvml.Device, v uint64, eventSet nvml.EventSet) nvml.Return {
			panic("mock out the DeviceRegisterEvents method")
		},
		DeviceRemoveGpuFunc: func(pciInfo *nvml.PciInfo) nvml.Return {
			panic("mock out the DeviceRemoveGpu method")
		},
		DeviceRemoveGpu_v2Func: func(pciInfo *nvml.PciInfo, detachGpuState nvml.DetachGpuState, pcieLinkState nvml.PcieLinkState) nvml.Return {
			panic("mock out the DeviceRemoveGpu_v2 method")
		},
		DeviceResetApplicationsClocksFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the DeviceResetApplicationsClocks method")
		},
		DeviceResetGpuLockedClocksFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the DeviceResetGpuLockedClocks method")
		},
		DeviceResetMemoryLockedClocksFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the DeviceResetMemoryLockedClocks method")
		},
		DeviceResetNvLinkErrorCountersFunc: func(device nvml.Device, n int) nvml.Return {
			panic("mock out the DeviceResetNvLinkErrorCounters method")
		},
		DeviceResetNvLinkUtilizationCounterFunc: func(device nvml.Device, n1 int, n2 int) nvml.Return {
			panic("mock out the DeviceResetNvLinkUtilizationCounter method")
		},
		DeviceSetAPIRestrictionFunc: func(device nvml.Device, restrictedAPI nvml.RestrictedAPI, enableState nvml.EnableState) nvml.Return {
			panic("mock out the DeviceSetAPIRestriction method")
		},
		DeviceSetAccountingModeFunc: func(device nvml.Device, enableState nvml.EnableState) nvml.Return {
			panic("mock out the DeviceSetAccountingMode method")
		},
		DeviceSetApplicationsClocksFunc: func(device nvml.Device, v1 uint32, v2 uint32) nvml.Return {
			panic("mock out the DeviceSetApplicationsClocks method")
		},
		DeviceSetAutoBoostedClocksEnabledFunc: func(device nvml.Device, enableState nvml.EnableState) nvml.Return {
			panic("mock out the DeviceSetAutoBoostedClocksEnabled method")
		},
		DeviceSetComputeModeFunc: func(device nvml.Device, computeMode nvml.ComputeMode) nvml.Return {
			panic("mock out the DeviceSetComputeMode method")
		},
		DeviceSetCpuAffinityFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the DeviceSetCpuAffinity method")
		},
		DeviceSetDefaultAutoBoostedClocksEnabledFunc: func(device nvml.Device, enableState nvml.EnableState, v uint32) nvml.Return {
			panic("mock out the DeviceSetDefaultAutoBoostedClocksEnabled method")
		},
		DeviceSetDefaultFanSpeed_v2Func: func(device nvml.Device, n int) nvml.Return {
			panic("mock out the DeviceSetDefaultFanSpeed_v2 method")
		},
		DeviceSetDriverModelFunc: func(device nvml.Device, driverModel nvml.DriverModel, v uint32) nvml.Return {
			panic("mock out the DeviceSetDriverModel method")
		},
		DeviceSetEccModeFunc: func(device nvml.Device, enableState nvml.EnableState) nvml.Return {
			panic("mock out the DeviceSetEccMode method")
		},
		DeviceSetFanControlPolicyFunc: func(device nvml.Device, n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return {
			panic("mock out the DeviceSetFanControlPolicy method")
		},
		DeviceSetFanSpeed_v2Func: func(device nvml.Device, n1 int, n2 int) nvml.Return {
			panic("mock out the DeviceSetFanSpeed_v2 method")
		},
		DeviceSetGpcClkVfOffsetFunc: func(device nvml.Device, n int) nvml.Return {
			panic("mock out the DeviceSetGpcClkVfOffset method")
		},
		DeviceSetGpuLockedClocksFunc: func(device nvml.Device, v1 uint32, v2 uint32) nvml.Return {
			panic("mock out the DeviceSetGpuLockedClocks method")
		},
		DeviceSetGpuOperationModeFunc: func(device nvml.Device, gpuOperationMode nvml.GpuOperationMode) nvml.Return {
			panic("mock out the DeviceSetGpuOperationMode method")
		},
		DeviceSetMemClkVfOffsetFunc: func(device nvml.Device, n int) nvml.Return {
			panic("mock out the DeviceSetMemClkVfOffset method")
		},
		DeviceSetMemoryLockedClocksFunc: func(device nvml.Device, v1 uint32, v2 uint32) nvml.Return {
			panic("mock out the DeviceSetMemoryLockedClocks method")
		},
		DeviceSetMigModeFunc: func(device nvml.Device, n int) (nvml.Return, nvml.Return) {
			panic("mock out the DeviceSetMigMode method")
		},
		DeviceSetNvLinkDeviceLowPowerThresholdFunc: func(device nvml.Device, nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return {
			panic("mock out the DeviceSetNvLinkDeviceLowPowerThreshold method")
		},
		DeviceSetNvLinkUtilizationControlFunc: func(device nvml.Device, n1 int, n2 int, nvLinkUtilizationControl *nvml.NvLinkUtilizationControl, b bool) nvml.Return {
			panic("mock out the DeviceSetNvLinkUtilizationControl method")
		},
		DeviceSetPersistenceModeFunc: func(device nvml.Device, enableState nvml.EnableState) nvml.Return {
			panic("mock out the DeviceSetPersistenceMode method")
		},
		DeviceSetPowerManagementLimitFunc: func(device nvml.Device, v uint32) nvml.Return {
			panic("mock out the DeviceSetPowerManagementLimit method")
		},
		DeviceSetTemperatureThresholdFunc: func(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return {
			panic("mock out the DeviceSetTemperatureThreshold method")
		},
		DeviceSetVgpuSchedulerStateFunc: func(device nvml.Device, vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return {
			panic("mock out the DeviceSetVgpuSchedulerState method")
		},
		DeviceSetVirtualizationModeFunc: func(device nvml.Device, gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return {
			panic("mock out the DeviceSetVirtualizationMode method")
		},
		DeviceValidateInforomFunc: func(device nvml.Device) nvml.Return {
			panic("mock out the DeviceValidateInforom method")
		},
		ErrorStringFunc: func(returnMoqParam nvml.Return) string {
			panic("mock out the ErrorString method")
		},
		EventSetCreateFunc: func() (nvml.EventSet, nvml.Return) {
			panic("mock out the EventSetCreate method")
		},
		EventSetFreeFunc: func(eventSet nvml.EventSet) nvml.Return {
			panic("mock out the EventSetFree method")
		},
		EventSetWaitFunc: func(eventSet nvml.EventSet, v uint32) (nvml.EventData, nvml.Return) {
			panic("mock out the EventSetWait method")
		},
		ExtensionsFunc: func() nvml.ExtendedInterface {
			panic("mock out the Extensions method")
		},
		GetExcludedDeviceCountFunc: func() (int, nvml.Return) {
			panic("mock out the GetExcludedDeviceCount method")
		},
		GetExcludedDeviceInfoByIndexFunc: func(n int) (nvml.ExcludedDeviceInfo, nvml.Return) {
			panic("mock out the GetExcludedDeviceInfoByIndex method")
		},
		GetVgpuCompatibilityFunc: func(vgpuMetadata *nvml.VgpuMetadata, vgpuPgpuMetadata *nvml.VgpuPgpuMetadata) (nvml.VgpuPgpuCompatibility, nvml.Return) {
			panic("mock out the GetVgpuCompatibility method")
		},
		GetVgpuDriverCapabilitiesFunc: func(vgpuDriverCapability nvml.VgpuDriverCapability) (bool, nvml.Return) {
			panic("mock out the GetVgpuDriverCapabilities method")
		},
		GetVgpuVersionFunc: func() (nvml.VgpuVersion, nvml.VgpuVersion, nvml.Return) {
			panic("mock out the GetVgpuVersion method")
		},
		GpmMetricsGetFunc: func(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.Return {
			panic("mock out the GpmMetricsGet method")
		},
		GpmMetricsGetVFunc: func(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.GpmMetricsGetVType {
			panic("mock out the GpmMetricsGetV method")
		},
		GpmMigSampleGetFunc: func(device nvml.Device, n int, gpmSample nvml.GpmSample) nvml.Return {
			panic("mock out the GpmMigSampleGet method")
		},
		GpmQueryDeviceSupportFunc: func(device nvml.Device) (nvml.GpmSupport, nvml.Return) {
			panic("mock out the GpmQueryDeviceSupport method")
		},
		GpmQueryDeviceSupportVFunc: func(device nvml.Device) nvml.GpmSupportV {
			panic("mock out the GpmQueryDeviceSupportV method")
		},
		GpmSampleAllocFunc: func() (nvml.GpmSample, nvml.Return) {
			panic("mock out the GpmSampleAlloc method")
		},
		GpmSampleFreeFunc: func(gpmSample nvml.GpmSample) nvml.Return {
			panic("mock out the GpmSampleFree method")
		},
		GpmSampleGetFunc: func(device nvml.Device, gpmSample nvml.GpmSample) nvml.Return {
			panic("mock out the GpmSampleGet method")
		},
		GpuInstanceCreateComputeInstanceFunc: func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (nvml.ComputeInstance, nvml.Return) {
			panic("mock out the GpuInstanceCreateComputeInstance method")
		},
		GpuInstanceCreateComputeInstanceWithPlacementFunc: func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo, computeInstancePlacement *nvml.ComputeInstancePlacement) (nvml.ComputeInstance, nvml.Return) {
			panic("mock out the GpuInstanceCreateComputeInstanceWithPlacement method")
		},
		GpuInstanceDestroyFunc: func(gpuInstance nvml.GpuInstance) nvml.Return {
			panic("mock out the GpuInstanceDestroy method")
		},
		GpuInstanceGetComputeInstanceByIdFunc: func(gpuInstance nvml.GpuInstance, n int) (nvml.ComputeInstance, nvml.Return) {
			panic("mock out the GpuInstanceGetComputeInstanceById method")
		},
		GpuInstanceGetComputeInstancePossiblePlacementsFunc: func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstancePlacement, nvml.Return) {
			panic("mock out the GpuInstanceGetComputeInstancePossiblePlacements method")
		},
		GpuInstanceGetComputeInstanceProfileInfoFunc: func(gpuInstance nvml.GpuInstance, n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return) {
			panic("mock out the GpuInstanceGetComputeInstanceProfileInfo method")
		},
		GpuInstanceGetComputeInstanceProfileInfoVFunc: func(gpuInstance nvml.GpuInstance, n1 int, n2 int) nvml.ComputeInstanceProfileInfoV {
			panic("mock out the GpuInstanceGetComputeInstanceProfileInfoV method")
		},
		GpuInstanceGetComputeInstanceRemainingCapacityFunc: func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (int, nvml.Return) {
			panic("mock out the GpuInstanceGetComputeInstanceRemainingCapacity method")
		},
		GpuInstanceGetComputeInstancesFunc: func(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstance, nvml.Return) {
			panic("mock out the GpuInstanceGetComputeInstances method")
		},
		GpuInstanceGetInfoFunc: func(gpuInstance nvml.GpuInstance) (nvml.GpuInstanceInfo, nvml.Return) {
			panic("mock out the GpuInstanceGetInfo method")
		},
		InitFunc: func() nvml.Return {
			panic("mock out the Init method")
		},
		InitWithFlagsFunc: func(v uint32) nvml.Return {
			panic("mock out the InitWithFlags method")
		},
		SetVgpuVersionFunc: func(vgpuVersion *nvml.VgpuVersion) nvml.Return {
			panic("mock out the SetVgpuVersion method")
		},
		ShutdownFunc: func() nvml.Return {
			panic("mock out the Shutdown method")
		},
		SystemGetCudaDriverVersionFunc: func() (int, nvml.Return) {
			panic("mock out the SystemGetCudaDriverVersion method")
		},
		SystemGetCudaDriverVersion_v2Func: func() (int, nvml.Return) {
			panic("mock out the SystemGetCudaDriverVersion_v2 method")
		},
		SystemGetDriverVersionFunc: func() (string, nvml.Return) {
			panic("mock out the SystemGetDriverVersion method")
		},
		SystemGetHicVersionFunc: func() ([]nvml.HwbcEntry, nvml.Return) {
			panic("mock out the SystemGetHicVersion method")
		},
		SystemGetNVMLVersionFunc: func() (string, nvml.Return) {
			panic("mock out the SystemGetNVMLVersion method")
		},
		SystemGetProcessNameFunc: func(n int) (string, nvml.Return) {
			panic("mock out the SystemGetProcessName method")
		},
		SystemGetTopologyGpuSetFunc: func(n int) ([]nvml.Device, nvml.Return) {
			panic("mock out the SystemGetTopologyGpuSet method")
		},
		UnitGetCountFunc: func() (int, nvml.Return) {
			panic("mock out the UnitGetCount method")
		},
		UnitGetDevicesFunc: func(unit nvml.Unit) ([]nvml.Device, nvml.Return) {
			panic("mock out the UnitGetDevices method")
		},
		UnitGetFanSpeedInfoFunc: func(unit nvml.Unit) (nvml.UnitFanSpeeds, nvml.Return) {
			panic("mock out the UnitGetFanSpeedInfo method")
		},
		UnitGetHandleByIndexFunc: func(n int) (nvml.Unit, nvml.Return) {
			panic("mock out the UnitGetHandleByIndex method")
		},
		UnitGetLedStateFunc: func(unit nvml.Unit) (nvml.LedState, nvml.Return) {
			panic("mock out the UnitGetLedState method")
		},
		UnitGetPsuInfoFunc: func(unit nvml.Unit) (nvml.PSUInfo, nvml.Return) {
			panic("mock out the UnitGetPsuInfo method")
		},
		UnitGetTemperatureFunc: func(unit nvml.Unit, n int) (uint32, nvml.Return) {
			panic("mock out the UnitGetTemperature method")
		},
		UnitGetUnitInfoFunc: func(unit nvml.Unit) (nvml.UnitInfo, nvml.Return) {
			panic("mock out the UnitGetUnitInfo method")
		},
		UnitSetLedStateFunc: func(unit nvml.Unit, ledColor nvml.LedColor) nvml.Return {
			panic("mock out the UnitSetLedState method")
		},
		VgpuInstanceClearAccountingPidsFunc: func(vgpuInstance nvml.VgpuInstance) nvml.Return {
			panic("mock out the VgpuInstanceClearAccountingPids method")
		},
		VgpuInstanceGetAccountingModeFunc: func(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return) {
			panic("mock out the VgpuInstanceGetAccountingMode method")
		},
		VgpuInstanceGetAccountingPidsFunc: func(vgpuInstance nvml.VgpuInstance) ([]int, nvml.Return) {
			panic("mock out the VgpuInstanceGetAccountingPids method")
		},
		VgpuInstanceGetAccountingStatsFunc: func(vgpuInstance nvml.VgpuInstance, n int) (nvml.AccountingStats, nvml.Return) {
			panic("mock out the VgpuInstanceGetAccountingStats method")
		},
		VgpuInstanceGetEccModeFunc: func(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return) {
			panic("mock out the VgpuInstanceGetEccMode method")
		},
		VgpuInstanceGetEncoderCapacityFunc: func(vgpuInstance nvml.VgpuInstance) (int, nvml.Return) {
			panic("mock out the VgpuInstanceGetEncoderCapacity method")
		},
		VgpuInstanceGetEncoderSessionsFunc: func(vgpuInstance nvml.VgpuInstance) (int, nvml.EncoderSessionInfo, nvml.Return) {
			panic("mock out the VgpuInstanceGetEncoderSessions method")
		},
		VgpuInstanceGetEncoderStatsFunc: func(vgpuInstance nvml.VgpuInstance) (int, uint32, uint32, nvml.Return) {
			panic("mock out the VgpuInstanceGetEncoderStats method")
		},
		VgpuInstanceGetFBCSessionsFunc: func(vgpuInstance nvml.VgpuInstance) (int, nvml.FBCSessionInfo, nvml.Return) {
			panic("mock out the VgpuInstanceGetFBCSessions method")
		},
		VgpuInstanceGetFBCStatsFunc: func(vgpuInstance nvml.VgpuInstance) (nvml.FBCStats, nvml.Return) {
			panic("mock out the VgpuInstanceGetFBCStats method")
		},
		VgpuInstanceGetFbUsageFunc: func(vgpuInstance nvml.VgpuInstance) (uint64, nvml.Return) {
			panic("mock out the VgpuInstanceGetFbUsage method")
		},
		VgpuInstanceGetFrameRateLimitFunc: func(vgpuInstance nvml.VgpuInstance) (uint32, nvml.Return) {
			panic("mock out the VgpuInstanceGetFrameRateLimit method")
		},
		VgpuInstanceGetGpuInstanceIdFunc: func(vgpuInstance nvml.VgpuInstance) (int, nvml.Return) {
			panic("mock out the VgpuInstanceGetGpuInstanceId method")
		},
		VgpuInstanceGetGpuPciIdFunc: func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return) {
			panic("mock out the VgpuInstanceGetGpuPciId method")
		},
		VgpuInstanceGetLicenseInfoFunc: func(vgpuInstance nvml.VgpuInstance) (nvml.VgpuLicenseInfo, nvml.Return) {
			panic("mock out the VgpuInstanceGetLicenseInfo method")
		},
		VgpuInstanceGetLicenseStatusFunc: func(vgpuInstance nvml.VgpuInstance) (int, nvml.Return) {
			panic("mock out the VgpuInstanceGetLicenseStatus method")
		},
		VgpuInstanceGetMdevUUIDFunc: func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return) {
			panic("mock out the VgpuInstanceGetMdevUUID method")
		},
		VgpuInstanceGetMetadataFunc: func(vgpuInstance nvml.VgpuInstance) (nvml.VgpuMetadata, nvml.Return) {
			panic("mock out the VgpuInstanceGetMetadata method")
		},
		VgpuInstanceGetTypeFunc: func(vgpuInstance nvml.VgpuInstance) (nvml.VgpuTypeId, nvml.Return) {
			panic("mock out the VgpuInstanceGetType method")
		},
		VgpuInstanceGetUUIDFunc: func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return) {
			panic("mock out the VgpuInstanceGetUUID method")
		},
		VgpuInstanceGetVmDriverVersionFunc: func(vgpuInstance nvml.VgpuInstance) (string, nvml.Return) {
			panic("mock out the VgpuInstanceGetVmDriverVersion method")
		},
		VgpuInstanceGetVmIDFunc: func(vgpuInstance nvml.VgpuInstance) (string, nvml.VgpuVmIdType, nvml.Return) {
			panic("mock out the VgpuInstanceGetVmID method")
		},
		VgpuInstanceSetEncoderCapacityFunc: func(vgpuInstance nvml.VgpuInstance, n int) nvml.Return {
			panic("mock out the VgpuInstanceSetEncoderCapacity method")
		},
		VgpuTypeGetCapabilitiesFunc: func(vgpuTypeId nvml.VgpuTypeId, vgpuCapability nvml.VgpuCapability) (bool, nvml.Return) {
			panic("mock out the VgpuTypeGetCapabilities method")
		},
		VgpuTypeGetClassFunc: func(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return) {
			panic("mock out the VgpuTypeGetClass method")
		},
		VgpuTypeGetDeviceIDFunc: func(vgpuTypeId nvml.VgpuTypeId) (uint64, uint64, nvml.Return) {
			panic("mock out the VgpuTypeGetDeviceID method")
		},
		VgpuTypeGetFrameRateLimitFunc: func(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return) {
			panic("mock out the VgpuTypeGetFrameRateLimit method")
		},
		VgpuTypeGetFramebufferSizeFunc: func(vgpuTypeId nvml.VgpuTypeId) (uint64, nvml.Return) {
			panic("mock out the VgpuTypeGetFramebufferSize method")
		},
		VgpuTypeGetGpuInstanceProfileIdFunc: func(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return) {
			panic("mock out the VgpuTypeGetGpuInstanceProfileId method")
		},
		VgpuTypeGetLicenseFunc: func(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return) {
			panic("mock out the VgpuTypeGetLicense method")
		},
		VgpuTypeGetMaxInstancesFunc: func(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return) {
			panic("mock out the VgpuTypeGetMaxInstances method")
		},
		VgpuTypeGetMaxInstancesPerVmFunc: func(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return) {
			panic("mock out the VgpuTypeGetMaxInstancesPerVm method")
		},
		VgpuTypeGetNameFunc: func(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return) {
			panic("mock out the VgpuTypeGetName method")
		},
		VgpuTypeGetNumDisplayHeadsFunc: func(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return) {
			panic("mock out the VgpuTypeGetNumDisplayHeads method")
		},
		VgpuTypeGetResolutionFunc: func(vgpuTypeId nvml.VgpuTypeId, n int) (uint32, uint32, nvml.Return) {
			panic("mock out the VgpuTypeGetResolution method")
		},
	}

	// use mockedInterface in code that requires nvml.Interface
	// and then make assertions.

}

func (*Interface) ComputeInstanceDestroy

func (mock *Interface) ComputeInstanceDestroy(computeInstance nvml.ComputeInstance) nvml.Return

ComputeInstanceDestroy calls ComputeInstanceDestroyFunc.

func (*Interface) ComputeInstanceDestroyCalls

func (mock *Interface) ComputeInstanceDestroyCalls() []struct {
	ComputeInstance nvml.ComputeInstance
}

ComputeInstanceDestroyCalls gets all the calls that were made to ComputeInstanceDestroy. Check the length with:

len(mockedInterface.ComputeInstanceDestroyCalls())

func (*Interface) ComputeInstanceGetInfo

func (mock *Interface) ComputeInstanceGetInfo(computeInstance nvml.ComputeInstance) (nvml.ComputeInstanceInfo, nvml.Return)

ComputeInstanceGetInfo calls ComputeInstanceGetInfoFunc.

func (*Interface) ComputeInstanceGetInfoCalls

func (mock *Interface) ComputeInstanceGetInfoCalls() []struct {
	ComputeInstance nvml.ComputeInstance
}

ComputeInstanceGetInfoCalls gets all the calls that were made to ComputeInstanceGetInfo. Check the length with:

len(mockedInterface.ComputeInstanceGetInfoCalls())

func (*Interface) DeviceCcuGetStreamState

func (mock *Interface) DeviceCcuGetStreamState(device nvml.Device) (int, nvml.Return)

DeviceCcuGetStreamState calls DeviceCcuGetStreamStateFunc.

func (*Interface) DeviceCcuGetStreamStateCalls

func (mock *Interface) DeviceCcuGetStreamStateCalls() []struct {
	Device nvml.Device
}

DeviceCcuGetStreamStateCalls gets all the calls that were made to DeviceCcuGetStreamState. Check the length with:

len(mockedInterface.DeviceCcuGetStreamStateCalls())

func (*Interface) DeviceCcuSetStreamState

func (mock *Interface) DeviceCcuSetStreamState(device nvml.Device, n int) nvml.Return

DeviceCcuSetStreamState calls DeviceCcuSetStreamStateFunc.

func (*Interface) DeviceCcuSetStreamStateCalls

func (mock *Interface) DeviceCcuSetStreamStateCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceCcuSetStreamStateCalls gets all the calls that were made to DeviceCcuSetStreamState. Check the length with:

len(mockedInterface.DeviceCcuSetStreamStateCalls())

func (*Interface) DeviceClearAccountingPids

func (mock *Interface) DeviceClearAccountingPids(device nvml.Device) nvml.Return

DeviceClearAccountingPids calls DeviceClearAccountingPidsFunc.

func (*Interface) DeviceClearAccountingPidsCalls

func (mock *Interface) DeviceClearAccountingPidsCalls() []struct {
	Device nvml.Device
}

DeviceClearAccountingPidsCalls gets all the calls that were made to DeviceClearAccountingPids. Check the length with:

len(mockedInterface.DeviceClearAccountingPidsCalls())

func (*Interface) DeviceClearCpuAffinity

func (mock *Interface) DeviceClearCpuAffinity(device nvml.Device) nvml.Return

DeviceClearCpuAffinity calls DeviceClearCpuAffinityFunc.

func (*Interface) DeviceClearCpuAffinityCalls

func (mock *Interface) DeviceClearCpuAffinityCalls() []struct {
	Device nvml.Device
}

DeviceClearCpuAffinityCalls gets all the calls that were made to DeviceClearCpuAffinity. Check the length with:

len(mockedInterface.DeviceClearCpuAffinityCalls())

func (*Interface) DeviceClearEccErrorCounts

func (mock *Interface) DeviceClearEccErrorCounts(device nvml.Device, eccCounterType nvml.EccCounterType) nvml.Return

DeviceClearEccErrorCounts calls DeviceClearEccErrorCountsFunc.

func (*Interface) DeviceClearEccErrorCountsCalls

func (mock *Interface) DeviceClearEccErrorCountsCalls() []struct {
	Device         nvml.Device
	EccCounterType nvml.EccCounterType
}

DeviceClearEccErrorCountsCalls gets all the calls that were made to DeviceClearEccErrorCounts. Check the length with:

len(mockedInterface.DeviceClearEccErrorCountsCalls())

func (*Interface) DeviceClearFieldValues

func (mock *Interface) DeviceClearFieldValues(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return

DeviceClearFieldValues calls DeviceClearFieldValuesFunc.

func (*Interface) DeviceClearFieldValuesCalls

func (mock *Interface) DeviceClearFieldValuesCalls() []struct {
	Device      nvml.Device
	FieldValues []nvml.FieldValue
}

DeviceClearFieldValuesCalls gets all the calls that were made to DeviceClearFieldValues. Check the length with:

len(mockedInterface.DeviceClearFieldValuesCalls())

func (*Interface) DeviceCreateGpuInstance

func (mock *Interface) DeviceCreateGpuInstance(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return)

DeviceCreateGpuInstance calls DeviceCreateGpuInstanceFunc.

func (*Interface) DeviceCreateGpuInstanceCalls

func (mock *Interface) DeviceCreateGpuInstanceCalls() []struct {
	Device                 nvml.Device
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

DeviceCreateGpuInstanceCalls gets all the calls that were made to DeviceCreateGpuInstance. Check the length with:

len(mockedInterface.DeviceCreateGpuInstanceCalls())

func (*Interface) DeviceCreateGpuInstanceWithPlacement

func (mock *Interface) DeviceCreateGpuInstanceWithPlacement(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, gpuInstancePlacement *nvml.GpuInstancePlacement) (nvml.GpuInstance, nvml.Return)

DeviceCreateGpuInstanceWithPlacement calls DeviceCreateGpuInstanceWithPlacementFunc.

func (*Interface) DeviceCreateGpuInstanceWithPlacementCalls

func (mock *Interface) DeviceCreateGpuInstanceWithPlacementCalls() []struct {
	Device                 nvml.Device
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
	GpuInstancePlacement   *nvml.GpuInstancePlacement
}

DeviceCreateGpuInstanceWithPlacementCalls gets all the calls that were made to DeviceCreateGpuInstanceWithPlacement. Check the length with:

len(mockedInterface.DeviceCreateGpuInstanceWithPlacementCalls())

func (*Interface) DeviceDiscoverGpus

func (mock *Interface) DeviceDiscoverGpus() (nvml.PciInfo, nvml.Return)

DeviceDiscoverGpus calls DeviceDiscoverGpusFunc.

func (*Interface) DeviceDiscoverGpusCalls

func (mock *Interface) DeviceDiscoverGpusCalls() []struct {
}

DeviceDiscoverGpusCalls gets all the calls that were made to DeviceDiscoverGpus. Check the length with:

len(mockedInterface.DeviceDiscoverGpusCalls())

func (*Interface) DeviceFreezeNvLinkUtilizationCounter

func (mock *Interface) DeviceFreezeNvLinkUtilizationCounter(device nvml.Device, n1 int, n2 int, enableState nvml.EnableState) nvml.Return

DeviceFreezeNvLinkUtilizationCounter calls DeviceFreezeNvLinkUtilizationCounterFunc.

func (*Interface) DeviceFreezeNvLinkUtilizationCounterCalls

func (mock *Interface) DeviceFreezeNvLinkUtilizationCounterCalls() []struct {
	Device      nvml.Device
	N1          int
	N2          int
	EnableState nvml.EnableState
}

DeviceFreezeNvLinkUtilizationCounterCalls gets all the calls that were made to DeviceFreezeNvLinkUtilizationCounter. Check the length with:

len(mockedInterface.DeviceFreezeNvLinkUtilizationCounterCalls())

func (*Interface) DeviceGetAPIRestriction

func (mock *Interface) DeviceGetAPIRestriction(device nvml.Device, restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return)

DeviceGetAPIRestriction calls DeviceGetAPIRestrictionFunc.

func (*Interface) DeviceGetAPIRestrictionCalls

func (mock *Interface) DeviceGetAPIRestrictionCalls() []struct {
	Device        nvml.Device
	RestrictedAPI nvml.RestrictedAPI
}

DeviceGetAPIRestrictionCalls gets all the calls that were made to DeviceGetAPIRestriction. Check the length with:

len(mockedInterface.DeviceGetAPIRestrictionCalls())

func (*Interface) DeviceGetAccountingBufferSize

func (mock *Interface) DeviceGetAccountingBufferSize(device nvml.Device) (int, nvml.Return)

DeviceGetAccountingBufferSize calls DeviceGetAccountingBufferSizeFunc.

func (*Interface) DeviceGetAccountingBufferSizeCalls

func (mock *Interface) DeviceGetAccountingBufferSizeCalls() []struct {
	Device nvml.Device
}

DeviceGetAccountingBufferSizeCalls gets all the calls that were made to DeviceGetAccountingBufferSize. Check the length with:

len(mockedInterface.DeviceGetAccountingBufferSizeCalls())

func (*Interface) DeviceGetAccountingMode

func (mock *Interface) DeviceGetAccountingMode(device nvml.Device) (nvml.EnableState, nvml.Return)

DeviceGetAccountingMode calls DeviceGetAccountingModeFunc.

func (*Interface) DeviceGetAccountingModeCalls

func (mock *Interface) DeviceGetAccountingModeCalls() []struct {
	Device nvml.Device
}

DeviceGetAccountingModeCalls gets all the calls that were made to DeviceGetAccountingMode. Check the length with:

len(mockedInterface.DeviceGetAccountingModeCalls())

func (*Interface) DeviceGetAccountingPids

func (mock *Interface) DeviceGetAccountingPids(device nvml.Device) ([]int, nvml.Return)

DeviceGetAccountingPids calls DeviceGetAccountingPidsFunc.

func (*Interface) DeviceGetAccountingPidsCalls

func (mock *Interface) DeviceGetAccountingPidsCalls() []struct {
	Device nvml.Device
}

DeviceGetAccountingPidsCalls gets all the calls that were made to DeviceGetAccountingPids. Check the length with:

len(mockedInterface.DeviceGetAccountingPidsCalls())

func (*Interface) DeviceGetAccountingStats

func (mock *Interface) DeviceGetAccountingStats(device nvml.Device, v uint32) (nvml.AccountingStats, nvml.Return)

DeviceGetAccountingStats calls DeviceGetAccountingStatsFunc.

func (*Interface) DeviceGetAccountingStatsCalls

func (mock *Interface) DeviceGetAccountingStatsCalls() []struct {
	Device nvml.Device
	V      uint32
}

DeviceGetAccountingStatsCalls gets all the calls that were made to DeviceGetAccountingStats. Check the length with:

len(mockedInterface.DeviceGetAccountingStatsCalls())

func (*Interface) DeviceGetActiveVgpus

func (mock *Interface) DeviceGetActiveVgpus(device nvml.Device) ([]nvml.VgpuInstance, nvml.Return)

DeviceGetActiveVgpus calls DeviceGetActiveVgpusFunc.

func (*Interface) DeviceGetActiveVgpusCalls

func (mock *Interface) DeviceGetActiveVgpusCalls() []struct {
	Device nvml.Device
}

DeviceGetActiveVgpusCalls gets all the calls that were made to DeviceGetActiveVgpus. Check the length with:

len(mockedInterface.DeviceGetActiveVgpusCalls())

func (*Interface) DeviceGetAdaptiveClockInfoStatus

func (mock *Interface) DeviceGetAdaptiveClockInfoStatus(device nvml.Device) (uint32, nvml.Return)

DeviceGetAdaptiveClockInfoStatus calls DeviceGetAdaptiveClockInfoStatusFunc.

func (*Interface) DeviceGetAdaptiveClockInfoStatusCalls

func (mock *Interface) DeviceGetAdaptiveClockInfoStatusCalls() []struct {
	Device nvml.Device
}

DeviceGetAdaptiveClockInfoStatusCalls gets all the calls that were made to DeviceGetAdaptiveClockInfoStatus. Check the length with:

len(mockedInterface.DeviceGetAdaptiveClockInfoStatusCalls())

func (*Interface) DeviceGetApplicationsClock

func (mock *Interface) DeviceGetApplicationsClock(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

DeviceGetApplicationsClock calls DeviceGetApplicationsClockFunc.

func (*Interface) DeviceGetApplicationsClockCalls

func (mock *Interface) DeviceGetApplicationsClockCalls() []struct {
	Device    nvml.Device
	ClockType nvml.ClockType
}

DeviceGetApplicationsClockCalls gets all the calls that were made to DeviceGetApplicationsClock. Check the length with:

len(mockedInterface.DeviceGetApplicationsClockCalls())

func (*Interface) DeviceGetArchitecture

func (mock *Interface) DeviceGetArchitecture(device nvml.Device) (nvml.DeviceArchitecture, nvml.Return)

DeviceGetArchitecture calls DeviceGetArchitectureFunc.

func (*Interface) DeviceGetArchitectureCalls

func (mock *Interface) DeviceGetArchitectureCalls() []struct {
	Device nvml.Device
}

DeviceGetArchitectureCalls gets all the calls that were made to DeviceGetArchitecture. Check the length with:

len(mockedInterface.DeviceGetArchitectureCalls())

func (*Interface) DeviceGetAttributes

func (mock *Interface) DeviceGetAttributes(device nvml.Device) (nvml.DeviceAttributes, nvml.Return)

DeviceGetAttributes calls DeviceGetAttributesFunc.

func (*Interface) DeviceGetAttributesCalls

func (mock *Interface) DeviceGetAttributesCalls() []struct {
	Device nvml.Device
}

DeviceGetAttributesCalls gets all the calls that were made to DeviceGetAttributes. Check the length with:

len(mockedInterface.DeviceGetAttributesCalls())

func (*Interface) DeviceGetAutoBoostedClocksEnabled

func (mock *Interface) DeviceGetAutoBoostedClocksEnabled(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return)

DeviceGetAutoBoostedClocksEnabled calls DeviceGetAutoBoostedClocksEnabledFunc.

func (*Interface) DeviceGetAutoBoostedClocksEnabledCalls

func (mock *Interface) DeviceGetAutoBoostedClocksEnabledCalls() []struct {
	Device nvml.Device
}

DeviceGetAutoBoostedClocksEnabledCalls gets all the calls that were made to DeviceGetAutoBoostedClocksEnabled. Check the length with:

len(mockedInterface.DeviceGetAutoBoostedClocksEnabledCalls())

func (*Interface) DeviceGetBAR1MemoryInfo

func (mock *Interface) DeviceGetBAR1MemoryInfo(device nvml.Device) (nvml.BAR1Memory, nvml.Return)

DeviceGetBAR1MemoryInfo calls DeviceGetBAR1MemoryInfoFunc.

func (*Interface) DeviceGetBAR1MemoryInfoCalls

func (mock *Interface) DeviceGetBAR1MemoryInfoCalls() []struct {
	Device nvml.Device
}

DeviceGetBAR1MemoryInfoCalls gets all the calls that were made to DeviceGetBAR1MemoryInfo. Check the length with:

len(mockedInterface.DeviceGetBAR1MemoryInfoCalls())

func (*Interface) DeviceGetBoardId

func (mock *Interface) DeviceGetBoardId(device nvml.Device) (uint32, nvml.Return)

DeviceGetBoardId calls DeviceGetBoardIdFunc.

func (*Interface) DeviceGetBoardIdCalls

func (mock *Interface) DeviceGetBoardIdCalls() []struct {
	Device nvml.Device
}

DeviceGetBoardIdCalls gets all the calls that were made to DeviceGetBoardId. Check the length with:

len(mockedInterface.DeviceGetBoardIdCalls())

func (*Interface) DeviceGetBoardPartNumber

func (mock *Interface) DeviceGetBoardPartNumber(device nvml.Device) (string, nvml.Return)

DeviceGetBoardPartNumber calls DeviceGetBoardPartNumberFunc.

func (*Interface) DeviceGetBoardPartNumberCalls

func (mock *Interface) DeviceGetBoardPartNumberCalls() []struct {
	Device nvml.Device
}

DeviceGetBoardPartNumberCalls gets all the calls that were made to DeviceGetBoardPartNumber. Check the length with:

len(mockedInterface.DeviceGetBoardPartNumberCalls())

func (*Interface) DeviceGetBrand

func (mock *Interface) DeviceGetBrand(device nvml.Device) (nvml.BrandType, nvml.Return)

DeviceGetBrand calls DeviceGetBrandFunc.

func (*Interface) DeviceGetBrandCalls

func (mock *Interface) DeviceGetBrandCalls() []struct {
	Device nvml.Device
}

DeviceGetBrandCalls gets all the calls that were made to DeviceGetBrand. Check the length with:

len(mockedInterface.DeviceGetBrandCalls())

func (*Interface) DeviceGetBridgeChipInfo

func (mock *Interface) DeviceGetBridgeChipInfo(device nvml.Device) (nvml.BridgeChipHierarchy, nvml.Return)

DeviceGetBridgeChipInfo calls DeviceGetBridgeChipInfoFunc.

func (*Interface) DeviceGetBridgeChipInfoCalls

func (mock *Interface) DeviceGetBridgeChipInfoCalls() []struct {
	Device nvml.Device
}

DeviceGetBridgeChipInfoCalls gets all the calls that were made to DeviceGetBridgeChipInfo. Check the length with:

len(mockedInterface.DeviceGetBridgeChipInfoCalls())

func (*Interface) DeviceGetBusType

func (mock *Interface) DeviceGetBusType(device nvml.Device) (nvml.BusType, nvml.Return)

DeviceGetBusType calls DeviceGetBusTypeFunc.

func (*Interface) DeviceGetBusTypeCalls

func (mock *Interface) DeviceGetBusTypeCalls() []struct {
	Device nvml.Device
}

DeviceGetBusTypeCalls gets all the calls that were made to DeviceGetBusType. Check the length with:

len(mockedInterface.DeviceGetBusTypeCalls())

func (*Interface) DeviceGetClkMonStatus

func (mock *Interface) DeviceGetClkMonStatus(device nvml.Device) (nvml.ClkMonStatus, nvml.Return)

DeviceGetClkMonStatus calls DeviceGetClkMonStatusFunc.

func (*Interface) DeviceGetClkMonStatusCalls

func (mock *Interface) DeviceGetClkMonStatusCalls() []struct {
	Device nvml.Device
}

DeviceGetClkMonStatusCalls gets all the calls that were made to DeviceGetClkMonStatus. Check the length with:

len(mockedInterface.DeviceGetClkMonStatusCalls())

func (*Interface) DeviceGetClock

func (mock *Interface) DeviceGetClock(device nvml.Device, clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return)

DeviceGetClock calls DeviceGetClockFunc.

func (*Interface) DeviceGetClockCalls

func (mock *Interface) DeviceGetClockCalls() []struct {
	Device    nvml.Device
	ClockType nvml.ClockType
	ClockId   nvml.ClockId
}

DeviceGetClockCalls gets all the calls that were made to DeviceGetClock. Check the length with:

len(mockedInterface.DeviceGetClockCalls())

func (*Interface) DeviceGetClockInfo

func (mock *Interface) DeviceGetClockInfo(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

DeviceGetClockInfo calls DeviceGetClockInfoFunc.

func (*Interface) DeviceGetClockInfoCalls

func (mock *Interface) DeviceGetClockInfoCalls() []struct {
	Device    nvml.Device
	ClockType nvml.ClockType
}

DeviceGetClockInfoCalls gets all the calls that were made to DeviceGetClockInfo. Check the length with:

len(mockedInterface.DeviceGetClockInfoCalls())

func (*Interface) DeviceGetComputeInstanceId

func (mock *Interface) DeviceGetComputeInstanceId(device nvml.Device) (int, nvml.Return)

DeviceGetComputeInstanceId calls DeviceGetComputeInstanceIdFunc.

func (*Interface) DeviceGetComputeInstanceIdCalls

func (mock *Interface) DeviceGetComputeInstanceIdCalls() []struct {
	Device nvml.Device
}

DeviceGetComputeInstanceIdCalls gets all the calls that were made to DeviceGetComputeInstanceId. Check the length with:

len(mockedInterface.DeviceGetComputeInstanceIdCalls())

func (*Interface) DeviceGetComputeMode

func (mock *Interface) DeviceGetComputeMode(device nvml.Device) (nvml.ComputeMode, nvml.Return)

DeviceGetComputeMode calls DeviceGetComputeModeFunc.

func (*Interface) DeviceGetComputeModeCalls

func (mock *Interface) DeviceGetComputeModeCalls() []struct {
	Device nvml.Device
}

DeviceGetComputeModeCalls gets all the calls that were made to DeviceGetComputeMode. Check the length with:

len(mockedInterface.DeviceGetComputeModeCalls())

func (*Interface) DeviceGetComputeRunningProcesses

func (mock *Interface) DeviceGetComputeRunningProcesses(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)

DeviceGetComputeRunningProcesses calls DeviceGetComputeRunningProcessesFunc.

func (*Interface) DeviceGetComputeRunningProcessesCalls

func (mock *Interface) DeviceGetComputeRunningProcessesCalls() []struct {
	Device nvml.Device
}

DeviceGetComputeRunningProcessesCalls gets all the calls that were made to DeviceGetComputeRunningProcesses. Check the length with:

len(mockedInterface.DeviceGetComputeRunningProcessesCalls())

func (*Interface) DeviceGetCount

func (mock *Interface) DeviceGetCount() (int, nvml.Return)

DeviceGetCount calls DeviceGetCountFunc.

func (*Interface) DeviceGetCountCalls

func (mock *Interface) DeviceGetCountCalls() []struct {
}

DeviceGetCountCalls gets all the calls that were made to DeviceGetCount. Check the length with:

len(mockedInterface.DeviceGetCountCalls())

func (*Interface) DeviceGetCpuAffinity

func (mock *Interface) DeviceGetCpuAffinity(device nvml.Device, n int) ([]uint, nvml.Return)

DeviceGetCpuAffinity calls DeviceGetCpuAffinityFunc.

func (*Interface) DeviceGetCpuAffinityCalls

func (mock *Interface) DeviceGetCpuAffinityCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetCpuAffinityCalls gets all the calls that were made to DeviceGetCpuAffinity. Check the length with:

len(mockedInterface.DeviceGetCpuAffinityCalls())

func (*Interface) DeviceGetCpuAffinityWithinScope

func (mock *Interface) DeviceGetCpuAffinityWithinScope(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

DeviceGetCpuAffinityWithinScope calls DeviceGetCpuAffinityWithinScopeFunc.

func (*Interface) DeviceGetCpuAffinityWithinScopeCalls

func (mock *Interface) DeviceGetCpuAffinityWithinScopeCalls() []struct {
	Device        nvml.Device
	N             int
	AffinityScope nvml.AffinityScope
}

DeviceGetCpuAffinityWithinScopeCalls gets all the calls that were made to DeviceGetCpuAffinityWithinScope. Check the length with:

len(mockedInterface.DeviceGetCpuAffinityWithinScopeCalls())

func (*Interface) DeviceGetCreatableVgpus

func (mock *Interface) DeviceGetCreatableVgpus(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return)

DeviceGetCreatableVgpus calls DeviceGetCreatableVgpusFunc.

func (*Interface) DeviceGetCreatableVgpusCalls

func (mock *Interface) DeviceGetCreatableVgpusCalls() []struct {
	Device nvml.Device
}

DeviceGetCreatableVgpusCalls gets all the calls that were made to DeviceGetCreatableVgpus. Check the length with:

len(mockedInterface.DeviceGetCreatableVgpusCalls())

func (*Interface) DeviceGetCudaComputeCapability

func (mock *Interface) DeviceGetCudaComputeCapability(device nvml.Device) (int, int, nvml.Return)

DeviceGetCudaComputeCapability calls DeviceGetCudaComputeCapabilityFunc.

func (*Interface) DeviceGetCudaComputeCapabilityCalls

func (mock *Interface) DeviceGetCudaComputeCapabilityCalls() []struct {
	Device nvml.Device
}

DeviceGetCudaComputeCapabilityCalls gets all the calls that were made to DeviceGetCudaComputeCapability. Check the length with:

len(mockedInterface.DeviceGetCudaComputeCapabilityCalls())

func (*Interface) DeviceGetCurrPcieLinkGeneration

func (mock *Interface) DeviceGetCurrPcieLinkGeneration(device nvml.Device) (int, nvml.Return)

DeviceGetCurrPcieLinkGeneration calls DeviceGetCurrPcieLinkGenerationFunc.

func (*Interface) DeviceGetCurrPcieLinkGenerationCalls

func (mock *Interface) DeviceGetCurrPcieLinkGenerationCalls() []struct {
	Device nvml.Device
}

DeviceGetCurrPcieLinkGenerationCalls gets all the calls that were made to DeviceGetCurrPcieLinkGeneration. Check the length with:

len(mockedInterface.DeviceGetCurrPcieLinkGenerationCalls())

func (*Interface) DeviceGetCurrPcieLinkWidth

func (mock *Interface) DeviceGetCurrPcieLinkWidth(device nvml.Device) (int, nvml.Return)

DeviceGetCurrPcieLinkWidth calls DeviceGetCurrPcieLinkWidthFunc.

func (*Interface) DeviceGetCurrPcieLinkWidthCalls

func (mock *Interface) DeviceGetCurrPcieLinkWidthCalls() []struct {
	Device nvml.Device
}

DeviceGetCurrPcieLinkWidthCalls gets all the calls that were made to DeviceGetCurrPcieLinkWidth. Check the length with:

len(mockedInterface.DeviceGetCurrPcieLinkWidthCalls())

func (*Interface) DeviceGetCurrentClocksThrottleReasons

func (mock *Interface) DeviceGetCurrentClocksThrottleReasons(device nvml.Device) (uint64, nvml.Return)

DeviceGetCurrentClocksThrottleReasons calls DeviceGetCurrentClocksThrottleReasonsFunc.

func (*Interface) DeviceGetCurrentClocksThrottleReasonsCalls

func (mock *Interface) DeviceGetCurrentClocksThrottleReasonsCalls() []struct {
	Device nvml.Device
}

DeviceGetCurrentClocksThrottleReasonsCalls gets all the calls that were made to DeviceGetCurrentClocksThrottleReasons. Check the length with:

len(mockedInterface.DeviceGetCurrentClocksThrottleReasonsCalls())

func (*Interface) DeviceGetDecoderUtilization

func (mock *Interface) DeviceGetDecoderUtilization(device nvml.Device) (uint32, uint32, nvml.Return)

DeviceGetDecoderUtilization calls DeviceGetDecoderUtilizationFunc.

func (*Interface) DeviceGetDecoderUtilizationCalls

func (mock *Interface) DeviceGetDecoderUtilizationCalls() []struct {
	Device nvml.Device
}

DeviceGetDecoderUtilizationCalls gets all the calls that were made to DeviceGetDecoderUtilization. Check the length with:

len(mockedInterface.DeviceGetDecoderUtilizationCalls())

func (*Interface) DeviceGetDefaultApplicationsClock

func (mock *Interface) DeviceGetDefaultApplicationsClock(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

DeviceGetDefaultApplicationsClock calls DeviceGetDefaultApplicationsClockFunc.

func (*Interface) DeviceGetDefaultApplicationsClockCalls

func (mock *Interface) DeviceGetDefaultApplicationsClockCalls() []struct {
	Device    nvml.Device
	ClockType nvml.ClockType
}

DeviceGetDefaultApplicationsClockCalls gets all the calls that were made to DeviceGetDefaultApplicationsClock. Check the length with:

len(mockedInterface.DeviceGetDefaultApplicationsClockCalls())

func (*Interface) DeviceGetDefaultEccMode

func (mock *Interface) DeviceGetDefaultEccMode(device nvml.Device) (nvml.EnableState, nvml.Return)

DeviceGetDefaultEccMode calls DeviceGetDefaultEccModeFunc.

func (*Interface) DeviceGetDefaultEccModeCalls

func (mock *Interface) DeviceGetDefaultEccModeCalls() []struct {
	Device nvml.Device
}

DeviceGetDefaultEccModeCalls gets all the calls that were made to DeviceGetDefaultEccMode. Check the length with:

len(mockedInterface.DeviceGetDefaultEccModeCalls())

func (*Interface) DeviceGetDetailedEccErrors

func (mock *Interface) DeviceGetDetailedEccErrors(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (nvml.EccErrorCounts, nvml.Return)

DeviceGetDetailedEccErrors calls DeviceGetDetailedEccErrorsFunc.

func (*Interface) DeviceGetDetailedEccErrorsCalls

func (mock *Interface) DeviceGetDetailedEccErrorsCalls() []struct {
	Device          nvml.Device
	MemoryErrorType nvml.MemoryErrorType
	EccCounterType  nvml.EccCounterType
}

DeviceGetDetailedEccErrorsCalls gets all the calls that were made to DeviceGetDetailedEccErrors. Check the length with:

len(mockedInterface.DeviceGetDetailedEccErrorsCalls())

func (*Interface) DeviceGetDeviceHandleFromMigDeviceHandle

func (mock *Interface) DeviceGetDeviceHandleFromMigDeviceHandle(device nvml.Device) (nvml.Device, nvml.Return)

DeviceGetDeviceHandleFromMigDeviceHandle calls DeviceGetDeviceHandleFromMigDeviceHandleFunc.

func (*Interface) DeviceGetDeviceHandleFromMigDeviceHandleCalls

func (mock *Interface) DeviceGetDeviceHandleFromMigDeviceHandleCalls() []struct {
	Device nvml.Device
}

DeviceGetDeviceHandleFromMigDeviceHandleCalls gets all the calls that were made to DeviceGetDeviceHandleFromMigDeviceHandle. Check the length with:

len(mockedInterface.DeviceGetDeviceHandleFromMigDeviceHandleCalls())

func (*Interface) DeviceGetDisplayActive

func (mock *Interface) DeviceGetDisplayActive(device nvml.Device) (nvml.EnableState, nvml.Return)

DeviceGetDisplayActive calls DeviceGetDisplayActiveFunc.

func (*Interface) DeviceGetDisplayActiveCalls

func (mock *Interface) DeviceGetDisplayActiveCalls() []struct {
	Device nvml.Device
}

DeviceGetDisplayActiveCalls gets all the calls that were made to DeviceGetDisplayActive. Check the length with:

len(mockedInterface.DeviceGetDisplayActiveCalls())

func (*Interface) DeviceGetDisplayMode

func (mock *Interface) DeviceGetDisplayMode(device nvml.Device) (nvml.EnableState, nvml.Return)

DeviceGetDisplayMode calls DeviceGetDisplayModeFunc.

func (*Interface) DeviceGetDisplayModeCalls

func (mock *Interface) DeviceGetDisplayModeCalls() []struct {
	Device nvml.Device
}

DeviceGetDisplayModeCalls gets all the calls that were made to DeviceGetDisplayMode. Check the length with:

len(mockedInterface.DeviceGetDisplayModeCalls())

func (*Interface) DeviceGetDriverModel

func (mock *Interface) DeviceGetDriverModel(device nvml.Device) (nvml.DriverModel, nvml.DriverModel, nvml.Return)

DeviceGetDriverModel calls DeviceGetDriverModelFunc.

func (*Interface) DeviceGetDriverModelCalls

func (mock *Interface) DeviceGetDriverModelCalls() []struct {
	Device nvml.Device
}

DeviceGetDriverModelCalls gets all the calls that were made to DeviceGetDriverModel. Check the length with:

len(mockedInterface.DeviceGetDriverModelCalls())

func (*Interface) DeviceGetDynamicPstatesInfo

func (mock *Interface) DeviceGetDynamicPstatesInfo(device nvml.Device) (nvml.GpuDynamicPstatesInfo, nvml.Return)

DeviceGetDynamicPstatesInfo calls DeviceGetDynamicPstatesInfoFunc.

func (*Interface) DeviceGetDynamicPstatesInfoCalls

func (mock *Interface) DeviceGetDynamicPstatesInfoCalls() []struct {
	Device nvml.Device
}

DeviceGetDynamicPstatesInfoCalls gets all the calls that were made to DeviceGetDynamicPstatesInfo. Check the length with:

len(mockedInterface.DeviceGetDynamicPstatesInfoCalls())

func (*Interface) DeviceGetEccMode

func (mock *Interface) DeviceGetEccMode(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return)

DeviceGetEccMode calls DeviceGetEccModeFunc.

func (*Interface) DeviceGetEccModeCalls

func (mock *Interface) DeviceGetEccModeCalls() []struct {
	Device nvml.Device
}

DeviceGetEccModeCalls gets all the calls that were made to DeviceGetEccMode. Check the length with:

len(mockedInterface.DeviceGetEccModeCalls())

func (*Interface) DeviceGetEncoderCapacity

func (mock *Interface) DeviceGetEncoderCapacity(device nvml.Device, encoderType nvml.EncoderType) (int, nvml.Return)

DeviceGetEncoderCapacity calls DeviceGetEncoderCapacityFunc.

func (*Interface) DeviceGetEncoderCapacityCalls

func (mock *Interface) DeviceGetEncoderCapacityCalls() []struct {
	Device      nvml.Device
	EncoderType nvml.EncoderType
}

DeviceGetEncoderCapacityCalls gets all the calls that were made to DeviceGetEncoderCapacity. Check the length with:

len(mockedInterface.DeviceGetEncoderCapacityCalls())

func (*Interface) DeviceGetEncoderSessions

func (mock *Interface) DeviceGetEncoderSessions(device nvml.Device) ([]nvml.EncoderSessionInfo, nvml.Return)

DeviceGetEncoderSessions calls DeviceGetEncoderSessionsFunc.

func (*Interface) DeviceGetEncoderSessionsCalls

func (mock *Interface) DeviceGetEncoderSessionsCalls() []struct {
	Device nvml.Device
}

DeviceGetEncoderSessionsCalls gets all the calls that were made to DeviceGetEncoderSessions. Check the length with:

len(mockedInterface.DeviceGetEncoderSessionsCalls())

func (*Interface) DeviceGetEncoderStats

func (mock *Interface) DeviceGetEncoderStats(device nvml.Device) (int, uint32, uint32, nvml.Return)

DeviceGetEncoderStats calls DeviceGetEncoderStatsFunc.

func (*Interface) DeviceGetEncoderStatsCalls

func (mock *Interface) DeviceGetEncoderStatsCalls() []struct {
	Device nvml.Device
}

DeviceGetEncoderStatsCalls gets all the calls that were made to DeviceGetEncoderStats. Check the length with:

len(mockedInterface.DeviceGetEncoderStatsCalls())

func (*Interface) DeviceGetEncoderUtilization

func (mock *Interface) DeviceGetEncoderUtilization(device nvml.Device) (uint32, uint32, nvml.Return)

DeviceGetEncoderUtilization calls DeviceGetEncoderUtilizationFunc.

func (*Interface) DeviceGetEncoderUtilizationCalls

func (mock *Interface) DeviceGetEncoderUtilizationCalls() []struct {
	Device nvml.Device
}

DeviceGetEncoderUtilizationCalls gets all the calls that were made to DeviceGetEncoderUtilization. Check the length with:

len(mockedInterface.DeviceGetEncoderUtilizationCalls())

func (*Interface) DeviceGetEnforcedPowerLimit

func (mock *Interface) DeviceGetEnforcedPowerLimit(device nvml.Device) (uint32, nvml.Return)

DeviceGetEnforcedPowerLimit calls DeviceGetEnforcedPowerLimitFunc.

func (*Interface) DeviceGetEnforcedPowerLimitCalls

func (mock *Interface) DeviceGetEnforcedPowerLimitCalls() []struct {
	Device nvml.Device
}

DeviceGetEnforcedPowerLimitCalls gets all the calls that were made to DeviceGetEnforcedPowerLimit. Check the length with:

len(mockedInterface.DeviceGetEnforcedPowerLimitCalls())

func (*Interface) DeviceGetFBCSessions

func (mock *Interface) DeviceGetFBCSessions(device nvml.Device) ([]nvml.FBCSessionInfo, nvml.Return)

DeviceGetFBCSessions calls DeviceGetFBCSessionsFunc.

func (*Interface) DeviceGetFBCSessionsCalls

func (mock *Interface) DeviceGetFBCSessionsCalls() []struct {
	Device nvml.Device
}

DeviceGetFBCSessionsCalls gets all the calls that were made to DeviceGetFBCSessions. Check the length with:

len(mockedInterface.DeviceGetFBCSessionsCalls())

func (*Interface) DeviceGetFBCStats

func (mock *Interface) DeviceGetFBCStats(device nvml.Device) (nvml.FBCStats, nvml.Return)

DeviceGetFBCStats calls DeviceGetFBCStatsFunc.

func (*Interface) DeviceGetFBCStatsCalls

func (mock *Interface) DeviceGetFBCStatsCalls() []struct {
	Device nvml.Device
}

DeviceGetFBCStatsCalls gets all the calls that were made to DeviceGetFBCStats. Check the length with:

len(mockedInterface.DeviceGetFBCStatsCalls())

func (*Interface) DeviceGetFanControlPolicy_v2

func (mock *Interface) DeviceGetFanControlPolicy_v2(device nvml.Device, n int) (nvml.FanControlPolicy, nvml.Return)

DeviceGetFanControlPolicy_v2 calls DeviceGetFanControlPolicy_v2Func.

func (*Interface) DeviceGetFanControlPolicy_v2Calls

func (mock *Interface) DeviceGetFanControlPolicy_v2Calls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetFanControlPolicy_v2Calls gets all the calls that were made to DeviceGetFanControlPolicy_v2. Check the length with:

len(mockedInterface.DeviceGetFanControlPolicy_v2Calls())

func (*Interface) DeviceGetFanSpeed

func (mock *Interface) DeviceGetFanSpeed(device nvml.Device) (uint32, nvml.Return)

DeviceGetFanSpeed calls DeviceGetFanSpeedFunc.

func (*Interface) DeviceGetFanSpeedCalls

func (mock *Interface) DeviceGetFanSpeedCalls() []struct {
	Device nvml.Device
}

DeviceGetFanSpeedCalls gets all the calls that were made to DeviceGetFanSpeed. Check the length with:

len(mockedInterface.DeviceGetFanSpeedCalls())

func (*Interface) DeviceGetFanSpeed_v2

func (mock *Interface) DeviceGetFanSpeed_v2(device nvml.Device, n int) (uint32, nvml.Return)

DeviceGetFanSpeed_v2 calls DeviceGetFanSpeed_v2Func.

func (*Interface) DeviceGetFanSpeed_v2Calls

func (mock *Interface) DeviceGetFanSpeed_v2Calls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetFanSpeed_v2Calls gets all the calls that were made to DeviceGetFanSpeed_v2. Check the length with:

len(mockedInterface.DeviceGetFanSpeed_v2Calls())

func (*Interface) DeviceGetFieldValues

func (mock *Interface) DeviceGetFieldValues(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return

DeviceGetFieldValues calls DeviceGetFieldValuesFunc.

func (*Interface) DeviceGetFieldValuesCalls

func (mock *Interface) DeviceGetFieldValuesCalls() []struct {
	Device      nvml.Device
	FieldValues []nvml.FieldValue
}

DeviceGetFieldValuesCalls gets all the calls that were made to DeviceGetFieldValues. Check the length with:

len(mockedInterface.DeviceGetFieldValuesCalls())

func (*Interface) DeviceGetGpcClkMinMaxVfOffset

func (mock *Interface) DeviceGetGpcClkMinMaxVfOffset(device nvml.Device) (int, int, nvml.Return)

DeviceGetGpcClkMinMaxVfOffset calls DeviceGetGpcClkMinMaxVfOffsetFunc.

func (*Interface) DeviceGetGpcClkMinMaxVfOffsetCalls

func (mock *Interface) DeviceGetGpcClkMinMaxVfOffsetCalls() []struct {
	Device nvml.Device
}

DeviceGetGpcClkMinMaxVfOffsetCalls gets all the calls that were made to DeviceGetGpcClkMinMaxVfOffset. Check the length with:

len(mockedInterface.DeviceGetGpcClkMinMaxVfOffsetCalls())

func (*Interface) DeviceGetGpcClkVfOffset

func (mock *Interface) DeviceGetGpcClkVfOffset(device nvml.Device) (int, nvml.Return)

DeviceGetGpcClkVfOffset calls DeviceGetGpcClkVfOffsetFunc.

func (*Interface) DeviceGetGpcClkVfOffsetCalls

func (mock *Interface) DeviceGetGpcClkVfOffsetCalls() []struct {
	Device nvml.Device
}

DeviceGetGpcClkVfOffsetCalls gets all the calls that were made to DeviceGetGpcClkVfOffset. Check the length with:

len(mockedInterface.DeviceGetGpcClkVfOffsetCalls())

func (*Interface) DeviceGetGpuFabricInfo

func (mock *Interface) DeviceGetGpuFabricInfo(device nvml.Device) (nvml.GpuFabricInfo, nvml.Return)

DeviceGetGpuFabricInfo calls DeviceGetGpuFabricInfoFunc.

func (*Interface) DeviceGetGpuFabricInfoCalls

func (mock *Interface) DeviceGetGpuFabricInfoCalls() []struct {
	Device nvml.Device
}

DeviceGetGpuFabricInfoCalls gets all the calls that were made to DeviceGetGpuFabricInfo. Check the length with:

len(mockedInterface.DeviceGetGpuFabricInfoCalls())

func (*Interface) DeviceGetGpuInstanceById

func (mock *Interface) DeviceGetGpuInstanceById(device nvml.Device, n int) (nvml.GpuInstance, nvml.Return)

DeviceGetGpuInstanceById calls DeviceGetGpuInstanceByIdFunc.

func (*Interface) DeviceGetGpuInstanceByIdCalls

func (mock *Interface) DeviceGetGpuInstanceByIdCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetGpuInstanceByIdCalls gets all the calls that were made to DeviceGetGpuInstanceById. Check the length with:

len(mockedInterface.DeviceGetGpuInstanceByIdCalls())

func (*Interface) DeviceGetGpuInstanceId

func (mock *Interface) DeviceGetGpuInstanceId(device nvml.Device) (int, nvml.Return)

DeviceGetGpuInstanceId calls DeviceGetGpuInstanceIdFunc.

func (*Interface) DeviceGetGpuInstanceIdCalls

func (mock *Interface) DeviceGetGpuInstanceIdCalls() []struct {
	Device nvml.Device
}

DeviceGetGpuInstanceIdCalls gets all the calls that were made to DeviceGetGpuInstanceId. Check the length with:

len(mockedInterface.DeviceGetGpuInstanceIdCalls())

func (*Interface) DeviceGetGpuInstancePossiblePlacements

func (mock *Interface) DeviceGetGpuInstancePossiblePlacements(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return)

DeviceGetGpuInstancePossiblePlacements calls DeviceGetGpuInstancePossiblePlacementsFunc.

func (*Interface) DeviceGetGpuInstancePossiblePlacementsCalls

func (mock *Interface) DeviceGetGpuInstancePossiblePlacementsCalls() []struct {
	Device                 nvml.Device
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

DeviceGetGpuInstancePossiblePlacementsCalls gets all the calls that were made to DeviceGetGpuInstancePossiblePlacements. Check the length with:

len(mockedInterface.DeviceGetGpuInstancePossiblePlacementsCalls())

func (*Interface) DeviceGetGpuInstanceProfileInfo

func (mock *Interface) DeviceGetGpuInstanceProfileInfo(device nvml.Device, n int) (nvml.GpuInstanceProfileInfo, nvml.Return)

DeviceGetGpuInstanceProfileInfo calls DeviceGetGpuInstanceProfileInfoFunc.

func (*Interface) DeviceGetGpuInstanceProfileInfoCalls

func (mock *Interface) DeviceGetGpuInstanceProfileInfoCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetGpuInstanceProfileInfoCalls gets all the calls that were made to DeviceGetGpuInstanceProfileInfo. Check the length with:

len(mockedInterface.DeviceGetGpuInstanceProfileInfoCalls())

func (*Interface) DeviceGetGpuInstanceProfileInfoV

func (mock *Interface) DeviceGetGpuInstanceProfileInfoV(device nvml.Device, n int) nvml.GpuInstanceProfileInfoV

DeviceGetGpuInstanceProfileInfoV calls DeviceGetGpuInstanceProfileInfoVFunc.

func (*Interface) DeviceGetGpuInstanceProfileInfoVCalls

func (mock *Interface) DeviceGetGpuInstanceProfileInfoVCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetGpuInstanceProfileInfoVCalls gets all the calls that were made to DeviceGetGpuInstanceProfileInfoV. Check the length with:

len(mockedInterface.DeviceGetGpuInstanceProfileInfoVCalls())

func (*Interface) DeviceGetGpuInstanceRemainingCapacity

func (mock *Interface) DeviceGetGpuInstanceRemainingCapacity(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return)

DeviceGetGpuInstanceRemainingCapacity calls DeviceGetGpuInstanceRemainingCapacityFunc.

func (*Interface) DeviceGetGpuInstanceRemainingCapacityCalls

func (mock *Interface) DeviceGetGpuInstanceRemainingCapacityCalls() []struct {
	Device                 nvml.Device
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

DeviceGetGpuInstanceRemainingCapacityCalls gets all the calls that were made to DeviceGetGpuInstanceRemainingCapacity. Check the length with:

len(mockedInterface.DeviceGetGpuInstanceRemainingCapacityCalls())

func (*Interface) DeviceGetGpuInstances

func (mock *Interface) DeviceGetGpuInstances(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return)

DeviceGetGpuInstances calls DeviceGetGpuInstancesFunc.

func (*Interface) DeviceGetGpuInstancesCalls

func (mock *Interface) DeviceGetGpuInstancesCalls() []struct {
	Device                 nvml.Device
	GpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo
}

DeviceGetGpuInstancesCalls gets all the calls that were made to DeviceGetGpuInstances. Check the length with:

len(mockedInterface.DeviceGetGpuInstancesCalls())

func (*Interface) DeviceGetGpuMaxPcieLinkGeneration

func (mock *Interface) DeviceGetGpuMaxPcieLinkGeneration(device nvml.Device) (int, nvml.Return)

DeviceGetGpuMaxPcieLinkGeneration calls DeviceGetGpuMaxPcieLinkGenerationFunc.

func (*Interface) DeviceGetGpuMaxPcieLinkGenerationCalls

func (mock *Interface) DeviceGetGpuMaxPcieLinkGenerationCalls() []struct {
	Device nvml.Device
}

DeviceGetGpuMaxPcieLinkGenerationCalls gets all the calls that were made to DeviceGetGpuMaxPcieLinkGeneration. Check the length with:

len(mockedInterface.DeviceGetGpuMaxPcieLinkGenerationCalls())

func (*Interface) DeviceGetGpuOperationMode

func (mock *Interface) DeviceGetGpuOperationMode(device nvml.Device) (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return)

DeviceGetGpuOperationMode calls DeviceGetGpuOperationModeFunc.

func (*Interface) DeviceGetGpuOperationModeCalls

func (mock *Interface) DeviceGetGpuOperationModeCalls() []struct {
	Device nvml.Device
}

DeviceGetGpuOperationModeCalls gets all the calls that were made to DeviceGetGpuOperationMode. Check the length with:

len(mockedInterface.DeviceGetGpuOperationModeCalls())

func (*Interface) DeviceGetGraphicsRunningProcesses

func (mock *Interface) DeviceGetGraphicsRunningProcesses(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)

DeviceGetGraphicsRunningProcesses calls DeviceGetGraphicsRunningProcessesFunc.

func (*Interface) DeviceGetGraphicsRunningProcessesCalls

func (mock *Interface) DeviceGetGraphicsRunningProcessesCalls() []struct {
	Device nvml.Device
}

DeviceGetGraphicsRunningProcessesCalls gets all the calls that were made to DeviceGetGraphicsRunningProcesses. Check the length with:

len(mockedInterface.DeviceGetGraphicsRunningProcessesCalls())

func (*Interface) DeviceGetGridLicensableFeatures

func (mock *Interface) DeviceGetGridLicensableFeatures(device nvml.Device) (nvml.GridLicensableFeatures, nvml.Return)

DeviceGetGridLicensableFeatures calls DeviceGetGridLicensableFeaturesFunc.

func (*Interface) DeviceGetGridLicensableFeaturesCalls

func (mock *Interface) DeviceGetGridLicensableFeaturesCalls() []struct {
	Device nvml.Device
}

DeviceGetGridLicensableFeaturesCalls gets all the calls that were made to DeviceGetGridLicensableFeatures. Check the length with:

len(mockedInterface.DeviceGetGridLicensableFeaturesCalls())

func (*Interface) DeviceGetGspFirmwareMode

func (mock *Interface) DeviceGetGspFirmwareMode(device nvml.Device) (bool, bool, nvml.Return)

DeviceGetGspFirmwareMode calls DeviceGetGspFirmwareModeFunc.

func (*Interface) DeviceGetGspFirmwareModeCalls

func (mock *Interface) DeviceGetGspFirmwareModeCalls() []struct {
	Device nvml.Device
}

DeviceGetGspFirmwareModeCalls gets all the calls that were made to DeviceGetGspFirmwareMode. Check the length with:

len(mockedInterface.DeviceGetGspFirmwareModeCalls())

func (*Interface) DeviceGetGspFirmwareVersion

func (mock *Interface) DeviceGetGspFirmwareVersion(device nvml.Device) (string, nvml.Return)

DeviceGetGspFirmwareVersion calls DeviceGetGspFirmwareVersionFunc.

func (*Interface) DeviceGetGspFirmwareVersionCalls

func (mock *Interface) DeviceGetGspFirmwareVersionCalls() []struct {
	Device nvml.Device
}

DeviceGetGspFirmwareVersionCalls gets all the calls that were made to DeviceGetGspFirmwareVersion. Check the length with:

len(mockedInterface.DeviceGetGspFirmwareVersionCalls())

func (*Interface) DeviceGetHandleByIndex

func (mock *Interface) DeviceGetHandleByIndex(n int) (nvml.Device, nvml.Return)

DeviceGetHandleByIndex calls DeviceGetHandleByIndexFunc.

func (*Interface) DeviceGetHandleByIndexCalls

func (mock *Interface) DeviceGetHandleByIndexCalls() []struct {
	N int
}

DeviceGetHandleByIndexCalls gets all the calls that were made to DeviceGetHandleByIndex. Check the length with:

len(mockedInterface.DeviceGetHandleByIndexCalls())

func (*Interface) DeviceGetHandleByPciBusId

func (mock *Interface) DeviceGetHandleByPciBusId(s string) (nvml.Device, nvml.Return)

DeviceGetHandleByPciBusId calls DeviceGetHandleByPciBusIdFunc.

func (*Interface) DeviceGetHandleByPciBusIdCalls

func (mock *Interface) DeviceGetHandleByPciBusIdCalls() []struct {
	S string
}

DeviceGetHandleByPciBusIdCalls gets all the calls that were made to DeviceGetHandleByPciBusId. Check the length with:

len(mockedInterface.DeviceGetHandleByPciBusIdCalls())

func (*Interface) DeviceGetHandleBySerial

func (mock *Interface) DeviceGetHandleBySerial(s string) (nvml.Device, nvml.Return)

DeviceGetHandleBySerial calls DeviceGetHandleBySerialFunc.

func (*Interface) DeviceGetHandleBySerialCalls

func (mock *Interface) DeviceGetHandleBySerialCalls() []struct {
	S string
}

DeviceGetHandleBySerialCalls gets all the calls that were made to DeviceGetHandleBySerial. Check the length with:

len(mockedInterface.DeviceGetHandleBySerialCalls())

func (*Interface) DeviceGetHandleByUUID

func (mock *Interface) DeviceGetHandleByUUID(s string) (nvml.Device, nvml.Return)

DeviceGetHandleByUUID calls DeviceGetHandleByUUIDFunc.

func (*Interface) DeviceGetHandleByUUIDCalls

func (mock *Interface) DeviceGetHandleByUUIDCalls() []struct {
	S string
}

DeviceGetHandleByUUIDCalls gets all the calls that were made to DeviceGetHandleByUUID. Check the length with:

len(mockedInterface.DeviceGetHandleByUUIDCalls())

func (*Interface) DeviceGetHostVgpuMode

func (mock *Interface) DeviceGetHostVgpuMode(device nvml.Device) (nvml.HostVgpuMode, nvml.Return)

DeviceGetHostVgpuMode calls DeviceGetHostVgpuModeFunc.

func (*Interface) DeviceGetHostVgpuModeCalls

func (mock *Interface) DeviceGetHostVgpuModeCalls() []struct {
	Device nvml.Device
}

DeviceGetHostVgpuModeCalls gets all the calls that were made to DeviceGetHostVgpuMode. Check the length with:

len(mockedInterface.DeviceGetHostVgpuModeCalls())

func (*Interface) DeviceGetIndex

func (mock *Interface) DeviceGetIndex(device nvml.Device) (int, nvml.Return)

DeviceGetIndex calls DeviceGetIndexFunc.

func (*Interface) DeviceGetIndexCalls

func (mock *Interface) DeviceGetIndexCalls() []struct {
	Device nvml.Device
}

DeviceGetIndexCalls gets all the calls that were made to DeviceGetIndex. Check the length with:

len(mockedInterface.DeviceGetIndexCalls())

func (*Interface) DeviceGetInforomConfigurationChecksum

func (mock *Interface) DeviceGetInforomConfigurationChecksum(device nvml.Device) (uint32, nvml.Return)

DeviceGetInforomConfigurationChecksum calls DeviceGetInforomConfigurationChecksumFunc.

func (*Interface) DeviceGetInforomConfigurationChecksumCalls

func (mock *Interface) DeviceGetInforomConfigurationChecksumCalls() []struct {
	Device nvml.Device
}

DeviceGetInforomConfigurationChecksumCalls gets all the calls that were made to DeviceGetInforomConfigurationChecksum. Check the length with:

len(mockedInterface.DeviceGetInforomConfigurationChecksumCalls())

func (*Interface) DeviceGetInforomImageVersion

func (mock *Interface) DeviceGetInforomImageVersion(device nvml.Device) (string, nvml.Return)

DeviceGetInforomImageVersion calls DeviceGetInforomImageVersionFunc.

func (*Interface) DeviceGetInforomImageVersionCalls

func (mock *Interface) DeviceGetInforomImageVersionCalls() []struct {
	Device nvml.Device
}

DeviceGetInforomImageVersionCalls gets all the calls that were made to DeviceGetInforomImageVersion. Check the length with:

len(mockedInterface.DeviceGetInforomImageVersionCalls())

func (*Interface) DeviceGetInforomVersion

func (mock *Interface) DeviceGetInforomVersion(device nvml.Device, inforomObject nvml.InforomObject) (string, nvml.Return)

DeviceGetInforomVersion calls DeviceGetInforomVersionFunc.

func (*Interface) DeviceGetInforomVersionCalls

func (mock *Interface) DeviceGetInforomVersionCalls() []struct {
	Device        nvml.Device
	InforomObject nvml.InforomObject
}

DeviceGetInforomVersionCalls gets all the calls that were made to DeviceGetInforomVersion. Check the length with:

len(mockedInterface.DeviceGetInforomVersionCalls())

func (*Interface) DeviceGetIrqNum

func (mock *Interface) DeviceGetIrqNum(device nvml.Device) (int, nvml.Return)

DeviceGetIrqNum calls DeviceGetIrqNumFunc.

func (*Interface) DeviceGetIrqNumCalls

func (mock *Interface) DeviceGetIrqNumCalls() []struct {
	Device nvml.Device
}

DeviceGetIrqNumCalls gets all the calls that were made to DeviceGetIrqNum. Check the length with:

len(mockedInterface.DeviceGetIrqNumCalls())

func (*Interface) DeviceGetMPSComputeRunningProcesses

func (mock *Interface) DeviceGetMPSComputeRunningProcesses(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)

DeviceGetMPSComputeRunningProcesses calls DeviceGetMPSComputeRunningProcessesFunc.

func (*Interface) DeviceGetMPSComputeRunningProcessesCalls

func (mock *Interface) DeviceGetMPSComputeRunningProcessesCalls() []struct {
	Device nvml.Device
}

DeviceGetMPSComputeRunningProcessesCalls gets all the calls that were made to DeviceGetMPSComputeRunningProcesses. Check the length with:

len(mockedInterface.DeviceGetMPSComputeRunningProcessesCalls())

func (*Interface) DeviceGetMaxClockInfo

func (mock *Interface) DeviceGetMaxClockInfo(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

DeviceGetMaxClockInfo calls DeviceGetMaxClockInfoFunc.

func (*Interface) DeviceGetMaxClockInfoCalls

func (mock *Interface) DeviceGetMaxClockInfoCalls() []struct {
	Device    nvml.Device
	ClockType nvml.ClockType
}

DeviceGetMaxClockInfoCalls gets all the calls that were made to DeviceGetMaxClockInfo. Check the length with:

len(mockedInterface.DeviceGetMaxClockInfoCalls())

func (*Interface) DeviceGetMaxCustomerBoostClock

func (mock *Interface) DeviceGetMaxCustomerBoostClock(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)

DeviceGetMaxCustomerBoostClock calls DeviceGetMaxCustomerBoostClockFunc.

func (*Interface) DeviceGetMaxCustomerBoostClockCalls

func (mock *Interface) DeviceGetMaxCustomerBoostClockCalls() []struct {
	Device    nvml.Device
	ClockType nvml.ClockType
}

DeviceGetMaxCustomerBoostClockCalls gets all the calls that were made to DeviceGetMaxCustomerBoostClock. Check the length with:

len(mockedInterface.DeviceGetMaxCustomerBoostClockCalls())

func (*Interface) DeviceGetMaxMigDeviceCount

func (mock *Interface) DeviceGetMaxMigDeviceCount(device nvml.Device) (int, nvml.Return)

DeviceGetMaxMigDeviceCount calls DeviceGetMaxMigDeviceCountFunc.

func (*Interface) DeviceGetMaxMigDeviceCountCalls

func (mock *Interface) DeviceGetMaxMigDeviceCountCalls() []struct {
	Device nvml.Device
}

DeviceGetMaxMigDeviceCountCalls gets all the calls that were made to DeviceGetMaxMigDeviceCount. Check the length with:

len(mockedInterface.DeviceGetMaxMigDeviceCountCalls())

func (*Interface) DeviceGetMaxPcieLinkGeneration

func (mock *Interface) DeviceGetMaxPcieLinkGeneration(device nvml.Device) (int, nvml.Return)

DeviceGetMaxPcieLinkGeneration calls DeviceGetMaxPcieLinkGenerationFunc.

func (*Interface) DeviceGetMaxPcieLinkGenerationCalls

func (mock *Interface) DeviceGetMaxPcieLinkGenerationCalls() []struct {
	Device nvml.Device
}

DeviceGetMaxPcieLinkGenerationCalls gets all the calls that were made to DeviceGetMaxPcieLinkGeneration. Check the length with:

len(mockedInterface.DeviceGetMaxPcieLinkGenerationCalls())

func (*Interface) DeviceGetMaxPcieLinkWidth

func (mock *Interface) DeviceGetMaxPcieLinkWidth(device nvml.Device) (int, nvml.Return)

DeviceGetMaxPcieLinkWidth calls DeviceGetMaxPcieLinkWidthFunc.

func (*Interface) DeviceGetMaxPcieLinkWidthCalls

func (mock *Interface) DeviceGetMaxPcieLinkWidthCalls() []struct {
	Device nvml.Device
}

DeviceGetMaxPcieLinkWidthCalls gets all the calls that were made to DeviceGetMaxPcieLinkWidth. Check the length with:

len(mockedInterface.DeviceGetMaxPcieLinkWidthCalls())

func (*Interface) DeviceGetMemClkMinMaxVfOffset

func (mock *Interface) DeviceGetMemClkMinMaxVfOffset(device nvml.Device) (int, int, nvml.Return)

DeviceGetMemClkMinMaxVfOffset calls DeviceGetMemClkMinMaxVfOffsetFunc.

func (*Interface) DeviceGetMemClkMinMaxVfOffsetCalls

func (mock *Interface) DeviceGetMemClkMinMaxVfOffsetCalls() []struct {
	Device nvml.Device
}

DeviceGetMemClkMinMaxVfOffsetCalls gets all the calls that were made to DeviceGetMemClkMinMaxVfOffset. Check the length with:

len(mockedInterface.DeviceGetMemClkMinMaxVfOffsetCalls())

func (*Interface) DeviceGetMemClkVfOffset

func (mock *Interface) DeviceGetMemClkVfOffset(device nvml.Device) (int, nvml.Return)

DeviceGetMemClkVfOffset calls DeviceGetMemClkVfOffsetFunc.

func (*Interface) DeviceGetMemClkVfOffsetCalls

func (mock *Interface) DeviceGetMemClkVfOffsetCalls() []struct {
	Device nvml.Device
}

DeviceGetMemClkVfOffsetCalls gets all the calls that were made to DeviceGetMemClkVfOffset. Check the length with:

len(mockedInterface.DeviceGetMemClkVfOffsetCalls())

func (*Interface) DeviceGetMemoryAffinity

func (mock *Interface) DeviceGetMemoryAffinity(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)

DeviceGetMemoryAffinity calls DeviceGetMemoryAffinityFunc.

func (*Interface) DeviceGetMemoryAffinityCalls

func (mock *Interface) DeviceGetMemoryAffinityCalls() []struct {
	Device        nvml.Device
	N             int
	AffinityScope nvml.AffinityScope
}

DeviceGetMemoryAffinityCalls gets all the calls that were made to DeviceGetMemoryAffinity. Check the length with:

len(mockedInterface.DeviceGetMemoryAffinityCalls())

func (*Interface) DeviceGetMemoryBusWidth

func (mock *Interface) DeviceGetMemoryBusWidth(device nvml.Device) (uint32, nvml.Return)

DeviceGetMemoryBusWidth calls DeviceGetMemoryBusWidthFunc.

func (*Interface) DeviceGetMemoryBusWidthCalls

func (mock *Interface) DeviceGetMemoryBusWidthCalls() []struct {
	Device nvml.Device
}

DeviceGetMemoryBusWidthCalls gets all the calls that were made to DeviceGetMemoryBusWidth. Check the length with:

len(mockedInterface.DeviceGetMemoryBusWidthCalls())

func (*Interface) DeviceGetMemoryErrorCounter

func (mock *Interface) DeviceGetMemoryErrorCounter(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType, memoryLocation nvml.MemoryLocation) (uint64, nvml.Return)

DeviceGetMemoryErrorCounter calls DeviceGetMemoryErrorCounterFunc.

func (*Interface) DeviceGetMemoryErrorCounterCalls

func (mock *Interface) DeviceGetMemoryErrorCounterCalls() []struct {
	Device          nvml.Device
	MemoryErrorType nvml.MemoryErrorType
	EccCounterType  nvml.EccCounterType
	MemoryLocation  nvml.MemoryLocation
}

DeviceGetMemoryErrorCounterCalls gets all the calls that were made to DeviceGetMemoryErrorCounter. Check the length with:

len(mockedInterface.DeviceGetMemoryErrorCounterCalls())

func (*Interface) DeviceGetMemoryInfo

func (mock *Interface) DeviceGetMemoryInfo(device nvml.Device) (nvml.Memory, nvml.Return)

DeviceGetMemoryInfo calls DeviceGetMemoryInfoFunc.

func (*Interface) DeviceGetMemoryInfoCalls

func (mock *Interface) DeviceGetMemoryInfoCalls() []struct {
	Device nvml.Device
}

DeviceGetMemoryInfoCalls gets all the calls that were made to DeviceGetMemoryInfo. Check the length with:

len(mockedInterface.DeviceGetMemoryInfoCalls())

func (*Interface) DeviceGetMemoryInfo_v2

func (mock *Interface) DeviceGetMemoryInfo_v2(device nvml.Device) (nvml.Memory_v2, nvml.Return)

DeviceGetMemoryInfo_v2 calls DeviceGetMemoryInfo_v2Func.

func (*Interface) DeviceGetMemoryInfo_v2Calls

func (mock *Interface) DeviceGetMemoryInfo_v2Calls() []struct {
	Device nvml.Device
}

DeviceGetMemoryInfo_v2Calls gets all the calls that were made to DeviceGetMemoryInfo_v2. Check the length with:

len(mockedInterface.DeviceGetMemoryInfo_v2Calls())

func (*Interface) DeviceGetMigDeviceHandleByIndex

func (mock *Interface) DeviceGetMigDeviceHandleByIndex(device nvml.Device, n int) (nvml.Device, nvml.Return)

DeviceGetMigDeviceHandleByIndex calls DeviceGetMigDeviceHandleByIndexFunc.

func (*Interface) DeviceGetMigDeviceHandleByIndexCalls

func (mock *Interface) DeviceGetMigDeviceHandleByIndexCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetMigDeviceHandleByIndexCalls gets all the calls that were made to DeviceGetMigDeviceHandleByIndex. Check the length with:

len(mockedInterface.DeviceGetMigDeviceHandleByIndexCalls())

func (*Interface) DeviceGetMigMode

func (mock *Interface) DeviceGetMigMode(device nvml.Device) (int, int, nvml.Return)

DeviceGetMigMode calls DeviceGetMigModeFunc.

func (*Interface) DeviceGetMigModeCalls

func (mock *Interface) DeviceGetMigModeCalls() []struct {
	Device nvml.Device
}

DeviceGetMigModeCalls gets all the calls that were made to DeviceGetMigMode. Check the length with:

len(mockedInterface.DeviceGetMigModeCalls())

func (*Interface) DeviceGetMinMaxClockOfPState

func (mock *Interface) DeviceGetMinMaxClockOfPState(device nvml.Device, clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return)

DeviceGetMinMaxClockOfPState calls DeviceGetMinMaxClockOfPStateFunc.

func (*Interface) DeviceGetMinMaxClockOfPStateCalls

func (mock *Interface) DeviceGetMinMaxClockOfPStateCalls() []struct {
	Device    nvml.Device
	ClockType nvml.ClockType
	Pstates   nvml.Pstates
}

DeviceGetMinMaxClockOfPStateCalls gets all the calls that were made to DeviceGetMinMaxClockOfPState. Check the length with:

len(mockedInterface.DeviceGetMinMaxClockOfPStateCalls())

func (*Interface) DeviceGetMinMaxFanSpeed

func (mock *Interface) DeviceGetMinMaxFanSpeed(device nvml.Device) (int, int, nvml.Return)

DeviceGetMinMaxFanSpeed calls DeviceGetMinMaxFanSpeedFunc.

func (*Interface) DeviceGetMinMaxFanSpeedCalls

func (mock *Interface) DeviceGetMinMaxFanSpeedCalls() []struct {
	Device nvml.Device
}

DeviceGetMinMaxFanSpeedCalls gets all the calls that were made to DeviceGetMinMaxFanSpeed. Check the length with:

len(mockedInterface.DeviceGetMinMaxFanSpeedCalls())

func (*Interface) DeviceGetMinorNumber

func (mock *Interface) DeviceGetMinorNumber(device nvml.Device) (int, nvml.Return)

DeviceGetMinorNumber calls DeviceGetMinorNumberFunc.

func (*Interface) DeviceGetMinorNumberCalls

func (mock *Interface) DeviceGetMinorNumberCalls() []struct {
	Device nvml.Device
}

DeviceGetMinorNumberCalls gets all the calls that were made to DeviceGetMinorNumber. Check the length with:

len(mockedInterface.DeviceGetMinorNumberCalls())

func (*Interface) DeviceGetMultiGpuBoard

func (mock *Interface) DeviceGetMultiGpuBoard(device nvml.Device) (int, nvml.Return)

DeviceGetMultiGpuBoard calls DeviceGetMultiGpuBoardFunc.

func (*Interface) DeviceGetMultiGpuBoardCalls

func (mock *Interface) DeviceGetMultiGpuBoardCalls() []struct {
	Device nvml.Device
}

DeviceGetMultiGpuBoardCalls gets all the calls that were made to DeviceGetMultiGpuBoard. Check the length with:

len(mockedInterface.DeviceGetMultiGpuBoardCalls())

func (*Interface) DeviceGetName

func (mock *Interface) DeviceGetName(device nvml.Device) (string, nvml.Return)

DeviceGetName calls DeviceGetNameFunc.

func (*Interface) DeviceGetNameCalls

func (mock *Interface) DeviceGetNameCalls() []struct {
	Device nvml.Device
}

DeviceGetNameCalls gets all the calls that were made to DeviceGetName. Check the length with:

len(mockedInterface.DeviceGetNameCalls())

func (*Interface) DeviceGetNumFans

func (mock *Interface) DeviceGetNumFans(device nvml.Device) (int, nvml.Return)

DeviceGetNumFans calls DeviceGetNumFansFunc.

func (*Interface) DeviceGetNumFansCalls

func (mock *Interface) DeviceGetNumFansCalls() []struct {
	Device nvml.Device
}

DeviceGetNumFansCalls gets all the calls that were made to DeviceGetNumFans. Check the length with:

len(mockedInterface.DeviceGetNumFansCalls())

func (*Interface) DeviceGetNumGpuCores

func (mock *Interface) DeviceGetNumGpuCores(device nvml.Device) (int, nvml.Return)

DeviceGetNumGpuCores calls DeviceGetNumGpuCoresFunc.

func (*Interface) DeviceGetNumGpuCoresCalls

func (mock *Interface) DeviceGetNumGpuCoresCalls() []struct {
	Device nvml.Device
}

DeviceGetNumGpuCoresCalls gets all the calls that were made to DeviceGetNumGpuCores. Check the length with:

len(mockedInterface.DeviceGetNumGpuCoresCalls())

func (*Interface) DeviceGetNvLinkCapability

func (mock *Interface) DeviceGetNvLinkCapability(device nvml.Device, n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return)

DeviceGetNvLinkCapability calls DeviceGetNvLinkCapabilityFunc.

func (*Interface) DeviceGetNvLinkCapabilityCalls

func (mock *Interface) DeviceGetNvLinkCapabilityCalls() []struct {
	Device           nvml.Device
	N                int
	NvLinkCapability nvml.NvLinkCapability
}

DeviceGetNvLinkCapabilityCalls gets all the calls that were made to DeviceGetNvLinkCapability. Check the length with:

len(mockedInterface.DeviceGetNvLinkCapabilityCalls())

func (*Interface) DeviceGetNvLinkErrorCounter

func (mock *Interface) DeviceGetNvLinkErrorCounter(device nvml.Device, n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return)

DeviceGetNvLinkErrorCounter calls DeviceGetNvLinkErrorCounterFunc.

func (*Interface) DeviceGetNvLinkErrorCounterCalls

func (mock *Interface) DeviceGetNvLinkErrorCounterCalls() []struct {
	Device             nvml.Device
	N                  int
	NvLinkErrorCounter nvml.NvLinkErrorCounter
}

DeviceGetNvLinkErrorCounterCalls gets all the calls that were made to DeviceGetNvLinkErrorCounter. Check the length with:

len(mockedInterface.DeviceGetNvLinkErrorCounterCalls())

func (*Interface) DeviceGetNvLinkRemoteDeviceType

func (mock *Interface) DeviceGetNvLinkRemoteDeviceType(device nvml.Device, n int) (nvml.IntNvLinkDeviceType, nvml.Return)

DeviceGetNvLinkRemoteDeviceType calls DeviceGetNvLinkRemoteDeviceTypeFunc.

func (*Interface) DeviceGetNvLinkRemoteDeviceTypeCalls

func (mock *Interface) DeviceGetNvLinkRemoteDeviceTypeCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetNvLinkRemoteDeviceTypeCalls gets all the calls that were made to DeviceGetNvLinkRemoteDeviceType. Check the length with:

len(mockedInterface.DeviceGetNvLinkRemoteDeviceTypeCalls())

func (*Interface) DeviceGetNvLinkRemotePciInfo

func (mock *Interface) DeviceGetNvLinkRemotePciInfo(device nvml.Device, n int) (nvml.PciInfo, nvml.Return)

DeviceGetNvLinkRemotePciInfo calls DeviceGetNvLinkRemotePciInfoFunc.

func (*Interface) DeviceGetNvLinkRemotePciInfoCalls

func (mock *Interface) DeviceGetNvLinkRemotePciInfoCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetNvLinkRemotePciInfoCalls gets all the calls that were made to DeviceGetNvLinkRemotePciInfo. Check the length with:

len(mockedInterface.DeviceGetNvLinkRemotePciInfoCalls())

func (*Interface) DeviceGetNvLinkState

func (mock *Interface) DeviceGetNvLinkState(device nvml.Device, n int) (nvml.EnableState, nvml.Return)

DeviceGetNvLinkState calls DeviceGetNvLinkStateFunc.

func (*Interface) DeviceGetNvLinkStateCalls

func (mock *Interface) DeviceGetNvLinkStateCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetNvLinkStateCalls gets all the calls that were made to DeviceGetNvLinkState. Check the length with:

len(mockedInterface.DeviceGetNvLinkStateCalls())

func (*Interface) DeviceGetNvLinkUtilizationControl

func (mock *Interface) DeviceGetNvLinkUtilizationControl(device nvml.Device, n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return)

DeviceGetNvLinkUtilizationControl calls DeviceGetNvLinkUtilizationControlFunc.

func (*Interface) DeviceGetNvLinkUtilizationControlCalls

func (mock *Interface) DeviceGetNvLinkUtilizationControlCalls() []struct {
	Device nvml.Device
	N1     int
	N2     int
}

DeviceGetNvLinkUtilizationControlCalls gets all the calls that were made to DeviceGetNvLinkUtilizationControl. Check the length with:

len(mockedInterface.DeviceGetNvLinkUtilizationControlCalls())

func (*Interface) DeviceGetNvLinkUtilizationCounter

func (mock *Interface) DeviceGetNvLinkUtilizationCounter(device nvml.Device, n1 int, n2 int) (uint64, uint64, nvml.Return)

DeviceGetNvLinkUtilizationCounter calls DeviceGetNvLinkUtilizationCounterFunc.

func (*Interface) DeviceGetNvLinkUtilizationCounterCalls

func (mock *Interface) DeviceGetNvLinkUtilizationCounterCalls() []struct {
	Device nvml.Device
	N1     int
	N2     int
}

DeviceGetNvLinkUtilizationCounterCalls gets all the calls that were made to DeviceGetNvLinkUtilizationCounter. Check the length with:

len(mockedInterface.DeviceGetNvLinkUtilizationCounterCalls())

func (*Interface) DeviceGetNvLinkVersion

func (mock *Interface) DeviceGetNvLinkVersion(device nvml.Device, n int) (uint32, nvml.Return)

DeviceGetNvLinkVersion calls DeviceGetNvLinkVersionFunc.

func (*Interface) DeviceGetNvLinkVersionCalls

func (mock *Interface) DeviceGetNvLinkVersionCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetNvLinkVersionCalls gets all the calls that were made to DeviceGetNvLinkVersion. Check the length with:

len(mockedInterface.DeviceGetNvLinkVersionCalls())

func (*Interface) DeviceGetP2PStatus

func (mock *Interface) DeviceGetP2PStatus(device1 nvml.Device, device2 nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return)

DeviceGetP2PStatus calls DeviceGetP2PStatusFunc.

func (*Interface) DeviceGetP2PStatusCalls

func (mock *Interface) DeviceGetP2PStatusCalls() []struct {
	Device1         nvml.Device
	Device2         nvml.Device
	GpuP2PCapsIndex nvml.GpuP2PCapsIndex
}

DeviceGetP2PStatusCalls gets all the calls that were made to DeviceGetP2PStatus. Check the length with:

len(mockedInterface.DeviceGetP2PStatusCalls())

func (*Interface) DeviceGetPciInfo

func (mock *Interface) DeviceGetPciInfo(device nvml.Device) (nvml.PciInfo, nvml.Return)

DeviceGetPciInfo calls DeviceGetPciInfoFunc.

func (*Interface) DeviceGetPciInfoCalls

func (mock *Interface) DeviceGetPciInfoCalls() []struct {
	Device nvml.Device
}

DeviceGetPciInfoCalls gets all the calls that were made to DeviceGetPciInfo. Check the length with:

len(mockedInterface.DeviceGetPciInfoCalls())

func (*Interface) DeviceGetPcieLinkMaxSpeed

func (mock *Interface) DeviceGetPcieLinkMaxSpeed(device nvml.Device) (uint32, nvml.Return)

DeviceGetPcieLinkMaxSpeed calls DeviceGetPcieLinkMaxSpeedFunc.

func (*Interface) DeviceGetPcieLinkMaxSpeedCalls

func (mock *Interface) DeviceGetPcieLinkMaxSpeedCalls() []struct {
	Device nvml.Device
}

DeviceGetPcieLinkMaxSpeedCalls gets all the calls that were made to DeviceGetPcieLinkMaxSpeed. Check the length with:

len(mockedInterface.DeviceGetPcieLinkMaxSpeedCalls())

func (*Interface) DeviceGetPcieReplayCounter

func (mock *Interface) DeviceGetPcieReplayCounter(device nvml.Device) (int, nvml.Return)

DeviceGetPcieReplayCounter calls DeviceGetPcieReplayCounterFunc.

func (*Interface) DeviceGetPcieReplayCounterCalls

func (mock *Interface) DeviceGetPcieReplayCounterCalls() []struct {
	Device nvml.Device
}

DeviceGetPcieReplayCounterCalls gets all the calls that were made to DeviceGetPcieReplayCounter. Check the length with:

len(mockedInterface.DeviceGetPcieReplayCounterCalls())

func (*Interface) DeviceGetPcieSpeed

func (mock *Interface) DeviceGetPcieSpeed(device nvml.Device) (int, nvml.Return)

DeviceGetPcieSpeed calls DeviceGetPcieSpeedFunc.

func (*Interface) DeviceGetPcieSpeedCalls

func (mock *Interface) DeviceGetPcieSpeedCalls() []struct {
	Device nvml.Device
}

DeviceGetPcieSpeedCalls gets all the calls that were made to DeviceGetPcieSpeed. Check the length with:

len(mockedInterface.DeviceGetPcieSpeedCalls())

func (*Interface) DeviceGetPcieThroughput

func (mock *Interface) DeviceGetPcieThroughput(device nvml.Device, pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return)

DeviceGetPcieThroughput calls DeviceGetPcieThroughputFunc.

func (*Interface) DeviceGetPcieThroughputCalls

func (mock *Interface) DeviceGetPcieThroughputCalls() []struct {
	Device          nvml.Device
	PcieUtilCounter nvml.PcieUtilCounter
}

DeviceGetPcieThroughputCalls gets all the calls that were made to DeviceGetPcieThroughput. Check the length with:

len(mockedInterface.DeviceGetPcieThroughputCalls())

func (*Interface) DeviceGetPerformanceState

func (mock *Interface) DeviceGetPerformanceState(device nvml.Device) (nvml.Pstates, nvml.Return)

DeviceGetPerformanceState calls DeviceGetPerformanceStateFunc.

func (*Interface) DeviceGetPerformanceStateCalls

func (mock *Interface) DeviceGetPerformanceStateCalls() []struct {
	Device nvml.Device
}

DeviceGetPerformanceStateCalls gets all the calls that were made to DeviceGetPerformanceState. Check the length with:

len(mockedInterface.DeviceGetPerformanceStateCalls())

func (*Interface) DeviceGetPersistenceMode

func (mock *Interface) DeviceGetPersistenceMode(device nvml.Device) (nvml.EnableState, nvml.Return)

DeviceGetPersistenceMode calls DeviceGetPersistenceModeFunc.

func (*Interface) DeviceGetPersistenceModeCalls

func (mock *Interface) DeviceGetPersistenceModeCalls() []struct {
	Device nvml.Device
}

DeviceGetPersistenceModeCalls gets all the calls that were made to DeviceGetPersistenceMode. Check the length with:

len(mockedInterface.DeviceGetPersistenceModeCalls())

func (*Interface) DeviceGetPgpuMetadataString

func (mock *Interface) DeviceGetPgpuMetadataString(device nvml.Device) (string, nvml.Return)

DeviceGetPgpuMetadataString calls DeviceGetPgpuMetadataStringFunc.

func (*Interface) DeviceGetPgpuMetadataStringCalls

func (mock *Interface) DeviceGetPgpuMetadataStringCalls() []struct {
	Device nvml.Device
}

DeviceGetPgpuMetadataStringCalls gets all the calls that were made to DeviceGetPgpuMetadataString. Check the length with:

len(mockedInterface.DeviceGetPgpuMetadataStringCalls())

func (*Interface) DeviceGetPowerManagementDefaultLimit

func (mock *Interface) DeviceGetPowerManagementDefaultLimit(device nvml.Device) (uint32, nvml.Return)

DeviceGetPowerManagementDefaultLimit calls DeviceGetPowerManagementDefaultLimitFunc.

func (*Interface) DeviceGetPowerManagementDefaultLimitCalls

func (mock *Interface) DeviceGetPowerManagementDefaultLimitCalls() []struct {
	Device nvml.Device
}

DeviceGetPowerManagementDefaultLimitCalls gets all the calls that were made to DeviceGetPowerManagementDefaultLimit. Check the length with:

len(mockedInterface.DeviceGetPowerManagementDefaultLimitCalls())

func (*Interface) DeviceGetPowerManagementLimit

func (mock *Interface) DeviceGetPowerManagementLimit(device nvml.Device) (uint32, nvml.Return)

DeviceGetPowerManagementLimit calls DeviceGetPowerManagementLimitFunc.

func (*Interface) DeviceGetPowerManagementLimitCalls

func (mock *Interface) DeviceGetPowerManagementLimitCalls() []struct {
	Device nvml.Device
}

DeviceGetPowerManagementLimitCalls gets all the calls that were made to DeviceGetPowerManagementLimit. Check the length with:

len(mockedInterface.DeviceGetPowerManagementLimitCalls())

func (*Interface) DeviceGetPowerManagementLimitConstraints

func (mock *Interface) DeviceGetPowerManagementLimitConstraints(device nvml.Device) (uint32, uint32, nvml.Return)

DeviceGetPowerManagementLimitConstraints calls DeviceGetPowerManagementLimitConstraintsFunc.

func (*Interface) DeviceGetPowerManagementLimitConstraintsCalls

func (mock *Interface) DeviceGetPowerManagementLimitConstraintsCalls() []struct {
	Device nvml.Device
}

DeviceGetPowerManagementLimitConstraintsCalls gets all the calls that were made to DeviceGetPowerManagementLimitConstraints. Check the length with:

len(mockedInterface.DeviceGetPowerManagementLimitConstraintsCalls())

func (*Interface) DeviceGetPowerManagementMode

func (mock *Interface) DeviceGetPowerManagementMode(device nvml.Device) (nvml.EnableState, nvml.Return)

DeviceGetPowerManagementMode calls DeviceGetPowerManagementModeFunc.

func (*Interface) DeviceGetPowerManagementModeCalls

func (mock *Interface) DeviceGetPowerManagementModeCalls() []struct {
	Device nvml.Device
}

DeviceGetPowerManagementModeCalls gets all the calls that were made to DeviceGetPowerManagementMode. Check the length with:

len(mockedInterface.DeviceGetPowerManagementModeCalls())

func (*Interface) DeviceGetPowerSource

func (mock *Interface) DeviceGetPowerSource(device nvml.Device) (nvml.PowerSource, nvml.Return)

DeviceGetPowerSource calls DeviceGetPowerSourceFunc.

func (*Interface) DeviceGetPowerSourceCalls

func (mock *Interface) DeviceGetPowerSourceCalls() []struct {
	Device nvml.Device
}

DeviceGetPowerSourceCalls gets all the calls that were made to DeviceGetPowerSource. Check the length with:

len(mockedInterface.DeviceGetPowerSourceCalls())

func (*Interface) DeviceGetPowerState

func (mock *Interface) DeviceGetPowerState(device nvml.Device) (nvml.Pstates, nvml.Return)

DeviceGetPowerState calls DeviceGetPowerStateFunc.

func (*Interface) DeviceGetPowerStateCalls

func (mock *Interface) DeviceGetPowerStateCalls() []struct {
	Device nvml.Device
}

DeviceGetPowerStateCalls gets all the calls that were made to DeviceGetPowerState. Check the length with:

len(mockedInterface.DeviceGetPowerStateCalls())

func (*Interface) DeviceGetPowerUsage

func (mock *Interface) DeviceGetPowerUsage(device nvml.Device) (uint32, nvml.Return)

DeviceGetPowerUsage calls DeviceGetPowerUsageFunc.

func (*Interface) DeviceGetPowerUsageCalls

func (mock *Interface) DeviceGetPowerUsageCalls() []struct {
	Device nvml.Device
}

DeviceGetPowerUsageCalls gets all the calls that were made to DeviceGetPowerUsage. Check the length with:

len(mockedInterface.DeviceGetPowerUsageCalls())

func (*Interface) DeviceGetProcessUtilization

func (mock *Interface) DeviceGetProcessUtilization(device nvml.Device, v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return)

DeviceGetProcessUtilization calls DeviceGetProcessUtilizationFunc.

func (*Interface) DeviceGetProcessUtilizationCalls

func (mock *Interface) DeviceGetProcessUtilizationCalls() []struct {
	Device nvml.Device
	V      uint64
}

DeviceGetProcessUtilizationCalls gets all the calls that were made to DeviceGetProcessUtilization. Check the length with:

len(mockedInterface.DeviceGetProcessUtilizationCalls())

func (*Interface) DeviceGetRemappedRows

func (mock *Interface) DeviceGetRemappedRows(device nvml.Device) (int, int, bool, bool, nvml.Return)

DeviceGetRemappedRows calls DeviceGetRemappedRowsFunc.

func (*Interface) DeviceGetRemappedRowsCalls

func (mock *Interface) DeviceGetRemappedRowsCalls() []struct {
	Device nvml.Device
}

DeviceGetRemappedRowsCalls gets all the calls that were made to DeviceGetRemappedRows. Check the length with:

len(mockedInterface.DeviceGetRemappedRowsCalls())

func (*Interface) DeviceGetRetiredPages

func (mock *Interface) DeviceGetRetiredPages(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return)

DeviceGetRetiredPages calls DeviceGetRetiredPagesFunc.

func (*Interface) DeviceGetRetiredPagesCalls

func (mock *Interface) DeviceGetRetiredPagesCalls() []struct {
	Device              nvml.Device
	PageRetirementCause nvml.PageRetirementCause
}

DeviceGetRetiredPagesCalls gets all the calls that were made to DeviceGetRetiredPages. Check the length with:

len(mockedInterface.DeviceGetRetiredPagesCalls())

func (*Interface) DeviceGetRetiredPagesPendingStatus

func (mock *Interface) DeviceGetRetiredPagesPendingStatus(device nvml.Device) (nvml.EnableState, nvml.Return)

DeviceGetRetiredPagesPendingStatus calls DeviceGetRetiredPagesPendingStatusFunc.

func (*Interface) DeviceGetRetiredPagesPendingStatusCalls

func (mock *Interface) DeviceGetRetiredPagesPendingStatusCalls() []struct {
	Device nvml.Device
}

DeviceGetRetiredPagesPendingStatusCalls gets all the calls that were made to DeviceGetRetiredPagesPendingStatus. Check the length with:

len(mockedInterface.DeviceGetRetiredPagesPendingStatusCalls())

func (*Interface) DeviceGetRetiredPages_v2

func (mock *Interface) DeviceGetRetiredPages_v2(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return)

DeviceGetRetiredPages_v2 calls DeviceGetRetiredPages_v2Func.

func (*Interface) DeviceGetRetiredPages_v2Calls

func (mock *Interface) DeviceGetRetiredPages_v2Calls() []struct {
	Device              nvml.Device
	PageRetirementCause nvml.PageRetirementCause
}

DeviceGetRetiredPages_v2Calls gets all the calls that were made to DeviceGetRetiredPages_v2. Check the length with:

len(mockedInterface.DeviceGetRetiredPages_v2Calls())

func (*Interface) DeviceGetRowRemapperHistogram

func (mock *Interface) DeviceGetRowRemapperHistogram(device nvml.Device) (nvml.RowRemapperHistogramValues, nvml.Return)

DeviceGetRowRemapperHistogram calls DeviceGetRowRemapperHistogramFunc.

func (*Interface) DeviceGetRowRemapperHistogramCalls

func (mock *Interface) DeviceGetRowRemapperHistogramCalls() []struct {
	Device nvml.Device
}

DeviceGetRowRemapperHistogramCalls gets all the calls that were made to DeviceGetRowRemapperHistogram. Check the length with:

len(mockedInterface.DeviceGetRowRemapperHistogramCalls())

func (*Interface) DeviceGetSamples

func (mock *Interface) DeviceGetSamples(device nvml.Device, samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return)

DeviceGetSamples calls DeviceGetSamplesFunc.

func (*Interface) DeviceGetSamplesCalls

func (mock *Interface) DeviceGetSamplesCalls() []struct {
	Device       nvml.Device
	SamplingType nvml.SamplingType
	V            uint64
}

DeviceGetSamplesCalls gets all the calls that were made to DeviceGetSamples. Check the length with:

len(mockedInterface.DeviceGetSamplesCalls())

func (*Interface) DeviceGetSerial

func (mock *Interface) DeviceGetSerial(device nvml.Device) (string, nvml.Return)

DeviceGetSerial calls DeviceGetSerialFunc.

func (*Interface) DeviceGetSerialCalls

func (mock *Interface) DeviceGetSerialCalls() []struct {
	Device nvml.Device
}

DeviceGetSerialCalls gets all the calls that were made to DeviceGetSerial. Check the length with:

len(mockedInterface.DeviceGetSerialCalls())

func (*Interface) DeviceGetSupportedClocksThrottleReasons

func (mock *Interface) DeviceGetSupportedClocksThrottleReasons(device nvml.Device) (uint64, nvml.Return)

DeviceGetSupportedClocksThrottleReasons calls DeviceGetSupportedClocksThrottleReasonsFunc.

func (*Interface) DeviceGetSupportedClocksThrottleReasonsCalls

func (mock *Interface) DeviceGetSupportedClocksThrottleReasonsCalls() []struct {
	Device nvml.Device
}

DeviceGetSupportedClocksThrottleReasonsCalls gets all the calls that were made to DeviceGetSupportedClocksThrottleReasons. Check the length with:

len(mockedInterface.DeviceGetSupportedClocksThrottleReasonsCalls())

func (*Interface) DeviceGetSupportedEventTypes

func (mock *Interface) DeviceGetSupportedEventTypes(device nvml.Device) (uint64, nvml.Return)

DeviceGetSupportedEventTypes calls DeviceGetSupportedEventTypesFunc.

func (*Interface) DeviceGetSupportedEventTypesCalls

func (mock *Interface) DeviceGetSupportedEventTypesCalls() []struct {
	Device nvml.Device
}

DeviceGetSupportedEventTypesCalls gets all the calls that were made to DeviceGetSupportedEventTypes. Check the length with:

len(mockedInterface.DeviceGetSupportedEventTypesCalls())

func (*Interface) DeviceGetSupportedGraphicsClocks

func (mock *Interface) DeviceGetSupportedGraphicsClocks(device nvml.Device, n int) (int, uint32, nvml.Return)

DeviceGetSupportedGraphicsClocks calls DeviceGetSupportedGraphicsClocksFunc.

func (*Interface) DeviceGetSupportedGraphicsClocksCalls

func (mock *Interface) DeviceGetSupportedGraphicsClocksCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetSupportedGraphicsClocksCalls gets all the calls that were made to DeviceGetSupportedGraphicsClocks. Check the length with:

len(mockedInterface.DeviceGetSupportedGraphicsClocksCalls())

func (*Interface) DeviceGetSupportedMemoryClocks

func (mock *Interface) DeviceGetSupportedMemoryClocks(device nvml.Device) (int, uint32, nvml.Return)

DeviceGetSupportedMemoryClocks calls DeviceGetSupportedMemoryClocksFunc.

func (*Interface) DeviceGetSupportedMemoryClocksCalls

func (mock *Interface) DeviceGetSupportedMemoryClocksCalls() []struct {
	Device nvml.Device
}

DeviceGetSupportedMemoryClocksCalls gets all the calls that were made to DeviceGetSupportedMemoryClocks. Check the length with:

len(mockedInterface.DeviceGetSupportedMemoryClocksCalls())

func (*Interface) DeviceGetSupportedPerformanceStates

func (mock *Interface) DeviceGetSupportedPerformanceStates(device nvml.Device) ([]nvml.Pstates, nvml.Return)

DeviceGetSupportedPerformanceStates calls DeviceGetSupportedPerformanceStatesFunc.

func (*Interface) DeviceGetSupportedPerformanceStatesCalls

func (mock *Interface) DeviceGetSupportedPerformanceStatesCalls() []struct {
	Device nvml.Device
}

DeviceGetSupportedPerformanceStatesCalls gets all the calls that were made to DeviceGetSupportedPerformanceStates. Check the length with:

len(mockedInterface.DeviceGetSupportedPerformanceStatesCalls())

func (*Interface) DeviceGetSupportedVgpus

func (mock *Interface) DeviceGetSupportedVgpus(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return)

DeviceGetSupportedVgpus calls DeviceGetSupportedVgpusFunc.

func (*Interface) DeviceGetSupportedVgpusCalls

func (mock *Interface) DeviceGetSupportedVgpusCalls() []struct {
	Device nvml.Device
}

DeviceGetSupportedVgpusCalls gets all the calls that were made to DeviceGetSupportedVgpus. Check the length with:

len(mockedInterface.DeviceGetSupportedVgpusCalls())

func (*Interface) DeviceGetTargetFanSpeed

func (mock *Interface) DeviceGetTargetFanSpeed(device nvml.Device, n int) (int, nvml.Return)

DeviceGetTargetFanSpeed calls DeviceGetTargetFanSpeedFunc.

func (*Interface) DeviceGetTargetFanSpeedCalls

func (mock *Interface) DeviceGetTargetFanSpeedCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceGetTargetFanSpeedCalls gets all the calls that were made to DeviceGetTargetFanSpeed. Check the length with:

len(mockedInterface.DeviceGetTargetFanSpeedCalls())

func (*Interface) DeviceGetTemperature

func (mock *Interface) DeviceGetTemperature(device nvml.Device, temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return)

DeviceGetTemperature calls DeviceGetTemperatureFunc.

func (*Interface) DeviceGetTemperatureCalls

func (mock *Interface) DeviceGetTemperatureCalls() []struct {
	Device             nvml.Device
	TemperatureSensors nvml.TemperatureSensors
}

DeviceGetTemperatureCalls gets all the calls that were made to DeviceGetTemperature. Check the length with:

len(mockedInterface.DeviceGetTemperatureCalls())

func (*Interface) DeviceGetTemperatureThreshold

func (mock *Interface) DeviceGetTemperatureThreshold(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return)

DeviceGetTemperatureThreshold calls DeviceGetTemperatureThresholdFunc.

func (*Interface) DeviceGetTemperatureThresholdCalls

func (mock *Interface) DeviceGetTemperatureThresholdCalls() []struct {
	Device                nvml.Device
	TemperatureThresholds nvml.TemperatureThresholds
}

DeviceGetTemperatureThresholdCalls gets all the calls that were made to DeviceGetTemperatureThreshold. Check the length with:

len(mockedInterface.DeviceGetTemperatureThresholdCalls())

func (*Interface) DeviceGetThermalSettings

func (mock *Interface) DeviceGetThermalSettings(device nvml.Device, v uint32) (nvml.GpuThermalSettings, nvml.Return)

DeviceGetThermalSettings calls DeviceGetThermalSettingsFunc.

func (*Interface) DeviceGetThermalSettingsCalls

func (mock *Interface) DeviceGetThermalSettingsCalls() []struct {
	Device nvml.Device
	V      uint32
}

DeviceGetThermalSettingsCalls gets all the calls that were made to DeviceGetThermalSettings. Check the length with:

len(mockedInterface.DeviceGetThermalSettingsCalls())

func (*Interface) DeviceGetTopologyCommonAncestor

func (mock *Interface) DeviceGetTopologyCommonAncestor(device1 nvml.Device, device2 nvml.Device) (nvml.GpuTopologyLevel, nvml.Return)

DeviceGetTopologyCommonAncestor calls DeviceGetTopologyCommonAncestorFunc.

func (*Interface) DeviceGetTopologyCommonAncestorCalls

func (mock *Interface) DeviceGetTopologyCommonAncestorCalls() []struct {
	Device1 nvml.Device
	Device2 nvml.Device
}

DeviceGetTopologyCommonAncestorCalls gets all the calls that were made to DeviceGetTopologyCommonAncestor. Check the length with:

len(mockedInterface.DeviceGetTopologyCommonAncestorCalls())

func (*Interface) DeviceGetTopologyNearestGpus

func (mock *Interface) DeviceGetTopologyNearestGpus(device nvml.Device, gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return)

DeviceGetTopologyNearestGpus calls DeviceGetTopologyNearestGpusFunc.

func (*Interface) DeviceGetTopologyNearestGpusCalls

func (mock *Interface) DeviceGetTopologyNearestGpusCalls() []struct {
	Device           nvml.Device
	GpuTopologyLevel nvml.GpuTopologyLevel
}

DeviceGetTopologyNearestGpusCalls gets all the calls that were made to DeviceGetTopologyNearestGpus. Check the length with:

len(mockedInterface.DeviceGetTopologyNearestGpusCalls())

func (*Interface) DeviceGetTotalEccErrors

func (mock *Interface) DeviceGetTotalEccErrors(device nvml.Device, memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (uint64, nvml.Return)

DeviceGetTotalEccErrors calls DeviceGetTotalEccErrorsFunc.

func (*Interface) DeviceGetTotalEccErrorsCalls

func (mock *Interface) DeviceGetTotalEccErrorsCalls() []struct {
	Device          nvml.Device
	MemoryErrorType nvml.MemoryErrorType
	EccCounterType  nvml.EccCounterType
}

DeviceGetTotalEccErrorsCalls gets all the calls that were made to DeviceGetTotalEccErrors. Check the length with:

len(mockedInterface.DeviceGetTotalEccErrorsCalls())

func (*Interface) DeviceGetTotalEnergyConsumption

func (mock *Interface) DeviceGetTotalEnergyConsumption(device nvml.Device) (uint64, nvml.Return)

DeviceGetTotalEnergyConsumption calls DeviceGetTotalEnergyConsumptionFunc.

func (*Interface) DeviceGetTotalEnergyConsumptionCalls

func (mock *Interface) DeviceGetTotalEnergyConsumptionCalls() []struct {
	Device nvml.Device
}

DeviceGetTotalEnergyConsumptionCalls gets all the calls that were made to DeviceGetTotalEnergyConsumption. Check the length with:

len(mockedInterface.DeviceGetTotalEnergyConsumptionCalls())

func (*Interface) DeviceGetUUID

func (mock *Interface) DeviceGetUUID(device nvml.Device) (string, nvml.Return)

DeviceGetUUID calls DeviceGetUUIDFunc.

func (*Interface) DeviceGetUUIDCalls

func (mock *Interface) DeviceGetUUIDCalls() []struct {
	Device nvml.Device
}

DeviceGetUUIDCalls gets all the calls that were made to DeviceGetUUID. Check the length with:

len(mockedInterface.DeviceGetUUIDCalls())

func (*Interface) DeviceGetUtilizationRates

func (mock *Interface) DeviceGetUtilizationRates(device nvml.Device) (nvml.Utilization, nvml.Return)

DeviceGetUtilizationRates calls DeviceGetUtilizationRatesFunc.

func (*Interface) DeviceGetUtilizationRatesCalls

func (mock *Interface) DeviceGetUtilizationRatesCalls() []struct {
	Device nvml.Device
}

DeviceGetUtilizationRatesCalls gets all the calls that were made to DeviceGetUtilizationRates. Check the length with:

len(mockedInterface.DeviceGetUtilizationRatesCalls())

func (*Interface) DeviceGetVbiosVersion

func (mock *Interface) DeviceGetVbiosVersion(device nvml.Device) (string, nvml.Return)

DeviceGetVbiosVersion calls DeviceGetVbiosVersionFunc.

func (*Interface) DeviceGetVbiosVersionCalls

func (mock *Interface) DeviceGetVbiosVersionCalls() []struct {
	Device nvml.Device
}

DeviceGetVbiosVersionCalls gets all the calls that were made to DeviceGetVbiosVersion. Check the length with:

len(mockedInterface.DeviceGetVbiosVersionCalls())

func (*Interface) DeviceGetVgpuCapabilities

func (mock *Interface) DeviceGetVgpuCapabilities(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return)

DeviceGetVgpuCapabilities calls DeviceGetVgpuCapabilitiesFunc.

func (*Interface) DeviceGetVgpuCapabilitiesCalls

func (mock *Interface) DeviceGetVgpuCapabilitiesCalls() []struct {
	Device               nvml.Device
	DeviceVgpuCapability nvml.DeviceVgpuCapability
}

DeviceGetVgpuCapabilitiesCalls gets all the calls that were made to DeviceGetVgpuCapabilities. Check the length with:

len(mockedInterface.DeviceGetVgpuCapabilitiesCalls())

func (*Interface) DeviceGetVgpuMetadata

func (mock *Interface) DeviceGetVgpuMetadata(device nvml.Device) (nvml.VgpuPgpuMetadata, nvml.Return)

DeviceGetVgpuMetadata calls DeviceGetVgpuMetadataFunc.

func (*Interface) DeviceGetVgpuMetadataCalls

func (mock *Interface) DeviceGetVgpuMetadataCalls() []struct {
	Device nvml.Device
}

DeviceGetVgpuMetadataCalls gets all the calls that were made to DeviceGetVgpuMetadata. Check the length with:

len(mockedInterface.DeviceGetVgpuMetadataCalls())

func (*Interface) DeviceGetVgpuProcessUtilization

func (mock *Interface) DeviceGetVgpuProcessUtilization(device nvml.Device, v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return)

DeviceGetVgpuProcessUtilization calls DeviceGetVgpuProcessUtilizationFunc.

func (*Interface) DeviceGetVgpuProcessUtilizationCalls

func (mock *Interface) DeviceGetVgpuProcessUtilizationCalls() []struct {
	Device nvml.Device
	V      uint64
}

DeviceGetVgpuProcessUtilizationCalls gets all the calls that were made to DeviceGetVgpuProcessUtilization. Check the length with:

len(mockedInterface.DeviceGetVgpuProcessUtilizationCalls())

func (*Interface) DeviceGetVgpuSchedulerCapabilities

func (mock *Interface) DeviceGetVgpuSchedulerCapabilities(device nvml.Device) (nvml.VgpuSchedulerCapabilities, nvml.Return)

DeviceGetVgpuSchedulerCapabilities calls DeviceGetVgpuSchedulerCapabilitiesFunc.

func (*Interface) DeviceGetVgpuSchedulerCapabilitiesCalls

func (mock *Interface) DeviceGetVgpuSchedulerCapabilitiesCalls() []struct {
	Device nvml.Device
}

DeviceGetVgpuSchedulerCapabilitiesCalls gets all the calls that were made to DeviceGetVgpuSchedulerCapabilities. Check the length with:

len(mockedInterface.DeviceGetVgpuSchedulerCapabilitiesCalls())

func (*Interface) DeviceGetVgpuSchedulerLog

func (mock *Interface) DeviceGetVgpuSchedulerLog(device nvml.Device) (nvml.VgpuSchedulerLog, nvml.Return)

DeviceGetVgpuSchedulerLog calls DeviceGetVgpuSchedulerLogFunc.

func (*Interface) DeviceGetVgpuSchedulerLogCalls

func (mock *Interface) DeviceGetVgpuSchedulerLogCalls() []struct {
	Device nvml.Device
}

DeviceGetVgpuSchedulerLogCalls gets all the calls that were made to DeviceGetVgpuSchedulerLog. Check the length with:

len(mockedInterface.DeviceGetVgpuSchedulerLogCalls())

func (*Interface) DeviceGetVgpuSchedulerState

func (mock *Interface) DeviceGetVgpuSchedulerState(device nvml.Device) (nvml.VgpuSchedulerGetState, nvml.Return)

DeviceGetVgpuSchedulerState calls DeviceGetVgpuSchedulerStateFunc.

func (*Interface) DeviceGetVgpuSchedulerStateCalls

func (mock *Interface) DeviceGetVgpuSchedulerStateCalls() []struct {
	Device nvml.Device
}

DeviceGetVgpuSchedulerStateCalls gets all the calls that were made to DeviceGetVgpuSchedulerState. Check the length with:

len(mockedInterface.DeviceGetVgpuSchedulerStateCalls())

func (*Interface) DeviceGetVgpuUtilization

func (mock *Interface) DeviceGetVgpuUtilization(device nvml.Device, v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)

DeviceGetVgpuUtilization calls DeviceGetVgpuUtilizationFunc.

func (*Interface) DeviceGetVgpuUtilizationCalls

func (mock *Interface) DeviceGetVgpuUtilizationCalls() []struct {
	Device nvml.Device
	V      uint64
}

DeviceGetVgpuUtilizationCalls gets all the calls that were made to DeviceGetVgpuUtilization. Check the length with:

len(mockedInterface.DeviceGetVgpuUtilizationCalls())

func (*Interface) DeviceGetViolationStatus

func (mock *Interface) DeviceGetViolationStatus(device nvml.Device, perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return)

DeviceGetViolationStatus calls DeviceGetViolationStatusFunc.

func (*Interface) DeviceGetViolationStatusCalls

func (mock *Interface) DeviceGetViolationStatusCalls() []struct {
	Device         nvml.Device
	PerfPolicyType nvml.PerfPolicyType
}

DeviceGetViolationStatusCalls gets all the calls that were made to DeviceGetViolationStatus. Check the length with:

len(mockedInterface.DeviceGetViolationStatusCalls())

func (*Interface) DeviceGetVirtualizationMode

func (mock *Interface) DeviceGetVirtualizationMode(device nvml.Device) (nvml.GpuVirtualizationMode, nvml.Return)

DeviceGetVirtualizationMode calls DeviceGetVirtualizationModeFunc.

func (*Interface) DeviceGetVirtualizationModeCalls

func (mock *Interface) DeviceGetVirtualizationModeCalls() []struct {
	Device nvml.Device
}

DeviceGetVirtualizationModeCalls gets all the calls that were made to DeviceGetVirtualizationMode. Check the length with:

len(mockedInterface.DeviceGetVirtualizationModeCalls())

func (*Interface) DeviceIsMigDeviceHandle

func (mock *Interface) DeviceIsMigDeviceHandle(device nvml.Device) (bool, nvml.Return)

DeviceIsMigDeviceHandle calls DeviceIsMigDeviceHandleFunc.

func (*Interface) DeviceIsMigDeviceHandleCalls

func (mock *Interface) DeviceIsMigDeviceHandleCalls() []struct {
	Device nvml.Device
}

DeviceIsMigDeviceHandleCalls gets all the calls that were made to DeviceIsMigDeviceHandle. Check the length with:

len(mockedInterface.DeviceIsMigDeviceHandleCalls())

func (*Interface) DeviceModifyDrainState

func (mock *Interface) DeviceModifyDrainState(pciInfo *nvml.PciInfo, enableState nvml.EnableState) nvml.Return

DeviceModifyDrainState calls DeviceModifyDrainStateFunc.

func (*Interface) DeviceModifyDrainStateCalls

func (mock *Interface) DeviceModifyDrainStateCalls() []struct {
	PciInfo     *nvml.PciInfo
	EnableState nvml.EnableState
}

DeviceModifyDrainStateCalls gets all the calls that were made to DeviceModifyDrainState. Check the length with:

len(mockedInterface.DeviceModifyDrainStateCalls())

func (*Interface) DeviceOnSameBoard

func (mock *Interface) DeviceOnSameBoard(device1 nvml.Device, device2 nvml.Device) (int, nvml.Return)

DeviceOnSameBoard calls DeviceOnSameBoardFunc.

func (*Interface) DeviceOnSameBoardCalls

func (mock *Interface) DeviceOnSameBoardCalls() []struct {
	Device1 nvml.Device
	Device2 nvml.Device
}

DeviceOnSameBoardCalls gets all the calls that were made to DeviceOnSameBoard. Check the length with:

len(mockedInterface.DeviceOnSameBoardCalls())

func (*Interface) DeviceQueryDrainState

func (mock *Interface) DeviceQueryDrainState(pciInfo *nvml.PciInfo) (nvml.EnableState, nvml.Return)

DeviceQueryDrainState calls DeviceQueryDrainStateFunc.

func (*Interface) DeviceQueryDrainStateCalls

func (mock *Interface) DeviceQueryDrainStateCalls() []struct {
	PciInfo *nvml.PciInfo
}

DeviceQueryDrainStateCalls gets all the calls that were made to DeviceQueryDrainState. Check the length with:

len(mockedInterface.DeviceQueryDrainStateCalls())

func (*Interface) DeviceRegisterEvents

func (mock *Interface) DeviceRegisterEvents(device nvml.Device, v uint64, eventSet nvml.EventSet) nvml.Return

DeviceRegisterEvents calls DeviceRegisterEventsFunc.

func (*Interface) DeviceRegisterEventsCalls

func (mock *Interface) DeviceRegisterEventsCalls() []struct {
	Device   nvml.Device
	V        uint64
	EventSet nvml.EventSet
}

DeviceRegisterEventsCalls gets all the calls that were made to DeviceRegisterEvents. Check the length with:

len(mockedInterface.DeviceRegisterEventsCalls())

func (*Interface) DeviceRemoveGpu

func (mock *Interface) DeviceRemoveGpu(pciInfo *nvml.PciInfo) nvml.Return

DeviceRemoveGpu calls DeviceRemoveGpuFunc.

func (*Interface) DeviceRemoveGpuCalls

func (mock *Interface) DeviceRemoveGpuCalls() []struct {
	PciInfo *nvml.PciInfo
}

DeviceRemoveGpuCalls gets all the calls that were made to DeviceRemoveGpu. Check the length with:

len(mockedInterface.DeviceRemoveGpuCalls())

func (*Interface) DeviceRemoveGpu_v2

func (mock *Interface) DeviceRemoveGpu_v2(pciInfo *nvml.PciInfo, detachGpuState nvml.DetachGpuState, pcieLinkState nvml.PcieLinkState) nvml.Return

DeviceRemoveGpu_v2 calls DeviceRemoveGpu_v2Func.

func (*Interface) DeviceRemoveGpu_v2Calls

func (mock *Interface) DeviceRemoveGpu_v2Calls() []struct {
	PciInfo        *nvml.PciInfo
	DetachGpuState nvml.DetachGpuState
	PcieLinkState  nvml.PcieLinkState
}

DeviceRemoveGpu_v2Calls gets all the calls that were made to DeviceRemoveGpu_v2. Check the length with:

len(mockedInterface.DeviceRemoveGpu_v2Calls())

func (*Interface) DeviceResetApplicationsClocks

func (mock *Interface) DeviceResetApplicationsClocks(device nvml.Device) nvml.Return

DeviceResetApplicationsClocks calls DeviceResetApplicationsClocksFunc.

func (*Interface) DeviceResetApplicationsClocksCalls

func (mock *Interface) DeviceResetApplicationsClocksCalls() []struct {
	Device nvml.Device
}

DeviceResetApplicationsClocksCalls gets all the calls that were made to DeviceResetApplicationsClocks. Check the length with:

len(mockedInterface.DeviceResetApplicationsClocksCalls())

func (*Interface) DeviceResetGpuLockedClocks

func (mock *Interface) DeviceResetGpuLockedClocks(device nvml.Device) nvml.Return

DeviceResetGpuLockedClocks calls DeviceResetGpuLockedClocksFunc.

func (*Interface) DeviceResetGpuLockedClocksCalls

func (mock *Interface) DeviceResetGpuLockedClocksCalls() []struct {
	Device nvml.Device
}

DeviceResetGpuLockedClocksCalls gets all the calls that were made to DeviceResetGpuLockedClocks. Check the length with:

len(mockedInterface.DeviceResetGpuLockedClocksCalls())

func (*Interface) DeviceResetMemoryLockedClocks

func (mock *Interface) DeviceResetMemoryLockedClocks(device nvml.Device) nvml.Return

DeviceResetMemoryLockedClocks calls DeviceResetMemoryLockedClocksFunc.

func (*Interface) DeviceResetMemoryLockedClocksCalls

func (mock *Interface) DeviceResetMemoryLockedClocksCalls() []struct {
	Device nvml.Device
}

DeviceResetMemoryLockedClocksCalls gets all the calls that were made to DeviceResetMemoryLockedClocks. Check the length with:

len(mockedInterface.DeviceResetMemoryLockedClocksCalls())

func (*Interface) DeviceResetNvLinkErrorCounters

func (mock *Interface) DeviceResetNvLinkErrorCounters(device nvml.Device, n int) nvml.Return

DeviceResetNvLinkErrorCounters calls DeviceResetNvLinkErrorCountersFunc.

func (*Interface) DeviceResetNvLinkErrorCountersCalls

func (mock *Interface) DeviceResetNvLinkErrorCountersCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceResetNvLinkErrorCountersCalls gets all the calls that were made to DeviceResetNvLinkErrorCounters. Check the length with:

len(mockedInterface.DeviceResetNvLinkErrorCountersCalls())

func (*Interface) DeviceResetNvLinkUtilizationCounter

func (mock *Interface) DeviceResetNvLinkUtilizationCounter(device nvml.Device, n1 int, n2 int) nvml.Return

DeviceResetNvLinkUtilizationCounter calls DeviceResetNvLinkUtilizationCounterFunc.

func (*Interface) DeviceResetNvLinkUtilizationCounterCalls

func (mock *Interface) DeviceResetNvLinkUtilizationCounterCalls() []struct {
	Device nvml.Device
	N1     int
	N2     int
}

DeviceResetNvLinkUtilizationCounterCalls gets all the calls that were made to DeviceResetNvLinkUtilizationCounter. Check the length with:

len(mockedInterface.DeviceResetNvLinkUtilizationCounterCalls())

func (*Interface) DeviceSetAPIRestriction

func (mock *Interface) DeviceSetAPIRestriction(device nvml.Device, restrictedAPI nvml.RestrictedAPI, enableState nvml.EnableState) nvml.Return

DeviceSetAPIRestriction calls DeviceSetAPIRestrictionFunc.

func (*Interface) DeviceSetAPIRestrictionCalls

func (mock *Interface) DeviceSetAPIRestrictionCalls() []struct {
	Device        nvml.Device
	RestrictedAPI nvml.RestrictedAPI
	EnableState   nvml.EnableState
}

DeviceSetAPIRestrictionCalls gets all the calls that were made to DeviceSetAPIRestriction. Check the length with:

len(mockedInterface.DeviceSetAPIRestrictionCalls())

func (*Interface) DeviceSetAccountingMode

func (mock *Interface) DeviceSetAccountingMode(device nvml.Device, enableState nvml.EnableState) nvml.Return

DeviceSetAccountingMode calls DeviceSetAccountingModeFunc.

func (*Interface) DeviceSetAccountingModeCalls

func (mock *Interface) DeviceSetAccountingModeCalls() []struct {
	Device      nvml.Device
	EnableState nvml.EnableState
}

DeviceSetAccountingModeCalls gets all the calls that were made to DeviceSetAccountingMode. Check the length with:

len(mockedInterface.DeviceSetAccountingModeCalls())

func (*Interface) DeviceSetApplicationsClocks

func (mock *Interface) DeviceSetApplicationsClocks(device nvml.Device, v1 uint32, v2 uint32) nvml.Return

DeviceSetApplicationsClocks calls DeviceSetApplicationsClocksFunc.

func (*Interface) DeviceSetApplicationsClocksCalls

func (mock *Interface) DeviceSetApplicationsClocksCalls() []struct {
	Device nvml.Device
	V1     uint32
	V2     uint32
}

DeviceSetApplicationsClocksCalls gets all the calls that were made to DeviceSetApplicationsClocks. Check the length with:

len(mockedInterface.DeviceSetApplicationsClocksCalls())

func (*Interface) DeviceSetAutoBoostedClocksEnabled

func (mock *Interface) DeviceSetAutoBoostedClocksEnabled(device nvml.Device, enableState nvml.EnableState) nvml.Return

DeviceSetAutoBoostedClocksEnabled calls DeviceSetAutoBoostedClocksEnabledFunc.

func (*Interface) DeviceSetAutoBoostedClocksEnabledCalls

func (mock *Interface) DeviceSetAutoBoostedClocksEnabledCalls() []struct {
	Device      nvml.Device
	EnableState nvml.EnableState
}

DeviceSetAutoBoostedClocksEnabledCalls gets all the calls that were made to DeviceSetAutoBoostedClocksEnabled. Check the length with:

len(mockedInterface.DeviceSetAutoBoostedClocksEnabledCalls())

func (*Interface) DeviceSetComputeMode

func (mock *Interface) DeviceSetComputeMode(device nvml.Device, computeMode nvml.ComputeMode) nvml.Return

DeviceSetComputeMode calls DeviceSetComputeModeFunc.

func (*Interface) DeviceSetComputeModeCalls

func (mock *Interface) DeviceSetComputeModeCalls() []struct {
	Device      nvml.Device
	ComputeMode nvml.ComputeMode
}

DeviceSetComputeModeCalls gets all the calls that were made to DeviceSetComputeMode. Check the length with:

len(mockedInterface.DeviceSetComputeModeCalls())

func (*Interface) DeviceSetCpuAffinity

func (mock *Interface) DeviceSetCpuAffinity(device nvml.Device) nvml.Return

DeviceSetCpuAffinity calls DeviceSetCpuAffinityFunc.

func (*Interface) DeviceSetCpuAffinityCalls

func (mock *Interface) DeviceSetCpuAffinityCalls() []struct {
	Device nvml.Device
}

DeviceSetCpuAffinityCalls gets all the calls that were made to DeviceSetCpuAffinity. Check the length with:

len(mockedInterface.DeviceSetCpuAffinityCalls())

func (*Interface) DeviceSetDefaultAutoBoostedClocksEnabled

func (mock *Interface) DeviceSetDefaultAutoBoostedClocksEnabled(device nvml.Device, enableState nvml.EnableState, v uint32) nvml.Return

DeviceSetDefaultAutoBoostedClocksEnabled calls DeviceSetDefaultAutoBoostedClocksEnabledFunc.

func (*Interface) DeviceSetDefaultAutoBoostedClocksEnabledCalls

func (mock *Interface) DeviceSetDefaultAutoBoostedClocksEnabledCalls() []struct {
	Device      nvml.Device
	EnableState nvml.EnableState
	V           uint32
}

DeviceSetDefaultAutoBoostedClocksEnabledCalls gets all the calls that were made to DeviceSetDefaultAutoBoostedClocksEnabled. Check the length with:

len(mockedInterface.DeviceSetDefaultAutoBoostedClocksEnabledCalls())

func (*Interface) DeviceSetDefaultFanSpeed_v2

func (mock *Interface) DeviceSetDefaultFanSpeed_v2(device nvml.Device, n int) nvml.Return

DeviceSetDefaultFanSpeed_v2 calls DeviceSetDefaultFanSpeed_v2Func.

func (*Interface) DeviceSetDefaultFanSpeed_v2Calls

func (mock *Interface) DeviceSetDefaultFanSpeed_v2Calls() []struct {
	Device nvml.Device
	N      int
}

DeviceSetDefaultFanSpeed_v2Calls gets all the calls that were made to DeviceSetDefaultFanSpeed_v2. Check the length with:

len(mockedInterface.DeviceSetDefaultFanSpeed_v2Calls())

func (*Interface) DeviceSetDriverModel

func (mock *Interface) DeviceSetDriverModel(device nvml.Device, driverModel nvml.DriverModel, v uint32) nvml.Return

DeviceSetDriverModel calls DeviceSetDriverModelFunc.

func (*Interface) DeviceSetDriverModelCalls

func (mock *Interface) DeviceSetDriverModelCalls() []struct {
	Device      nvml.Device
	DriverModel nvml.DriverModel
	V           uint32
}

DeviceSetDriverModelCalls gets all the calls that were made to DeviceSetDriverModel. Check the length with:

len(mockedInterface.DeviceSetDriverModelCalls())

func (*Interface) DeviceSetEccMode

func (mock *Interface) DeviceSetEccMode(device nvml.Device, enableState nvml.EnableState) nvml.Return

DeviceSetEccMode calls DeviceSetEccModeFunc.

func (*Interface) DeviceSetEccModeCalls

func (mock *Interface) DeviceSetEccModeCalls() []struct {
	Device      nvml.Device
	EnableState nvml.EnableState
}

DeviceSetEccModeCalls gets all the calls that were made to DeviceSetEccMode. Check the length with:

len(mockedInterface.DeviceSetEccModeCalls())

func (*Interface) DeviceSetFanControlPolicy

func (mock *Interface) DeviceSetFanControlPolicy(device nvml.Device, n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return

DeviceSetFanControlPolicy calls DeviceSetFanControlPolicyFunc.

func (*Interface) DeviceSetFanControlPolicyCalls

func (mock *Interface) DeviceSetFanControlPolicyCalls() []struct {
	Device           nvml.Device
	N                int
	FanControlPolicy nvml.FanControlPolicy
}

DeviceSetFanControlPolicyCalls gets all the calls that were made to DeviceSetFanControlPolicy. Check the length with:

len(mockedInterface.DeviceSetFanControlPolicyCalls())

func (*Interface) DeviceSetFanSpeed_v2

func (mock *Interface) DeviceSetFanSpeed_v2(device nvml.Device, n1 int, n2 int) nvml.Return

DeviceSetFanSpeed_v2 calls DeviceSetFanSpeed_v2Func.

func (*Interface) DeviceSetFanSpeed_v2Calls

func (mock *Interface) DeviceSetFanSpeed_v2Calls() []struct {
	Device nvml.Device
	N1     int
	N2     int
}

DeviceSetFanSpeed_v2Calls gets all the calls that were made to DeviceSetFanSpeed_v2. Check the length with:

len(mockedInterface.DeviceSetFanSpeed_v2Calls())

func (*Interface) DeviceSetGpcClkVfOffset

func (mock *Interface) DeviceSetGpcClkVfOffset(device nvml.Device, n int) nvml.Return

DeviceSetGpcClkVfOffset calls DeviceSetGpcClkVfOffsetFunc.

func (*Interface) DeviceSetGpcClkVfOffsetCalls

func (mock *Interface) DeviceSetGpcClkVfOffsetCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceSetGpcClkVfOffsetCalls gets all the calls that were made to DeviceSetGpcClkVfOffset. Check the length with:

len(mockedInterface.DeviceSetGpcClkVfOffsetCalls())

func (*Interface) DeviceSetGpuLockedClocks

func (mock *Interface) DeviceSetGpuLockedClocks(device nvml.Device, v1 uint32, v2 uint32) nvml.Return

DeviceSetGpuLockedClocks calls DeviceSetGpuLockedClocksFunc.

func (*Interface) DeviceSetGpuLockedClocksCalls

func (mock *Interface) DeviceSetGpuLockedClocksCalls() []struct {
	Device nvml.Device
	V1     uint32
	V2     uint32
}

DeviceSetGpuLockedClocksCalls gets all the calls that were made to DeviceSetGpuLockedClocks. Check the length with:

len(mockedInterface.DeviceSetGpuLockedClocksCalls())

func (*Interface) DeviceSetGpuOperationMode

func (mock *Interface) DeviceSetGpuOperationMode(device nvml.Device, gpuOperationMode nvml.GpuOperationMode) nvml.Return

DeviceSetGpuOperationMode calls DeviceSetGpuOperationModeFunc.

func (*Interface) DeviceSetGpuOperationModeCalls

func (mock *Interface) DeviceSetGpuOperationModeCalls() []struct {
	Device           nvml.Device
	GpuOperationMode nvml.GpuOperationMode
}

DeviceSetGpuOperationModeCalls gets all the calls that were made to DeviceSetGpuOperationMode. Check the length with:

len(mockedInterface.DeviceSetGpuOperationModeCalls())

func (*Interface) DeviceSetMemClkVfOffset

func (mock *Interface) DeviceSetMemClkVfOffset(device nvml.Device, n int) nvml.Return

DeviceSetMemClkVfOffset calls DeviceSetMemClkVfOffsetFunc.

func (*Interface) DeviceSetMemClkVfOffsetCalls

func (mock *Interface) DeviceSetMemClkVfOffsetCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceSetMemClkVfOffsetCalls gets all the calls that were made to DeviceSetMemClkVfOffset. Check the length with:

len(mockedInterface.DeviceSetMemClkVfOffsetCalls())

func (*Interface) DeviceSetMemoryLockedClocks

func (mock *Interface) DeviceSetMemoryLockedClocks(device nvml.Device, v1 uint32, v2 uint32) nvml.Return

DeviceSetMemoryLockedClocks calls DeviceSetMemoryLockedClocksFunc.

func (*Interface) DeviceSetMemoryLockedClocksCalls

func (mock *Interface) DeviceSetMemoryLockedClocksCalls() []struct {
	Device nvml.Device
	V1     uint32
	V2     uint32
}

DeviceSetMemoryLockedClocksCalls gets all the calls that were made to DeviceSetMemoryLockedClocks. Check the length with:

len(mockedInterface.DeviceSetMemoryLockedClocksCalls())

func (*Interface) DeviceSetMigMode

func (mock *Interface) DeviceSetMigMode(device nvml.Device, n int) (nvml.Return, nvml.Return)

DeviceSetMigMode calls DeviceSetMigModeFunc.

func (*Interface) DeviceSetMigModeCalls

func (mock *Interface) DeviceSetMigModeCalls() []struct {
	Device nvml.Device
	N      int
}

DeviceSetMigModeCalls gets all the calls that were made to DeviceSetMigMode. Check the length with:

len(mockedInterface.DeviceSetMigModeCalls())

func (*Interface) DeviceSetNvLinkDeviceLowPowerThreshold

func (mock *Interface) DeviceSetNvLinkDeviceLowPowerThreshold(device nvml.Device, nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return

DeviceSetNvLinkDeviceLowPowerThreshold calls DeviceSetNvLinkDeviceLowPowerThresholdFunc.

func (*Interface) DeviceSetNvLinkDeviceLowPowerThresholdCalls

func (mock *Interface) DeviceSetNvLinkDeviceLowPowerThresholdCalls() []struct {
	Device           nvml.Device
	NvLinkPowerThres *nvml.NvLinkPowerThres
}

DeviceSetNvLinkDeviceLowPowerThresholdCalls gets all the calls that were made to DeviceSetNvLinkDeviceLowPowerThreshold. Check the length with:

len(mockedInterface.DeviceSetNvLinkDeviceLowPowerThresholdCalls())

func (*Interface) DeviceSetNvLinkUtilizationControl

func (mock *Interface) DeviceSetNvLinkUtilizationControl(device nvml.Device, n1 int, n2 int, nvLinkUtilizationControl *nvml.NvLinkUtilizationControl, b bool) nvml.Return

DeviceSetNvLinkUtilizationControl calls DeviceSetNvLinkUtilizationControlFunc.

func (*Interface) DeviceSetNvLinkUtilizationControlCalls

func (mock *Interface) DeviceSetNvLinkUtilizationControlCalls() []struct {
	Device                   nvml.Device
	N1                       int
	N2                       int
	NvLinkUtilizationControl *nvml.NvLinkUtilizationControl
	B                        bool
}

DeviceSetNvLinkUtilizationControlCalls gets all the calls that were made to DeviceSetNvLinkUtilizationControl. Check the length with:

len(mockedInterface.DeviceSetNvLinkUtilizationControlCalls())

func (*Interface) DeviceSetPersistenceMode

func (mock *Interface) DeviceSetPersistenceMode(device nvml.Device, enableState nvml.EnableState) nvml.Return

DeviceSetPersistenceMode calls DeviceSetPersistenceModeFunc.

func (*Interface) DeviceSetPersistenceModeCalls

func (mock *Interface) DeviceSetPersistenceModeCalls() []struct {
	Device      nvml.Device
	EnableState nvml.EnableState
}

DeviceSetPersistenceModeCalls gets all the calls that were made to DeviceSetPersistenceMode. Check the length with:

len(mockedInterface.DeviceSetPersistenceModeCalls())

func (*Interface) DeviceSetPowerManagementLimit

func (mock *Interface) DeviceSetPowerManagementLimit(device nvml.Device, v uint32) nvml.Return

DeviceSetPowerManagementLimit calls DeviceSetPowerManagementLimitFunc.

func (*Interface) DeviceSetPowerManagementLimitCalls

func (mock *Interface) DeviceSetPowerManagementLimitCalls() []struct {
	Device nvml.Device
	V      uint32
}

DeviceSetPowerManagementLimitCalls gets all the calls that were made to DeviceSetPowerManagementLimit. Check the length with:

len(mockedInterface.DeviceSetPowerManagementLimitCalls())

func (*Interface) DeviceSetTemperatureThreshold

func (mock *Interface) DeviceSetTemperatureThreshold(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return

DeviceSetTemperatureThreshold calls DeviceSetTemperatureThresholdFunc.

func (*Interface) DeviceSetTemperatureThresholdCalls

func (mock *Interface) DeviceSetTemperatureThresholdCalls() []struct {
	Device                nvml.Device
	TemperatureThresholds nvml.TemperatureThresholds
	N                     int
}

DeviceSetTemperatureThresholdCalls gets all the calls that were made to DeviceSetTemperatureThreshold. Check the length with:

len(mockedInterface.DeviceSetTemperatureThresholdCalls())

func (*Interface) DeviceSetVgpuSchedulerState

func (mock *Interface) DeviceSetVgpuSchedulerState(device nvml.Device, vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return

DeviceSetVgpuSchedulerState calls DeviceSetVgpuSchedulerStateFunc.

func (*Interface) DeviceSetVgpuSchedulerStateCalls

func (mock *Interface) DeviceSetVgpuSchedulerStateCalls() []struct {
	Device                nvml.Device
	VgpuSchedulerSetState *nvml.VgpuSchedulerSetState
}

DeviceSetVgpuSchedulerStateCalls gets all the calls that were made to DeviceSetVgpuSchedulerState. Check the length with:

len(mockedInterface.DeviceSetVgpuSchedulerStateCalls())

func (*Interface) DeviceSetVirtualizationMode

func (mock *Interface) DeviceSetVirtualizationMode(device nvml.Device, gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return

DeviceSetVirtualizationMode calls DeviceSetVirtualizationModeFunc.

func (*Interface) DeviceSetVirtualizationModeCalls

func (mock *Interface) DeviceSetVirtualizationModeCalls() []struct {
	Device                nvml.Device
	GpuVirtualizationMode nvml.GpuVirtualizationMode
}

DeviceSetVirtualizationModeCalls gets all the calls that were made to DeviceSetVirtualizationMode. Check the length with:

len(mockedInterface.DeviceSetVirtualizationModeCalls())

func (*Interface) DeviceValidateInforom

func (mock *Interface) DeviceValidateInforom(device nvml.Device) nvml.Return

DeviceValidateInforom calls DeviceValidateInforomFunc.

func (*Interface) DeviceValidateInforomCalls

func (mock *Interface) DeviceValidateInforomCalls() []struct {
	Device nvml.Device
}

DeviceValidateInforomCalls gets all the calls that were made to DeviceValidateInforom. Check the length with:

len(mockedInterface.DeviceValidateInforomCalls())

func (*Interface) ErrorString

func (mock *Interface) ErrorString(returnMoqParam nvml.Return) string

ErrorString calls ErrorStringFunc.

func (*Interface) ErrorStringCalls

func (mock *Interface) ErrorStringCalls() []struct {
	ReturnMoqParam nvml.Return
}

ErrorStringCalls gets all the calls that were made to ErrorString. Check the length with:

len(mockedInterface.ErrorStringCalls())

func (*Interface) EventSetCreate

func (mock *Interface) EventSetCreate() (nvml.EventSet, nvml.Return)

EventSetCreate calls EventSetCreateFunc.

func (*Interface) EventSetCreateCalls

func (mock *Interface) EventSetCreateCalls() []struct {
}

EventSetCreateCalls gets all the calls that were made to EventSetCreate. Check the length with:

len(mockedInterface.EventSetCreateCalls())

func (*Interface) EventSetFree

func (mock *Interface) EventSetFree(eventSet nvml.EventSet) nvml.Return

EventSetFree calls EventSetFreeFunc.

func (*Interface) EventSetFreeCalls

func (mock *Interface) EventSetFreeCalls() []struct {
	EventSet nvml.EventSet
}

EventSetFreeCalls gets all the calls that were made to EventSetFree. Check the length with:

len(mockedInterface.EventSetFreeCalls())

func (*Interface) EventSetWait

func (mock *Interface) EventSetWait(eventSet nvml.EventSet, v uint32) (nvml.EventData, nvml.Return)

EventSetWait calls EventSetWaitFunc.

func (*Interface) EventSetWaitCalls

func (mock *Interface) EventSetWaitCalls() []struct {
	EventSet nvml.EventSet
	V        uint32
}

EventSetWaitCalls gets all the calls that were made to EventSetWait. Check the length with:

len(mockedInterface.EventSetWaitCalls())

func (*Interface) Extensions

func (mock *Interface) Extensions() nvml.ExtendedInterface

Extensions calls ExtensionsFunc.

func (*Interface) ExtensionsCalls

func (mock *Interface) ExtensionsCalls() []struct {
}

ExtensionsCalls gets all the calls that were made to Extensions. Check the length with:

len(mockedInterface.ExtensionsCalls())

func (*Interface) GetExcludedDeviceCount

func (mock *Interface) GetExcludedDeviceCount() (int, nvml.Return)

GetExcludedDeviceCount calls GetExcludedDeviceCountFunc.

func (*Interface) GetExcludedDeviceCountCalls

func (mock *Interface) GetExcludedDeviceCountCalls() []struct {
}

GetExcludedDeviceCountCalls gets all the calls that were made to GetExcludedDeviceCount. Check the length with:

len(mockedInterface.GetExcludedDeviceCountCalls())

func (*Interface) GetExcludedDeviceInfoByIndex

func (mock *Interface) GetExcludedDeviceInfoByIndex(n int) (nvml.ExcludedDeviceInfo, nvml.Return)

GetExcludedDeviceInfoByIndex calls GetExcludedDeviceInfoByIndexFunc.

func (*Interface) GetExcludedDeviceInfoByIndexCalls

func (mock *Interface) GetExcludedDeviceInfoByIndexCalls() []struct {
	N int
}

GetExcludedDeviceInfoByIndexCalls gets all the calls that were made to GetExcludedDeviceInfoByIndex. Check the length with:

len(mockedInterface.GetExcludedDeviceInfoByIndexCalls())

func (*Interface) GetVgpuCompatibility

func (mock *Interface) GetVgpuCompatibility(vgpuMetadata *nvml.VgpuMetadata, vgpuPgpuMetadata *nvml.VgpuPgpuMetadata) (nvml.VgpuPgpuCompatibility, nvml.Return)

GetVgpuCompatibility calls GetVgpuCompatibilityFunc.

func (*Interface) GetVgpuCompatibilityCalls

func (mock *Interface) GetVgpuCompatibilityCalls() []struct {
	VgpuMetadata     *nvml.VgpuMetadata
	VgpuPgpuMetadata *nvml.VgpuPgpuMetadata
}

GetVgpuCompatibilityCalls gets all the calls that were made to GetVgpuCompatibility. Check the length with:

len(mockedInterface.GetVgpuCompatibilityCalls())

func (*Interface) GetVgpuDriverCapabilities

func (mock *Interface) GetVgpuDriverCapabilities(vgpuDriverCapability nvml.VgpuDriverCapability) (bool, nvml.Return)

GetVgpuDriverCapabilities calls GetVgpuDriverCapabilitiesFunc.

func (*Interface) GetVgpuDriverCapabilitiesCalls

func (mock *Interface) GetVgpuDriverCapabilitiesCalls() []struct {
	VgpuDriverCapability nvml.VgpuDriverCapability
}

GetVgpuDriverCapabilitiesCalls gets all the calls that were made to GetVgpuDriverCapabilities. Check the length with:

len(mockedInterface.GetVgpuDriverCapabilitiesCalls())

func (*Interface) GetVgpuVersion

func (mock *Interface) GetVgpuVersion() (nvml.VgpuVersion, nvml.VgpuVersion, nvml.Return)

GetVgpuVersion calls GetVgpuVersionFunc.

func (*Interface) GetVgpuVersionCalls

func (mock *Interface) GetVgpuVersionCalls() []struct {
}

GetVgpuVersionCalls gets all the calls that were made to GetVgpuVersion. Check the length with:

len(mockedInterface.GetVgpuVersionCalls())

func (*Interface) GpmMetricsGet

func (mock *Interface) GpmMetricsGet(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.Return

GpmMetricsGet calls GpmMetricsGetFunc.

func (*Interface) GpmMetricsGetCalls

func (mock *Interface) GpmMetricsGetCalls() []struct {
	GpmMetricsGetType *nvml.GpmMetricsGetType
}

GpmMetricsGetCalls gets all the calls that were made to GpmMetricsGet. Check the length with:

len(mockedInterface.GpmMetricsGetCalls())

func (*Interface) GpmMetricsGetV

func (mock *Interface) GpmMetricsGetV(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.GpmMetricsGetVType

GpmMetricsGetV calls GpmMetricsGetVFunc.

func (*Interface) GpmMetricsGetVCalls

func (mock *Interface) GpmMetricsGetVCalls() []struct {
	GpmMetricsGetType *nvml.GpmMetricsGetType
}

GpmMetricsGetVCalls gets all the calls that were made to GpmMetricsGetV. Check the length with:

len(mockedInterface.GpmMetricsGetVCalls())

func (*Interface) GpmMigSampleGet

func (mock *Interface) GpmMigSampleGet(device nvml.Device, n int, gpmSample nvml.GpmSample) nvml.Return

GpmMigSampleGet calls GpmMigSampleGetFunc.

func (*Interface) GpmMigSampleGetCalls

func (mock *Interface) GpmMigSampleGetCalls() []struct {
	Device    nvml.Device
	N         int
	GpmSample nvml.GpmSample
}

GpmMigSampleGetCalls gets all the calls that were made to GpmMigSampleGet. Check the length with:

len(mockedInterface.GpmMigSampleGetCalls())

func (*Interface) GpmQueryDeviceSupport

func (mock *Interface) GpmQueryDeviceSupport(device nvml.Device) (nvml.GpmSupport, nvml.Return)

GpmQueryDeviceSupport calls GpmQueryDeviceSupportFunc.

func (*Interface) GpmQueryDeviceSupportCalls

func (mock *Interface) GpmQueryDeviceSupportCalls() []struct {
	Device nvml.Device
}

GpmQueryDeviceSupportCalls gets all the calls that were made to GpmQueryDeviceSupport. Check the length with:

len(mockedInterface.GpmQueryDeviceSupportCalls())

func (*Interface) GpmQueryDeviceSupportV

func (mock *Interface) GpmQueryDeviceSupportV(device nvml.Device) nvml.GpmSupportV

GpmQueryDeviceSupportV calls GpmQueryDeviceSupportVFunc.

func (*Interface) GpmQueryDeviceSupportVCalls

func (mock *Interface) GpmQueryDeviceSupportVCalls() []struct {
	Device nvml.Device
}

GpmQueryDeviceSupportVCalls gets all the calls that were made to GpmQueryDeviceSupportV. Check the length with:

len(mockedInterface.GpmQueryDeviceSupportVCalls())

func (*Interface) GpmSampleAlloc

func (mock *Interface) GpmSampleAlloc() (nvml.GpmSample, nvml.Return)

GpmSampleAlloc calls GpmSampleAllocFunc.

func (*Interface) GpmSampleAllocCalls

func (mock *Interface) GpmSampleAllocCalls() []struct {
}

GpmSampleAllocCalls gets all the calls that were made to GpmSampleAlloc. Check the length with:

len(mockedInterface.GpmSampleAllocCalls())

func (*Interface) GpmSampleFree

func (mock *Interface) GpmSampleFree(gpmSample nvml.GpmSample) nvml.Return

GpmSampleFree calls GpmSampleFreeFunc.

func (*Interface) GpmSampleFreeCalls

func (mock *Interface) GpmSampleFreeCalls() []struct {
	GpmSample nvml.GpmSample
}

GpmSampleFreeCalls gets all the calls that were made to GpmSampleFree. Check the length with:

len(mockedInterface.GpmSampleFreeCalls())

func (*Interface) GpmSampleGet

func (mock *Interface) GpmSampleGet(device nvml.Device, gpmSample nvml.GpmSample) nvml.Return

GpmSampleGet calls GpmSampleGetFunc.

func (*Interface) GpmSampleGetCalls

func (mock *Interface) GpmSampleGetCalls() []struct {
	Device    nvml.Device
	GpmSample nvml.GpmSample
}

GpmSampleGetCalls gets all the calls that were made to GpmSampleGet. Check the length with:

len(mockedInterface.GpmSampleGetCalls())

func (*Interface) GpuInstanceCreateComputeInstance

func (mock *Interface) GpuInstanceCreateComputeInstance(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (nvml.ComputeInstance, nvml.Return)

GpuInstanceCreateComputeInstance calls GpuInstanceCreateComputeInstanceFunc.

func (*Interface) GpuInstanceCreateComputeInstanceCalls

func (mock *Interface) GpuInstanceCreateComputeInstanceCalls() []struct {
	GpuInstance                nvml.GpuInstance
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

GpuInstanceCreateComputeInstanceCalls gets all the calls that were made to GpuInstanceCreateComputeInstance. Check the length with:

len(mockedInterface.GpuInstanceCreateComputeInstanceCalls())

func (*Interface) GpuInstanceCreateComputeInstanceWithPlacement

func (mock *Interface) GpuInstanceCreateComputeInstanceWithPlacement(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo, computeInstancePlacement *nvml.ComputeInstancePlacement) (nvml.ComputeInstance, nvml.Return)

GpuInstanceCreateComputeInstanceWithPlacement calls GpuInstanceCreateComputeInstanceWithPlacementFunc.

func (*Interface) GpuInstanceCreateComputeInstanceWithPlacementCalls

func (mock *Interface) GpuInstanceCreateComputeInstanceWithPlacementCalls() []struct {
	GpuInstance                nvml.GpuInstance
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
	ComputeInstancePlacement   *nvml.ComputeInstancePlacement
}

GpuInstanceCreateComputeInstanceWithPlacementCalls gets all the calls that were made to GpuInstanceCreateComputeInstanceWithPlacement. Check the length with:

len(mockedInterface.GpuInstanceCreateComputeInstanceWithPlacementCalls())

func (*Interface) GpuInstanceDestroy

func (mock *Interface) GpuInstanceDestroy(gpuInstance nvml.GpuInstance) nvml.Return

GpuInstanceDestroy calls GpuInstanceDestroyFunc.

func (*Interface) GpuInstanceDestroyCalls

func (mock *Interface) GpuInstanceDestroyCalls() []struct {
	GpuInstance nvml.GpuInstance
}

GpuInstanceDestroyCalls gets all the calls that were made to GpuInstanceDestroy. Check the length with:

len(mockedInterface.GpuInstanceDestroyCalls())

func (*Interface) GpuInstanceGetComputeInstanceById

func (mock *Interface) GpuInstanceGetComputeInstanceById(gpuInstance nvml.GpuInstance, n int) (nvml.ComputeInstance, nvml.Return)

GpuInstanceGetComputeInstanceById calls GpuInstanceGetComputeInstanceByIdFunc.

func (*Interface) GpuInstanceGetComputeInstanceByIdCalls

func (mock *Interface) GpuInstanceGetComputeInstanceByIdCalls() []struct {
	GpuInstance nvml.GpuInstance
	N           int
}

GpuInstanceGetComputeInstanceByIdCalls gets all the calls that were made to GpuInstanceGetComputeInstanceById. Check the length with:

len(mockedInterface.GpuInstanceGetComputeInstanceByIdCalls())

func (*Interface) GpuInstanceGetComputeInstancePossiblePlacements

func (mock *Interface) GpuInstanceGetComputeInstancePossiblePlacements(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstancePlacement, nvml.Return)

GpuInstanceGetComputeInstancePossiblePlacements calls GpuInstanceGetComputeInstancePossiblePlacementsFunc.

func (*Interface) GpuInstanceGetComputeInstancePossiblePlacementsCalls

func (mock *Interface) GpuInstanceGetComputeInstancePossiblePlacementsCalls() []struct {
	GpuInstance                nvml.GpuInstance
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

GpuInstanceGetComputeInstancePossiblePlacementsCalls gets all the calls that were made to GpuInstanceGetComputeInstancePossiblePlacements. Check the length with:

len(mockedInterface.GpuInstanceGetComputeInstancePossiblePlacementsCalls())

func (*Interface) GpuInstanceGetComputeInstanceProfileInfo

func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfo(gpuInstance nvml.GpuInstance, n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return)

GpuInstanceGetComputeInstanceProfileInfo calls GpuInstanceGetComputeInstanceProfileInfoFunc.

func (*Interface) GpuInstanceGetComputeInstanceProfileInfoCalls

func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfoCalls() []struct {
	GpuInstance nvml.GpuInstance
	N1          int
	N2          int
}

GpuInstanceGetComputeInstanceProfileInfoCalls gets all the calls that were made to GpuInstanceGetComputeInstanceProfileInfo. Check the length with:

len(mockedInterface.GpuInstanceGetComputeInstanceProfileInfoCalls())

func (*Interface) GpuInstanceGetComputeInstanceProfileInfoV

func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfoV(gpuInstance nvml.GpuInstance, n1 int, n2 int) nvml.ComputeInstanceProfileInfoV

GpuInstanceGetComputeInstanceProfileInfoV calls GpuInstanceGetComputeInstanceProfileInfoVFunc.

func (*Interface) GpuInstanceGetComputeInstanceProfileInfoVCalls

func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfoVCalls() []struct {
	GpuInstance nvml.GpuInstance
	N1          int
	N2          int
}

GpuInstanceGetComputeInstanceProfileInfoVCalls gets all the calls that were made to GpuInstanceGetComputeInstanceProfileInfoV. Check the length with:

len(mockedInterface.GpuInstanceGetComputeInstanceProfileInfoVCalls())

func (*Interface) GpuInstanceGetComputeInstanceRemainingCapacity

func (mock *Interface) GpuInstanceGetComputeInstanceRemainingCapacity(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (int, nvml.Return)

GpuInstanceGetComputeInstanceRemainingCapacity calls GpuInstanceGetComputeInstanceRemainingCapacityFunc.

func (*Interface) GpuInstanceGetComputeInstanceRemainingCapacityCalls

func (mock *Interface) GpuInstanceGetComputeInstanceRemainingCapacityCalls() []struct {
	GpuInstance                nvml.GpuInstance
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

GpuInstanceGetComputeInstanceRemainingCapacityCalls gets all the calls that were made to GpuInstanceGetComputeInstanceRemainingCapacity. Check the length with:

len(mockedInterface.GpuInstanceGetComputeInstanceRemainingCapacityCalls())

func (*Interface) GpuInstanceGetComputeInstances

func (mock *Interface) GpuInstanceGetComputeInstances(gpuInstance nvml.GpuInstance, computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstance, nvml.Return)

GpuInstanceGetComputeInstances calls GpuInstanceGetComputeInstancesFunc.

func (*Interface) GpuInstanceGetComputeInstancesCalls

func (mock *Interface) GpuInstanceGetComputeInstancesCalls() []struct {
	GpuInstance                nvml.GpuInstance
	ComputeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo
}

GpuInstanceGetComputeInstancesCalls gets all the calls that were made to GpuInstanceGetComputeInstances. Check the length with:

len(mockedInterface.GpuInstanceGetComputeInstancesCalls())

func (*Interface) GpuInstanceGetInfo

func (mock *Interface) GpuInstanceGetInfo(gpuInstance nvml.GpuInstance) (nvml.GpuInstanceInfo, nvml.Return)

GpuInstanceGetInfo calls GpuInstanceGetInfoFunc.

func (*Interface) GpuInstanceGetInfoCalls

func (mock *Interface) GpuInstanceGetInfoCalls() []struct {
	GpuInstance nvml.GpuInstance
}

GpuInstanceGetInfoCalls gets all the calls that were made to GpuInstanceGetInfo. Check the length with:

len(mockedInterface.GpuInstanceGetInfoCalls())

func (*Interface) Init

func (mock *Interface) Init() nvml.Return

Init calls InitFunc.

func (*Interface) InitCalls

func (mock *Interface) InitCalls() []struct {
}

InitCalls gets all the calls that were made to Init. Check the length with:

len(mockedInterface.InitCalls())

func (*Interface) InitWithFlags

func (mock *Interface) InitWithFlags(v uint32) nvml.Return

InitWithFlags calls InitWithFlagsFunc.

func (*Interface) InitWithFlagsCalls

func (mock *Interface) InitWithFlagsCalls() []struct {
	V uint32
}

InitWithFlagsCalls gets all the calls that were made to InitWithFlags. Check the length with:

len(mockedInterface.InitWithFlagsCalls())

func (*Interface) SetVgpuVersion

func (mock *Interface) SetVgpuVersion(vgpuVersion *nvml.VgpuVersion) nvml.Return

SetVgpuVersion calls SetVgpuVersionFunc.

func (*Interface) SetVgpuVersionCalls

func (mock *Interface) SetVgpuVersionCalls() []struct {
	VgpuVersion *nvml.VgpuVersion
}

SetVgpuVersionCalls gets all the calls that were made to SetVgpuVersion. Check the length with:

len(mockedInterface.SetVgpuVersionCalls())

func (*Interface) Shutdown

func (mock *Interface) Shutdown() nvml.Return

Shutdown calls ShutdownFunc.

func (*Interface) ShutdownCalls

func (mock *Interface) ShutdownCalls() []struct {
}

ShutdownCalls gets all the calls that were made to Shutdown. Check the length with:

len(mockedInterface.ShutdownCalls())

func (*Interface) SystemGetCudaDriverVersion

func (mock *Interface) SystemGetCudaDriverVersion() (int, nvml.Return)

SystemGetCudaDriverVersion calls SystemGetCudaDriverVersionFunc.

func (*Interface) SystemGetCudaDriverVersionCalls

func (mock *Interface) SystemGetCudaDriverVersionCalls() []struct {
}

SystemGetCudaDriverVersionCalls gets all the calls that were made to SystemGetCudaDriverVersion. Check the length with:

len(mockedInterface.SystemGetCudaDriverVersionCalls())

func (*Interface) SystemGetCudaDriverVersion_v2

func (mock *Interface) SystemGetCudaDriverVersion_v2() (int, nvml.Return)

SystemGetCudaDriverVersion_v2 calls SystemGetCudaDriverVersion_v2Func.

func (*Interface) SystemGetCudaDriverVersion_v2Calls

func (mock *Interface) SystemGetCudaDriverVersion_v2Calls() []struct {
}

SystemGetCudaDriverVersion_v2Calls gets all the calls that were made to SystemGetCudaDriverVersion_v2. Check the length with:

len(mockedInterface.SystemGetCudaDriverVersion_v2Calls())

func (*Interface) SystemGetDriverVersion

func (mock *Interface) SystemGetDriverVersion() (string, nvml.Return)

SystemGetDriverVersion calls SystemGetDriverVersionFunc.

func (*Interface) SystemGetDriverVersionCalls

func (mock *Interface) SystemGetDriverVersionCalls() []struct {
}

SystemGetDriverVersionCalls gets all the calls that were made to SystemGetDriverVersion. Check the length with:

len(mockedInterface.SystemGetDriverVersionCalls())

func (*Interface) SystemGetHicVersion

func (mock *Interface) SystemGetHicVersion() ([]nvml.HwbcEntry, nvml.Return)

SystemGetHicVersion calls SystemGetHicVersionFunc.

func (*Interface) SystemGetHicVersionCalls

func (mock *Interface) SystemGetHicVersionCalls() []struct {
}

SystemGetHicVersionCalls gets all the calls that were made to SystemGetHicVersion. Check the length with:

len(mockedInterface.SystemGetHicVersionCalls())

func (*Interface) SystemGetNVMLVersion

func (mock *Interface) SystemGetNVMLVersion() (string, nvml.Return)

SystemGetNVMLVersion calls SystemGetNVMLVersionFunc.

func (*Interface) SystemGetNVMLVersionCalls

func (mock *Interface) SystemGetNVMLVersionCalls() []struct {
}

SystemGetNVMLVersionCalls gets all the calls that were made to SystemGetNVMLVersion. Check the length with:

len(mockedInterface.SystemGetNVMLVersionCalls())

func (*Interface) SystemGetProcessName

func (mock *Interface) SystemGetProcessName(n int) (string, nvml.Return)

SystemGetProcessName calls SystemGetProcessNameFunc.

func (*Interface) SystemGetProcessNameCalls

func (mock *Interface) SystemGetProcessNameCalls() []struct {
	N int
}

SystemGetProcessNameCalls gets all the calls that were made to SystemGetProcessName. Check the length with:

len(mockedInterface.SystemGetProcessNameCalls())

func (*Interface) SystemGetTopologyGpuSet

func (mock *Interface) SystemGetTopologyGpuSet(n int) ([]nvml.Device, nvml.Return)

SystemGetTopologyGpuSet calls SystemGetTopologyGpuSetFunc.

func (*Interface) SystemGetTopologyGpuSetCalls

func (mock *Interface) SystemGetTopologyGpuSetCalls() []struct {
	N int
}

SystemGetTopologyGpuSetCalls gets all the calls that were made to SystemGetTopologyGpuSet. Check the length with:

len(mockedInterface.SystemGetTopologyGpuSetCalls())

func (*Interface) UnitGetCount

func (mock *Interface) UnitGetCount() (int, nvml.Return)

UnitGetCount calls UnitGetCountFunc.

func (*Interface) UnitGetCountCalls

func (mock *Interface) UnitGetCountCalls() []struct {
}

UnitGetCountCalls gets all the calls that were made to UnitGetCount. Check the length with:

len(mockedInterface.UnitGetCountCalls())

func (*Interface) UnitGetDevices

func (mock *Interface) UnitGetDevices(unit nvml.Unit) ([]nvml.Device, nvml.Return)

UnitGetDevices calls UnitGetDevicesFunc.

func (*Interface) UnitGetDevicesCalls

func (mock *Interface) UnitGetDevicesCalls() []struct {
	Unit nvml.Unit
}

UnitGetDevicesCalls gets all the calls that were made to UnitGetDevices. Check the length with:

len(mockedInterface.UnitGetDevicesCalls())

func (*Interface) UnitGetFanSpeedInfo

func (mock *Interface) UnitGetFanSpeedInfo(unit nvml.Unit) (nvml.UnitFanSpeeds, nvml.Return)

UnitGetFanSpeedInfo calls UnitGetFanSpeedInfoFunc.

func (*Interface) UnitGetFanSpeedInfoCalls

func (mock *Interface) UnitGetFanSpeedInfoCalls() []struct {
	Unit nvml.Unit
}

UnitGetFanSpeedInfoCalls gets all the calls that were made to UnitGetFanSpeedInfo. Check the length with:

len(mockedInterface.UnitGetFanSpeedInfoCalls())

func (*Interface) UnitGetHandleByIndex

func (mock *Interface) UnitGetHandleByIndex(n int) (nvml.Unit, nvml.Return)

UnitGetHandleByIndex calls UnitGetHandleByIndexFunc.

func (*Interface) UnitGetHandleByIndexCalls

func (mock *Interface) UnitGetHandleByIndexCalls() []struct {
	N int
}

UnitGetHandleByIndexCalls gets all the calls that were made to UnitGetHandleByIndex. Check the length with:

len(mockedInterface.UnitGetHandleByIndexCalls())

func (*Interface) UnitGetLedState

func (mock *Interface) UnitGetLedState(unit nvml.Unit) (nvml.LedState, nvml.Return)

UnitGetLedState calls UnitGetLedStateFunc.

func (*Interface) UnitGetLedStateCalls

func (mock *Interface) UnitGetLedStateCalls() []struct {
	Unit nvml.Unit
}

UnitGetLedStateCalls gets all the calls that were made to UnitGetLedState. Check the length with:

len(mockedInterface.UnitGetLedStateCalls())

func (*Interface) UnitGetPsuInfo

func (mock *Interface) UnitGetPsuInfo(unit nvml.Unit) (nvml.PSUInfo, nvml.Return)

UnitGetPsuInfo calls UnitGetPsuInfoFunc.

func (*Interface) UnitGetPsuInfoCalls

func (mock *Interface) UnitGetPsuInfoCalls() []struct {
	Unit nvml.Unit
}

UnitGetPsuInfoCalls gets all the calls that were made to UnitGetPsuInfo. Check the length with:

len(mockedInterface.UnitGetPsuInfoCalls())

func (*Interface) UnitGetTemperature

func (mock *Interface) UnitGetTemperature(unit nvml.Unit, n int) (uint32, nvml.Return)

UnitGetTemperature calls UnitGetTemperatureFunc.

func (*Interface) UnitGetTemperatureCalls

func (mock *Interface) UnitGetTemperatureCalls() []struct {
	Unit nvml.Unit
	N    int
}

UnitGetTemperatureCalls gets all the calls that were made to UnitGetTemperature. Check the length with:

len(mockedInterface.UnitGetTemperatureCalls())

func (*Interface) UnitGetUnitInfo

func (mock *Interface) UnitGetUnitInfo(unit nvml.Unit) (nvml.UnitInfo, nvml.Return)

UnitGetUnitInfo calls UnitGetUnitInfoFunc.

func (*Interface) UnitGetUnitInfoCalls

func (mock *Interface) UnitGetUnitInfoCalls() []struct {
	Unit nvml.Unit
}

UnitGetUnitInfoCalls gets all the calls that were made to UnitGetUnitInfo. Check the length with:

len(mockedInterface.UnitGetUnitInfoCalls())

func (*Interface) UnitSetLedState

func (mock *Interface) UnitSetLedState(unit nvml.Unit, ledColor nvml.LedColor) nvml.Return

UnitSetLedState calls UnitSetLedStateFunc.

func (*Interface) UnitSetLedStateCalls

func (mock *Interface) UnitSetLedStateCalls() []struct {
	Unit     nvml.Unit
	LedColor nvml.LedColor
}

UnitSetLedStateCalls gets all the calls that were made to UnitSetLedState. Check the length with:

len(mockedInterface.UnitSetLedStateCalls())

func (*Interface) VgpuInstanceClearAccountingPids

func (mock *Interface) VgpuInstanceClearAccountingPids(vgpuInstance nvml.VgpuInstance) nvml.Return

VgpuInstanceClearAccountingPids calls VgpuInstanceClearAccountingPidsFunc.

func (*Interface) VgpuInstanceClearAccountingPidsCalls

func (mock *Interface) VgpuInstanceClearAccountingPidsCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceClearAccountingPidsCalls gets all the calls that were made to VgpuInstanceClearAccountingPids. Check the length with:

len(mockedInterface.VgpuInstanceClearAccountingPidsCalls())

func (*Interface) VgpuInstanceGetAccountingMode

func (mock *Interface) VgpuInstanceGetAccountingMode(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return)

VgpuInstanceGetAccountingMode calls VgpuInstanceGetAccountingModeFunc.

func (*Interface) VgpuInstanceGetAccountingModeCalls

func (mock *Interface) VgpuInstanceGetAccountingModeCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetAccountingModeCalls gets all the calls that were made to VgpuInstanceGetAccountingMode. Check the length with:

len(mockedInterface.VgpuInstanceGetAccountingModeCalls())

func (*Interface) VgpuInstanceGetAccountingPids

func (mock *Interface) VgpuInstanceGetAccountingPids(vgpuInstance nvml.VgpuInstance) ([]int, nvml.Return)

VgpuInstanceGetAccountingPids calls VgpuInstanceGetAccountingPidsFunc.

func (*Interface) VgpuInstanceGetAccountingPidsCalls

func (mock *Interface) VgpuInstanceGetAccountingPidsCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetAccountingPidsCalls gets all the calls that were made to VgpuInstanceGetAccountingPids. Check the length with:

len(mockedInterface.VgpuInstanceGetAccountingPidsCalls())

func (*Interface) VgpuInstanceGetAccountingStats

func (mock *Interface) VgpuInstanceGetAccountingStats(vgpuInstance nvml.VgpuInstance, n int) (nvml.AccountingStats, nvml.Return)

VgpuInstanceGetAccountingStats calls VgpuInstanceGetAccountingStatsFunc.

func (*Interface) VgpuInstanceGetAccountingStatsCalls

func (mock *Interface) VgpuInstanceGetAccountingStatsCalls() []struct {
	VgpuInstance nvml.VgpuInstance
	N            int
}

VgpuInstanceGetAccountingStatsCalls gets all the calls that were made to VgpuInstanceGetAccountingStats. Check the length with:

len(mockedInterface.VgpuInstanceGetAccountingStatsCalls())

func (*Interface) VgpuInstanceGetEccMode

func (mock *Interface) VgpuInstanceGetEccMode(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return)

VgpuInstanceGetEccMode calls VgpuInstanceGetEccModeFunc.

func (*Interface) VgpuInstanceGetEccModeCalls

func (mock *Interface) VgpuInstanceGetEccModeCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetEccModeCalls gets all the calls that were made to VgpuInstanceGetEccMode. Check the length with:

len(mockedInterface.VgpuInstanceGetEccModeCalls())

func (*Interface) VgpuInstanceGetEncoderCapacity

func (mock *Interface) VgpuInstanceGetEncoderCapacity(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)

VgpuInstanceGetEncoderCapacity calls VgpuInstanceGetEncoderCapacityFunc.

func (*Interface) VgpuInstanceGetEncoderCapacityCalls

func (mock *Interface) VgpuInstanceGetEncoderCapacityCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetEncoderCapacityCalls gets all the calls that were made to VgpuInstanceGetEncoderCapacity. Check the length with:

len(mockedInterface.VgpuInstanceGetEncoderCapacityCalls())

func (*Interface) VgpuInstanceGetEncoderSessions

func (mock *Interface) VgpuInstanceGetEncoderSessions(vgpuInstance nvml.VgpuInstance) (int, nvml.EncoderSessionInfo, nvml.Return)

VgpuInstanceGetEncoderSessions calls VgpuInstanceGetEncoderSessionsFunc.

func (*Interface) VgpuInstanceGetEncoderSessionsCalls

func (mock *Interface) VgpuInstanceGetEncoderSessionsCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetEncoderSessionsCalls gets all the calls that were made to VgpuInstanceGetEncoderSessions. Check the length with:

len(mockedInterface.VgpuInstanceGetEncoderSessionsCalls())

func (*Interface) VgpuInstanceGetEncoderStats

func (mock *Interface) VgpuInstanceGetEncoderStats(vgpuInstance nvml.VgpuInstance) (int, uint32, uint32, nvml.Return)

VgpuInstanceGetEncoderStats calls VgpuInstanceGetEncoderStatsFunc.

func (*Interface) VgpuInstanceGetEncoderStatsCalls

func (mock *Interface) VgpuInstanceGetEncoderStatsCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetEncoderStatsCalls gets all the calls that were made to VgpuInstanceGetEncoderStats. Check the length with:

len(mockedInterface.VgpuInstanceGetEncoderStatsCalls())

func (*Interface) VgpuInstanceGetFBCSessions

func (mock *Interface) VgpuInstanceGetFBCSessions(vgpuInstance nvml.VgpuInstance) (int, nvml.FBCSessionInfo, nvml.Return)

VgpuInstanceGetFBCSessions calls VgpuInstanceGetFBCSessionsFunc.

func (*Interface) VgpuInstanceGetFBCSessionsCalls

func (mock *Interface) VgpuInstanceGetFBCSessionsCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetFBCSessionsCalls gets all the calls that were made to VgpuInstanceGetFBCSessions. Check the length with:

len(mockedInterface.VgpuInstanceGetFBCSessionsCalls())

func (*Interface) VgpuInstanceGetFBCStats

func (mock *Interface) VgpuInstanceGetFBCStats(vgpuInstance nvml.VgpuInstance) (nvml.FBCStats, nvml.Return)

VgpuInstanceGetFBCStats calls VgpuInstanceGetFBCStatsFunc.

func (*Interface) VgpuInstanceGetFBCStatsCalls

func (mock *Interface) VgpuInstanceGetFBCStatsCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetFBCStatsCalls gets all the calls that were made to VgpuInstanceGetFBCStats. Check the length with:

len(mockedInterface.VgpuInstanceGetFBCStatsCalls())

func (*Interface) VgpuInstanceGetFbUsage

func (mock *Interface) VgpuInstanceGetFbUsage(vgpuInstance nvml.VgpuInstance) (uint64, nvml.Return)

VgpuInstanceGetFbUsage calls VgpuInstanceGetFbUsageFunc.

func (*Interface) VgpuInstanceGetFbUsageCalls

func (mock *Interface) VgpuInstanceGetFbUsageCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetFbUsageCalls gets all the calls that were made to VgpuInstanceGetFbUsage. Check the length with:

len(mockedInterface.VgpuInstanceGetFbUsageCalls())

func (*Interface) VgpuInstanceGetFrameRateLimit

func (mock *Interface) VgpuInstanceGetFrameRateLimit(vgpuInstance nvml.VgpuInstance) (uint32, nvml.Return)

VgpuInstanceGetFrameRateLimit calls VgpuInstanceGetFrameRateLimitFunc.

func (*Interface) VgpuInstanceGetFrameRateLimitCalls

func (mock *Interface) VgpuInstanceGetFrameRateLimitCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetFrameRateLimitCalls gets all the calls that were made to VgpuInstanceGetFrameRateLimit. Check the length with:

len(mockedInterface.VgpuInstanceGetFrameRateLimitCalls())

func (*Interface) VgpuInstanceGetGpuInstanceId

func (mock *Interface) VgpuInstanceGetGpuInstanceId(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)

VgpuInstanceGetGpuInstanceId calls VgpuInstanceGetGpuInstanceIdFunc.

func (*Interface) VgpuInstanceGetGpuInstanceIdCalls

func (mock *Interface) VgpuInstanceGetGpuInstanceIdCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetGpuInstanceIdCalls gets all the calls that were made to VgpuInstanceGetGpuInstanceId. Check the length with:

len(mockedInterface.VgpuInstanceGetGpuInstanceIdCalls())

func (*Interface) VgpuInstanceGetGpuPciId

func (mock *Interface) VgpuInstanceGetGpuPciId(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

VgpuInstanceGetGpuPciId calls VgpuInstanceGetGpuPciIdFunc.

func (*Interface) VgpuInstanceGetGpuPciIdCalls

func (mock *Interface) VgpuInstanceGetGpuPciIdCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetGpuPciIdCalls gets all the calls that were made to VgpuInstanceGetGpuPciId. Check the length with:

len(mockedInterface.VgpuInstanceGetGpuPciIdCalls())

func (*Interface) VgpuInstanceGetLicenseInfo

func (mock *Interface) VgpuInstanceGetLicenseInfo(vgpuInstance nvml.VgpuInstance) (nvml.VgpuLicenseInfo, nvml.Return)

VgpuInstanceGetLicenseInfo calls VgpuInstanceGetLicenseInfoFunc.

func (*Interface) VgpuInstanceGetLicenseInfoCalls

func (mock *Interface) VgpuInstanceGetLicenseInfoCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetLicenseInfoCalls gets all the calls that were made to VgpuInstanceGetLicenseInfo. Check the length with:

len(mockedInterface.VgpuInstanceGetLicenseInfoCalls())

func (*Interface) VgpuInstanceGetLicenseStatus

func (mock *Interface) VgpuInstanceGetLicenseStatus(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)

VgpuInstanceGetLicenseStatus calls VgpuInstanceGetLicenseStatusFunc.

func (*Interface) VgpuInstanceGetLicenseStatusCalls

func (mock *Interface) VgpuInstanceGetLicenseStatusCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetLicenseStatusCalls gets all the calls that were made to VgpuInstanceGetLicenseStatus. Check the length with:

len(mockedInterface.VgpuInstanceGetLicenseStatusCalls())

func (*Interface) VgpuInstanceGetMdevUUID

func (mock *Interface) VgpuInstanceGetMdevUUID(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

VgpuInstanceGetMdevUUID calls VgpuInstanceGetMdevUUIDFunc.

func (*Interface) VgpuInstanceGetMdevUUIDCalls

func (mock *Interface) VgpuInstanceGetMdevUUIDCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetMdevUUIDCalls gets all the calls that were made to VgpuInstanceGetMdevUUID. Check the length with:

len(mockedInterface.VgpuInstanceGetMdevUUIDCalls())

func (*Interface) VgpuInstanceGetMetadata

func (mock *Interface) VgpuInstanceGetMetadata(vgpuInstance nvml.VgpuInstance) (nvml.VgpuMetadata, nvml.Return)

VgpuInstanceGetMetadata calls VgpuInstanceGetMetadataFunc.

func (*Interface) VgpuInstanceGetMetadataCalls

func (mock *Interface) VgpuInstanceGetMetadataCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetMetadataCalls gets all the calls that were made to VgpuInstanceGetMetadata. Check the length with:

len(mockedInterface.VgpuInstanceGetMetadataCalls())

func (*Interface) VgpuInstanceGetType

func (mock *Interface) VgpuInstanceGetType(vgpuInstance nvml.VgpuInstance) (nvml.VgpuTypeId, nvml.Return)

VgpuInstanceGetType calls VgpuInstanceGetTypeFunc.

func (*Interface) VgpuInstanceGetTypeCalls

func (mock *Interface) VgpuInstanceGetTypeCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetTypeCalls gets all the calls that were made to VgpuInstanceGetType. Check the length with:

len(mockedInterface.VgpuInstanceGetTypeCalls())

func (*Interface) VgpuInstanceGetUUID

func (mock *Interface) VgpuInstanceGetUUID(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

VgpuInstanceGetUUID calls VgpuInstanceGetUUIDFunc.

func (*Interface) VgpuInstanceGetUUIDCalls

func (mock *Interface) VgpuInstanceGetUUIDCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetUUIDCalls gets all the calls that were made to VgpuInstanceGetUUID. Check the length with:

len(mockedInterface.VgpuInstanceGetUUIDCalls())

func (*Interface) VgpuInstanceGetVmDriverVersion

func (mock *Interface) VgpuInstanceGetVmDriverVersion(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)

VgpuInstanceGetVmDriverVersion calls VgpuInstanceGetVmDriverVersionFunc.

func (*Interface) VgpuInstanceGetVmDriverVersionCalls

func (mock *Interface) VgpuInstanceGetVmDriverVersionCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetVmDriverVersionCalls gets all the calls that were made to VgpuInstanceGetVmDriverVersion. Check the length with:

len(mockedInterface.VgpuInstanceGetVmDriverVersionCalls())

func (*Interface) VgpuInstanceGetVmID

func (mock *Interface) VgpuInstanceGetVmID(vgpuInstance nvml.VgpuInstance) (string, nvml.VgpuVmIdType, nvml.Return)

VgpuInstanceGetVmID calls VgpuInstanceGetVmIDFunc.

func (*Interface) VgpuInstanceGetVmIDCalls

func (mock *Interface) VgpuInstanceGetVmIDCalls() []struct {
	VgpuInstance nvml.VgpuInstance
}

VgpuInstanceGetVmIDCalls gets all the calls that were made to VgpuInstanceGetVmID. Check the length with:

len(mockedInterface.VgpuInstanceGetVmIDCalls())

func (*Interface) VgpuInstanceSetEncoderCapacity

func (mock *Interface) VgpuInstanceSetEncoderCapacity(vgpuInstance nvml.VgpuInstance, n int) nvml.Return

VgpuInstanceSetEncoderCapacity calls VgpuInstanceSetEncoderCapacityFunc.

func (*Interface) VgpuInstanceSetEncoderCapacityCalls

func (mock *Interface) VgpuInstanceSetEncoderCapacityCalls() []struct {
	VgpuInstance nvml.VgpuInstance
	N            int
}

VgpuInstanceSetEncoderCapacityCalls gets all the calls that were made to VgpuInstanceSetEncoderCapacity. Check the length with:

len(mockedInterface.VgpuInstanceSetEncoderCapacityCalls())

func (*Interface) VgpuTypeGetCapabilities

func (mock *Interface) VgpuTypeGetCapabilities(vgpuTypeId nvml.VgpuTypeId, vgpuCapability nvml.VgpuCapability) (bool, nvml.Return)

VgpuTypeGetCapabilities calls VgpuTypeGetCapabilitiesFunc.

func (*Interface) VgpuTypeGetCapabilitiesCalls

func (mock *Interface) VgpuTypeGetCapabilitiesCalls() []struct {
	VgpuTypeId     nvml.VgpuTypeId
	VgpuCapability nvml.VgpuCapability
}

VgpuTypeGetCapabilitiesCalls gets all the calls that were made to VgpuTypeGetCapabilities. Check the length with:

len(mockedInterface.VgpuTypeGetCapabilitiesCalls())

func (*Interface) VgpuTypeGetClass

func (mock *Interface) VgpuTypeGetClass(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)

VgpuTypeGetClass calls VgpuTypeGetClassFunc.

func (*Interface) VgpuTypeGetClassCalls

func (mock *Interface) VgpuTypeGetClassCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetClassCalls gets all the calls that were made to VgpuTypeGetClass. Check the length with:

len(mockedInterface.VgpuTypeGetClassCalls())

func (*Interface) VgpuTypeGetDeviceID

func (mock *Interface) VgpuTypeGetDeviceID(vgpuTypeId nvml.VgpuTypeId) (uint64, uint64, nvml.Return)

VgpuTypeGetDeviceID calls VgpuTypeGetDeviceIDFunc.

func (*Interface) VgpuTypeGetDeviceIDCalls

func (mock *Interface) VgpuTypeGetDeviceIDCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetDeviceIDCalls gets all the calls that were made to VgpuTypeGetDeviceID. Check the length with:

len(mockedInterface.VgpuTypeGetDeviceIDCalls())

func (*Interface) VgpuTypeGetFrameRateLimit

func (mock *Interface) VgpuTypeGetFrameRateLimit(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return)

VgpuTypeGetFrameRateLimit calls VgpuTypeGetFrameRateLimitFunc.

func (*Interface) VgpuTypeGetFrameRateLimitCalls

func (mock *Interface) VgpuTypeGetFrameRateLimitCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetFrameRateLimitCalls gets all the calls that were made to VgpuTypeGetFrameRateLimit. Check the length with:

len(mockedInterface.VgpuTypeGetFrameRateLimitCalls())

func (*Interface) VgpuTypeGetFramebufferSize

func (mock *Interface) VgpuTypeGetFramebufferSize(vgpuTypeId nvml.VgpuTypeId) (uint64, nvml.Return)

VgpuTypeGetFramebufferSize calls VgpuTypeGetFramebufferSizeFunc.

func (*Interface) VgpuTypeGetFramebufferSizeCalls

func (mock *Interface) VgpuTypeGetFramebufferSizeCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetFramebufferSizeCalls gets all the calls that were made to VgpuTypeGetFramebufferSize. Check the length with:

len(mockedInterface.VgpuTypeGetFramebufferSizeCalls())

func (*Interface) VgpuTypeGetGpuInstanceProfileId

func (mock *Interface) VgpuTypeGetGpuInstanceProfileId(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return)

VgpuTypeGetGpuInstanceProfileId calls VgpuTypeGetGpuInstanceProfileIdFunc.

func (*Interface) VgpuTypeGetGpuInstanceProfileIdCalls

func (mock *Interface) VgpuTypeGetGpuInstanceProfileIdCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetGpuInstanceProfileIdCalls gets all the calls that were made to VgpuTypeGetGpuInstanceProfileId. Check the length with:

len(mockedInterface.VgpuTypeGetGpuInstanceProfileIdCalls())

func (*Interface) VgpuTypeGetLicense

func (mock *Interface) VgpuTypeGetLicense(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)

VgpuTypeGetLicense calls VgpuTypeGetLicenseFunc.

func (*Interface) VgpuTypeGetLicenseCalls

func (mock *Interface) VgpuTypeGetLicenseCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetLicenseCalls gets all the calls that were made to VgpuTypeGetLicense. Check the length with:

len(mockedInterface.VgpuTypeGetLicenseCalls())

func (*Interface) VgpuTypeGetMaxInstances

func (mock *Interface) VgpuTypeGetMaxInstances(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)

VgpuTypeGetMaxInstances calls VgpuTypeGetMaxInstancesFunc.

func (*Interface) VgpuTypeGetMaxInstancesCalls

func (mock *Interface) VgpuTypeGetMaxInstancesCalls() []struct {
	Device     nvml.Device
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetMaxInstancesCalls gets all the calls that were made to VgpuTypeGetMaxInstances. Check the length with:

len(mockedInterface.VgpuTypeGetMaxInstancesCalls())

func (*Interface) VgpuTypeGetMaxInstancesPerVm

func (mock *Interface) VgpuTypeGetMaxInstancesPerVm(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)

VgpuTypeGetMaxInstancesPerVm calls VgpuTypeGetMaxInstancesPerVmFunc.

func (*Interface) VgpuTypeGetMaxInstancesPerVmCalls

func (mock *Interface) VgpuTypeGetMaxInstancesPerVmCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetMaxInstancesPerVmCalls gets all the calls that were made to VgpuTypeGetMaxInstancesPerVm. Check the length with:

len(mockedInterface.VgpuTypeGetMaxInstancesPerVmCalls())

func (*Interface) VgpuTypeGetName

func (mock *Interface) VgpuTypeGetName(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)

VgpuTypeGetName calls VgpuTypeGetNameFunc.

func (*Interface) VgpuTypeGetNameCalls

func (mock *Interface) VgpuTypeGetNameCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetNameCalls gets all the calls that were made to VgpuTypeGetName. Check the length with:

len(mockedInterface.VgpuTypeGetNameCalls())

func (*Interface) VgpuTypeGetNumDisplayHeads

func (mock *Interface) VgpuTypeGetNumDisplayHeads(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)

VgpuTypeGetNumDisplayHeads calls VgpuTypeGetNumDisplayHeadsFunc.

func (*Interface) VgpuTypeGetNumDisplayHeadsCalls

func (mock *Interface) VgpuTypeGetNumDisplayHeadsCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
}

VgpuTypeGetNumDisplayHeadsCalls gets all the calls that were made to VgpuTypeGetNumDisplayHeads. Check the length with:

len(mockedInterface.VgpuTypeGetNumDisplayHeadsCalls())

func (*Interface) VgpuTypeGetResolution

func (mock *Interface) VgpuTypeGetResolution(vgpuTypeId nvml.VgpuTypeId, n int) (uint32, uint32, nvml.Return)

VgpuTypeGetResolution calls VgpuTypeGetResolutionFunc.

func (*Interface) VgpuTypeGetResolutionCalls

func (mock *Interface) VgpuTypeGetResolutionCalls() []struct {
	VgpuTypeId nvml.VgpuTypeId
	N          int
}

VgpuTypeGetResolutionCalls gets all the calls that were made to VgpuTypeGetResolution. Check the length with:

len(mockedInterface.VgpuTypeGetResolutionCalls())

type Unit

type Unit struct {
	// GetDevicesFunc mocks the GetDevices method.
	GetDevicesFunc func() ([]nvml.Device, nvml.Return)

	// GetFanSpeedInfoFunc mocks the GetFanSpeedInfo method.
	GetFanSpeedInfoFunc func() (nvml.UnitFanSpeeds, nvml.Return)

	// GetLedStateFunc mocks the GetLedState method.
	GetLedStateFunc func() (nvml.LedState, nvml.Return)

	// GetPsuInfoFunc mocks the GetPsuInfo method.
	GetPsuInfoFunc func() (nvml.PSUInfo, nvml.Return)

	// GetTemperatureFunc mocks the GetTemperature method.
	GetTemperatureFunc func(n int) (uint32, nvml.Return)

	// GetUnitInfoFunc mocks the GetUnitInfo method.
	GetUnitInfoFunc func() (nvml.UnitInfo, nvml.Return)

	// SetLedStateFunc mocks the SetLedState method.
	SetLedStateFunc func(ledColor nvml.LedColor) nvml.Return
	// contains filtered or unexported fields
}

Unit is a mock implementation of nvml.Unit.

func TestSomethingThatUsesUnit(t *testing.T) {

	// make and configure a mocked nvml.Unit
	mockedUnit := &Unit{
		GetDevicesFunc: func() ([]nvml.Device, nvml.Return) {
			panic("mock out the GetDevices method")
		},
		GetFanSpeedInfoFunc: func() (nvml.UnitFanSpeeds, nvml.Return) {
			panic("mock out the GetFanSpeedInfo method")
		},
		GetLedStateFunc: func() (nvml.LedState, nvml.Return) {
			panic("mock out the GetLedState method")
		},
		GetPsuInfoFunc: func() (nvml.PSUInfo, nvml.Return) {
			panic("mock out the GetPsuInfo method")
		},
		GetTemperatureFunc: func(n int) (uint32, nvml.Return) {
			panic("mock out the GetTemperature method")
		},
		GetUnitInfoFunc: func() (nvml.UnitInfo, nvml.Return) {
			panic("mock out the GetUnitInfo method")
		},
		SetLedStateFunc: func(ledColor nvml.LedColor) nvml.Return {
			panic("mock out the SetLedState method")
		},
	}

	// use mockedUnit in code that requires nvml.Unit
	// and then make assertions.

}

func (*Unit) GetDevices

func (mock *Unit) GetDevices() ([]nvml.Device, nvml.Return)

GetDevices calls GetDevicesFunc.

func (*Unit) GetDevicesCalls

func (mock *Unit) GetDevicesCalls() []struct {
}

GetDevicesCalls gets all the calls that were made to GetDevices. Check the length with:

len(mockedUnit.GetDevicesCalls())

func (*Unit) GetFanSpeedInfo

func (mock *Unit) GetFanSpeedInfo() (nvml.UnitFanSpeeds, nvml.Return)

GetFanSpeedInfo calls GetFanSpeedInfoFunc.

func (*Unit) GetFanSpeedInfoCalls

func (mock *Unit) GetFanSpeedInfoCalls() []struct {
}

GetFanSpeedInfoCalls gets all the calls that were made to GetFanSpeedInfo. Check the length with:

len(mockedUnit.GetFanSpeedInfoCalls())

func (*Unit) GetLedState

func (mock *Unit) GetLedState() (nvml.LedState, nvml.Return)

GetLedState calls GetLedStateFunc.

func (*Unit) GetLedStateCalls

func (mock *Unit) GetLedStateCalls() []struct {
}

GetLedStateCalls gets all the calls that were made to GetLedState. Check the length with:

len(mockedUnit.GetLedStateCalls())

func (*Unit) GetPsuInfo

func (mock *Unit) GetPsuInfo() (nvml.PSUInfo, nvml.Return)

GetPsuInfo calls GetPsuInfoFunc.

func (*Unit) GetPsuInfoCalls

func (mock *Unit) GetPsuInfoCalls() []struct {
}

GetPsuInfoCalls gets all the calls that were made to GetPsuInfo. Check the length with:

len(mockedUnit.GetPsuInfoCalls())

func (*Unit) GetTemperature

func (mock *Unit) GetTemperature(n int) (uint32, nvml.Return)

GetTemperature calls GetTemperatureFunc.

func (*Unit) GetTemperatureCalls

func (mock *Unit) GetTemperatureCalls() []struct {
	N int
}

GetTemperatureCalls gets all the calls that were made to GetTemperature. Check the length with:

len(mockedUnit.GetTemperatureCalls())

func (*Unit) GetUnitInfo

func (mock *Unit) GetUnitInfo() (nvml.UnitInfo, nvml.Return)

GetUnitInfo calls GetUnitInfoFunc.

func (*Unit) GetUnitInfoCalls

func (mock *Unit) GetUnitInfoCalls() []struct {
}

GetUnitInfoCalls gets all the calls that were made to GetUnitInfo. Check the length with:

len(mockedUnit.GetUnitInfoCalls())

func (*Unit) SetLedState

func (mock *Unit) SetLedState(ledColor nvml.LedColor) nvml.Return

SetLedState calls SetLedStateFunc.

func (*Unit) SetLedStateCalls

func (mock *Unit) SetLedStateCalls() []struct {
	LedColor nvml.LedColor
}

SetLedStateCalls gets all the calls that were made to SetLedState. Check the length with:

len(mockedUnit.SetLedStateCalls())

type VgpuInstance

type VgpuInstance struct {
	// ClearAccountingPidsFunc mocks the ClearAccountingPids method.
	ClearAccountingPidsFunc func() nvml.Return

	// GetAccountingModeFunc mocks the GetAccountingMode method.
	GetAccountingModeFunc func() (nvml.EnableState, nvml.Return)

	// GetAccountingPidsFunc mocks the GetAccountingPids method.
	GetAccountingPidsFunc func() ([]int, nvml.Return)

	// GetAccountingStatsFunc mocks the GetAccountingStats method.
	GetAccountingStatsFunc func(n int) (nvml.AccountingStats, nvml.Return)

	// GetEccModeFunc mocks the GetEccMode method.
	GetEccModeFunc func() (nvml.EnableState, nvml.Return)

	// GetEncoderCapacityFunc mocks the GetEncoderCapacity method.
	GetEncoderCapacityFunc func() (int, nvml.Return)

	// GetEncoderSessionsFunc mocks the GetEncoderSessions method.
	GetEncoderSessionsFunc func() (int, nvml.EncoderSessionInfo, nvml.Return)

	// GetEncoderStatsFunc mocks the GetEncoderStats method.
	GetEncoderStatsFunc func() (int, uint32, uint32, nvml.Return)

	// GetFBCSessionsFunc mocks the GetFBCSessions method.
	GetFBCSessionsFunc func() (int, nvml.FBCSessionInfo, nvml.Return)

	// GetFBCStatsFunc mocks the GetFBCStats method.
	GetFBCStatsFunc func() (nvml.FBCStats, nvml.Return)

	// GetFbUsageFunc mocks the GetFbUsage method.
	GetFbUsageFunc func() (uint64, nvml.Return)

	// GetFrameRateLimitFunc mocks the GetFrameRateLimit method.
	GetFrameRateLimitFunc func() (uint32, nvml.Return)

	// GetGpuInstanceIdFunc mocks the GetGpuInstanceId method.
	GetGpuInstanceIdFunc func() (int, nvml.Return)

	// GetGpuPciIdFunc mocks the GetGpuPciId method.
	GetGpuPciIdFunc func() (string, nvml.Return)

	// GetLicenseInfoFunc mocks the GetLicenseInfo method.
	GetLicenseInfoFunc func() (nvml.VgpuLicenseInfo, nvml.Return)

	// GetLicenseStatusFunc mocks the GetLicenseStatus method.
	GetLicenseStatusFunc func() (int, nvml.Return)

	// GetMdevUUIDFunc mocks the GetMdevUUID method.
	GetMdevUUIDFunc func() (string, nvml.Return)

	// GetMetadataFunc mocks the GetMetadata method.
	GetMetadataFunc func() (nvml.VgpuMetadata, nvml.Return)

	// GetTypeFunc mocks the GetType method.
	GetTypeFunc func() (nvml.VgpuTypeId, nvml.Return)

	// GetUUIDFunc mocks the GetUUID method.
	GetUUIDFunc func() (string, nvml.Return)

	// GetVmDriverVersionFunc mocks the GetVmDriverVersion method.
	GetVmDriverVersionFunc func() (string, nvml.Return)

	// GetVmIDFunc mocks the GetVmID method.
	GetVmIDFunc func() (string, nvml.VgpuVmIdType, nvml.Return)

	// SetEncoderCapacityFunc mocks the SetEncoderCapacity method.
	SetEncoderCapacityFunc func(n int) nvml.Return
	// contains filtered or unexported fields
}

VgpuInstance is a mock implementation of nvml.VgpuInstance.

func TestSomethingThatUsesVgpuInstance(t *testing.T) {

	// make and configure a mocked nvml.VgpuInstance
	mockedVgpuInstance := &VgpuInstance{
		ClearAccountingPidsFunc: func() nvml.Return {
			panic("mock out the ClearAccountingPids method")
		},
		GetAccountingModeFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetAccountingMode method")
		},
		GetAccountingPidsFunc: func() ([]int, nvml.Return) {
			panic("mock out the GetAccountingPids method")
		},
		GetAccountingStatsFunc: func(n int) (nvml.AccountingStats, nvml.Return) {
			panic("mock out the GetAccountingStats method")
		},
		GetEccModeFunc: func() (nvml.EnableState, nvml.Return) {
			panic("mock out the GetEccMode method")
		},
		GetEncoderCapacityFunc: func() (int, nvml.Return) {
			panic("mock out the GetEncoderCapacity method")
		},
		GetEncoderSessionsFunc: func() (int, nvml.EncoderSessionInfo, nvml.Return) {
			panic("mock out the GetEncoderSessions method")
		},
		GetEncoderStatsFunc: func() (int, uint32, uint32, nvml.Return) {
			panic("mock out the GetEncoderStats method")
		},
		GetFBCSessionsFunc: func() (int, nvml.FBCSessionInfo, nvml.Return) {
			panic("mock out the GetFBCSessions method")
		},
		GetFBCStatsFunc: func() (nvml.FBCStats, nvml.Return) {
			panic("mock out the GetFBCStats method")
		},
		GetFbUsageFunc: func() (uint64, nvml.Return) {
			panic("mock out the GetFbUsage method")
		},
		GetFrameRateLimitFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetFrameRateLimit method")
		},
		GetGpuInstanceIdFunc: func() (int, nvml.Return) {
			panic("mock out the GetGpuInstanceId method")
		},
		GetGpuPciIdFunc: func() (string, nvml.Return) {
			panic("mock out the GetGpuPciId method")
		},
		GetLicenseInfoFunc: func() (nvml.VgpuLicenseInfo, nvml.Return) {
			panic("mock out the GetLicenseInfo method")
		},
		GetLicenseStatusFunc: func() (int, nvml.Return) {
			panic("mock out the GetLicenseStatus method")
		},
		GetMdevUUIDFunc: func() (string, nvml.Return) {
			panic("mock out the GetMdevUUID method")
		},
		GetMetadataFunc: func() (nvml.VgpuMetadata, nvml.Return) {
			panic("mock out the GetMetadata method")
		},
		GetTypeFunc: func() (nvml.VgpuTypeId, nvml.Return) {
			panic("mock out the GetType method")
		},
		GetUUIDFunc: func() (string, nvml.Return) {
			panic("mock out the GetUUID method")
		},
		GetVmDriverVersionFunc: func() (string, nvml.Return) {
			panic("mock out the GetVmDriverVersion method")
		},
		GetVmIDFunc: func() (string, nvml.VgpuVmIdType, nvml.Return) {
			panic("mock out the GetVmID method")
		},
		SetEncoderCapacityFunc: func(n int) nvml.Return {
			panic("mock out the SetEncoderCapacity method")
		},
	}

	// use mockedVgpuInstance in code that requires nvml.VgpuInstance
	// and then make assertions.

}

func (*VgpuInstance) ClearAccountingPids

func (mock *VgpuInstance) ClearAccountingPids() nvml.Return

ClearAccountingPids calls ClearAccountingPidsFunc.

func (*VgpuInstance) ClearAccountingPidsCalls

func (mock *VgpuInstance) ClearAccountingPidsCalls() []struct {
}

ClearAccountingPidsCalls gets all the calls that were made to ClearAccountingPids. Check the length with:

len(mockedVgpuInstance.ClearAccountingPidsCalls())

func (*VgpuInstance) GetAccountingMode

func (mock *VgpuInstance) GetAccountingMode() (nvml.EnableState, nvml.Return)

GetAccountingMode calls GetAccountingModeFunc.

func (*VgpuInstance) GetAccountingModeCalls

func (mock *VgpuInstance) GetAccountingModeCalls() []struct {
}

GetAccountingModeCalls gets all the calls that were made to GetAccountingMode. Check the length with:

len(mockedVgpuInstance.GetAccountingModeCalls())

func (*VgpuInstance) GetAccountingPids

func (mock *VgpuInstance) GetAccountingPids() ([]int, nvml.Return)

GetAccountingPids calls GetAccountingPidsFunc.

func (*VgpuInstance) GetAccountingPidsCalls

func (mock *VgpuInstance) GetAccountingPidsCalls() []struct {
}

GetAccountingPidsCalls gets all the calls that were made to GetAccountingPids. Check the length with:

len(mockedVgpuInstance.GetAccountingPidsCalls())

func (*VgpuInstance) GetAccountingStats

func (mock *VgpuInstance) GetAccountingStats(n int) (nvml.AccountingStats, nvml.Return)

GetAccountingStats calls GetAccountingStatsFunc.

func (*VgpuInstance) GetAccountingStatsCalls

func (mock *VgpuInstance) GetAccountingStatsCalls() []struct {
	N int
}

GetAccountingStatsCalls gets all the calls that were made to GetAccountingStats. Check the length with:

len(mockedVgpuInstance.GetAccountingStatsCalls())

func (*VgpuInstance) GetEccMode

func (mock *VgpuInstance) GetEccMode() (nvml.EnableState, nvml.Return)

GetEccMode calls GetEccModeFunc.

func (*VgpuInstance) GetEccModeCalls

func (mock *VgpuInstance) GetEccModeCalls() []struct {
}

GetEccModeCalls gets all the calls that were made to GetEccMode. Check the length with:

len(mockedVgpuInstance.GetEccModeCalls())

func (*VgpuInstance) GetEncoderCapacity

func (mock *VgpuInstance) GetEncoderCapacity() (int, nvml.Return)

GetEncoderCapacity calls GetEncoderCapacityFunc.

func (*VgpuInstance) GetEncoderCapacityCalls

func (mock *VgpuInstance) GetEncoderCapacityCalls() []struct {
}

GetEncoderCapacityCalls gets all the calls that were made to GetEncoderCapacity. Check the length with:

len(mockedVgpuInstance.GetEncoderCapacityCalls())

func (*VgpuInstance) GetEncoderSessions

func (mock *VgpuInstance) GetEncoderSessions() (int, nvml.EncoderSessionInfo, nvml.Return)

GetEncoderSessions calls GetEncoderSessionsFunc.

func (*VgpuInstance) GetEncoderSessionsCalls

func (mock *VgpuInstance) GetEncoderSessionsCalls() []struct {
}

GetEncoderSessionsCalls gets all the calls that were made to GetEncoderSessions. Check the length with:

len(mockedVgpuInstance.GetEncoderSessionsCalls())

func (*VgpuInstance) GetEncoderStats

func (mock *VgpuInstance) GetEncoderStats() (int, uint32, uint32, nvml.Return)

GetEncoderStats calls GetEncoderStatsFunc.

func (*VgpuInstance) GetEncoderStatsCalls

func (mock *VgpuInstance) GetEncoderStatsCalls() []struct {
}

GetEncoderStatsCalls gets all the calls that were made to GetEncoderStats. Check the length with:

len(mockedVgpuInstance.GetEncoderStatsCalls())

func (*VgpuInstance) GetFBCSessions

func (mock *VgpuInstance) GetFBCSessions() (int, nvml.FBCSessionInfo, nvml.Return)

GetFBCSessions calls GetFBCSessionsFunc.

func (*VgpuInstance) GetFBCSessionsCalls

func (mock *VgpuInstance) GetFBCSessionsCalls() []struct {
}

GetFBCSessionsCalls gets all the calls that were made to GetFBCSessions. Check the length with:

len(mockedVgpuInstance.GetFBCSessionsCalls())

func (*VgpuInstance) GetFBCStats

func (mock *VgpuInstance) GetFBCStats() (nvml.FBCStats, nvml.Return)

GetFBCStats calls GetFBCStatsFunc.

func (*VgpuInstance) GetFBCStatsCalls

func (mock *VgpuInstance) GetFBCStatsCalls() []struct {
}

GetFBCStatsCalls gets all the calls that were made to GetFBCStats. Check the length with:

len(mockedVgpuInstance.GetFBCStatsCalls())

func (*VgpuInstance) GetFbUsage

func (mock *VgpuInstance) GetFbUsage() (uint64, nvml.Return)

GetFbUsage calls GetFbUsageFunc.

func (*VgpuInstance) GetFbUsageCalls

func (mock *VgpuInstance) GetFbUsageCalls() []struct {
}

GetFbUsageCalls gets all the calls that were made to GetFbUsage. Check the length with:

len(mockedVgpuInstance.GetFbUsageCalls())

func (*VgpuInstance) GetFrameRateLimit

func (mock *VgpuInstance) GetFrameRateLimit() (uint32, nvml.Return)

GetFrameRateLimit calls GetFrameRateLimitFunc.

func (*VgpuInstance) GetFrameRateLimitCalls

func (mock *VgpuInstance) GetFrameRateLimitCalls() []struct {
}

GetFrameRateLimitCalls gets all the calls that were made to GetFrameRateLimit. Check the length with:

len(mockedVgpuInstance.GetFrameRateLimitCalls())

func (*VgpuInstance) GetGpuInstanceId

func (mock *VgpuInstance) GetGpuInstanceId() (int, nvml.Return)

GetGpuInstanceId calls GetGpuInstanceIdFunc.

func (*VgpuInstance) GetGpuInstanceIdCalls

func (mock *VgpuInstance) GetGpuInstanceIdCalls() []struct {
}

GetGpuInstanceIdCalls gets all the calls that were made to GetGpuInstanceId. Check the length with:

len(mockedVgpuInstance.GetGpuInstanceIdCalls())

func (*VgpuInstance) GetGpuPciId

func (mock *VgpuInstance) GetGpuPciId() (string, nvml.Return)

GetGpuPciId calls GetGpuPciIdFunc.

func (*VgpuInstance) GetGpuPciIdCalls

func (mock *VgpuInstance) GetGpuPciIdCalls() []struct {
}

GetGpuPciIdCalls gets all the calls that were made to GetGpuPciId. Check the length with:

len(mockedVgpuInstance.GetGpuPciIdCalls())

func (*VgpuInstance) GetLicenseInfo

func (mock *VgpuInstance) GetLicenseInfo() (nvml.VgpuLicenseInfo, nvml.Return)

GetLicenseInfo calls GetLicenseInfoFunc.

func (*VgpuInstance) GetLicenseInfoCalls

func (mock *VgpuInstance) GetLicenseInfoCalls() []struct {
}

GetLicenseInfoCalls gets all the calls that were made to GetLicenseInfo. Check the length with:

len(mockedVgpuInstance.GetLicenseInfoCalls())

func (*VgpuInstance) GetLicenseStatus

func (mock *VgpuInstance) GetLicenseStatus() (int, nvml.Return)

GetLicenseStatus calls GetLicenseStatusFunc.

func (*VgpuInstance) GetLicenseStatusCalls

func (mock *VgpuInstance) GetLicenseStatusCalls() []struct {
}

GetLicenseStatusCalls gets all the calls that were made to GetLicenseStatus. Check the length with:

len(mockedVgpuInstance.GetLicenseStatusCalls())

func (*VgpuInstance) GetMdevUUID

func (mock *VgpuInstance) GetMdevUUID() (string, nvml.Return)

GetMdevUUID calls GetMdevUUIDFunc.

func (*VgpuInstance) GetMdevUUIDCalls

func (mock *VgpuInstance) GetMdevUUIDCalls() []struct {
}

GetMdevUUIDCalls gets all the calls that were made to GetMdevUUID. Check the length with:

len(mockedVgpuInstance.GetMdevUUIDCalls())

func (*VgpuInstance) GetMetadata

func (mock *VgpuInstance) GetMetadata() (nvml.VgpuMetadata, nvml.Return)

GetMetadata calls GetMetadataFunc.

func (*VgpuInstance) GetMetadataCalls

func (mock *VgpuInstance) GetMetadataCalls() []struct {
}

GetMetadataCalls gets all the calls that were made to GetMetadata. Check the length with:

len(mockedVgpuInstance.GetMetadataCalls())

func (*VgpuInstance) GetType

func (mock *VgpuInstance) GetType() (nvml.VgpuTypeId, nvml.Return)

GetType calls GetTypeFunc.

func (*VgpuInstance) GetTypeCalls

func (mock *VgpuInstance) GetTypeCalls() []struct {
}

GetTypeCalls gets all the calls that were made to GetType. Check the length with:

len(mockedVgpuInstance.GetTypeCalls())

func (*VgpuInstance) GetUUID

func (mock *VgpuInstance) GetUUID() (string, nvml.Return)

GetUUID calls GetUUIDFunc.

func (*VgpuInstance) GetUUIDCalls

func (mock *VgpuInstance) GetUUIDCalls() []struct {
}

GetUUIDCalls gets all the calls that were made to GetUUID. Check the length with:

len(mockedVgpuInstance.GetUUIDCalls())

func (*VgpuInstance) GetVmDriverVersion

func (mock *VgpuInstance) GetVmDriverVersion() (string, nvml.Return)

GetVmDriverVersion calls GetVmDriverVersionFunc.

func (*VgpuInstance) GetVmDriverVersionCalls

func (mock *VgpuInstance) GetVmDriverVersionCalls() []struct {
}

GetVmDriverVersionCalls gets all the calls that were made to GetVmDriverVersion. Check the length with:

len(mockedVgpuInstance.GetVmDriverVersionCalls())

func (*VgpuInstance) GetVmID

func (mock *VgpuInstance) GetVmID() (string, nvml.VgpuVmIdType, nvml.Return)

GetVmID calls GetVmIDFunc.

func (*VgpuInstance) GetVmIDCalls

func (mock *VgpuInstance) GetVmIDCalls() []struct {
}

GetVmIDCalls gets all the calls that were made to GetVmID. Check the length with:

len(mockedVgpuInstance.GetVmIDCalls())

func (*VgpuInstance) SetEncoderCapacity

func (mock *VgpuInstance) SetEncoderCapacity(n int) nvml.Return

SetEncoderCapacity calls SetEncoderCapacityFunc.

func (*VgpuInstance) SetEncoderCapacityCalls

func (mock *VgpuInstance) SetEncoderCapacityCalls() []struct {
	N int
}

SetEncoderCapacityCalls gets all the calls that were made to SetEncoderCapacity. Check the length with:

len(mockedVgpuInstance.SetEncoderCapacityCalls())

type VgpuTypeId

type VgpuTypeId struct {
	// GetCapabilitiesFunc mocks the GetCapabilities method.
	GetCapabilitiesFunc func(vgpuCapability nvml.VgpuCapability) (bool, nvml.Return)

	// GetClassFunc mocks the GetClass method.
	GetClassFunc func() (string, nvml.Return)

	// GetDeviceIDFunc mocks the GetDeviceID method.
	GetDeviceIDFunc func() (uint64, uint64, nvml.Return)

	// GetFrameRateLimitFunc mocks the GetFrameRateLimit method.
	GetFrameRateLimitFunc func() (uint32, nvml.Return)

	// GetFramebufferSizeFunc mocks the GetFramebufferSize method.
	GetFramebufferSizeFunc func() (uint64, nvml.Return)

	// GetGpuInstanceProfileIdFunc mocks the GetGpuInstanceProfileId method.
	GetGpuInstanceProfileIdFunc func() (uint32, nvml.Return)

	// GetLicenseFunc mocks the GetLicense method.
	GetLicenseFunc func() (string, nvml.Return)

	// GetMaxInstancesFunc mocks the GetMaxInstances method.
	GetMaxInstancesFunc func(device nvml.Device) (int, nvml.Return)

	// GetMaxInstancesPerVmFunc mocks the GetMaxInstancesPerVm method.
	GetMaxInstancesPerVmFunc func() (int, nvml.Return)

	// GetNameFunc mocks the GetName method.
	GetNameFunc func() (string, nvml.Return)

	// GetNumDisplayHeadsFunc mocks the GetNumDisplayHeads method.
	GetNumDisplayHeadsFunc func() (int, nvml.Return)

	// GetResolutionFunc mocks the GetResolution method.
	GetResolutionFunc func(n int) (uint32, uint32, nvml.Return)
	// contains filtered or unexported fields
}

VgpuTypeId is a mock implementation of nvml.VgpuTypeId.

func TestSomethingThatUsesVgpuTypeId(t *testing.T) {

	// make and configure a mocked nvml.VgpuTypeId
	mockedVgpuTypeId := &VgpuTypeId{
		GetCapabilitiesFunc: func(vgpuCapability nvml.VgpuCapability) (bool, nvml.Return) {
			panic("mock out the GetCapabilities method")
		},
		GetClassFunc: func() (string, nvml.Return) {
			panic("mock out the GetClass method")
		},
		GetDeviceIDFunc: func() (uint64, uint64, nvml.Return) {
			panic("mock out the GetDeviceID method")
		},
		GetFrameRateLimitFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetFrameRateLimit method")
		},
		GetFramebufferSizeFunc: func() (uint64, nvml.Return) {
			panic("mock out the GetFramebufferSize method")
		},
		GetGpuInstanceProfileIdFunc: func() (uint32, nvml.Return) {
			panic("mock out the GetGpuInstanceProfileId method")
		},
		GetLicenseFunc: func() (string, nvml.Return) {
			panic("mock out the GetLicense method")
		},
		GetMaxInstancesFunc: func(device nvml.Device) (int, nvml.Return) {
			panic("mock out the GetMaxInstances method")
		},
		GetMaxInstancesPerVmFunc: func() (int, nvml.Return) {
			panic("mock out the GetMaxInstancesPerVm method")
		},
		GetNameFunc: func() (string, nvml.Return) {
			panic("mock out the GetName method")
		},
		GetNumDisplayHeadsFunc: func() (int, nvml.Return) {
			panic("mock out the GetNumDisplayHeads method")
		},
		GetResolutionFunc: func(n int) (uint32, uint32, nvml.Return) {
			panic("mock out the GetResolution method")
		},
	}

	// use mockedVgpuTypeId in code that requires nvml.VgpuTypeId
	// and then make assertions.

}

func (*VgpuTypeId) GetCapabilities

func (mock *VgpuTypeId) GetCapabilities(vgpuCapability nvml.VgpuCapability) (bool, nvml.Return)

GetCapabilities calls GetCapabilitiesFunc.

func (*VgpuTypeId) GetCapabilitiesCalls

func (mock *VgpuTypeId) GetCapabilitiesCalls() []struct {
	VgpuCapability nvml.VgpuCapability
}

GetCapabilitiesCalls gets all the calls that were made to GetCapabilities. Check the length with:

len(mockedVgpuTypeId.GetCapabilitiesCalls())

func (*VgpuTypeId) GetClass

func (mock *VgpuTypeId) GetClass() (string, nvml.Return)

GetClass calls GetClassFunc.

func (*VgpuTypeId) GetClassCalls

func (mock *VgpuTypeId) GetClassCalls() []struct {
}

GetClassCalls gets all the calls that were made to GetClass. Check the length with:

len(mockedVgpuTypeId.GetClassCalls())

func (*VgpuTypeId) GetDeviceID

func (mock *VgpuTypeId) GetDeviceID() (uint64, uint64, nvml.Return)

GetDeviceID calls GetDeviceIDFunc.

func (*VgpuTypeId) GetDeviceIDCalls

func (mock *VgpuTypeId) GetDeviceIDCalls() []struct {
}

GetDeviceIDCalls gets all the calls that were made to GetDeviceID. Check the length with:

len(mockedVgpuTypeId.GetDeviceIDCalls())

func (*VgpuTypeId) GetFrameRateLimit

func (mock *VgpuTypeId) GetFrameRateLimit() (uint32, nvml.Return)

GetFrameRateLimit calls GetFrameRateLimitFunc.

func (*VgpuTypeId) GetFrameRateLimitCalls

func (mock *VgpuTypeId) GetFrameRateLimitCalls() []struct {
}

GetFrameRateLimitCalls gets all the calls that were made to GetFrameRateLimit. Check the length with:

len(mockedVgpuTypeId.GetFrameRateLimitCalls())

func (*VgpuTypeId) GetFramebufferSize

func (mock *VgpuTypeId) GetFramebufferSize() (uint64, nvml.Return)

GetFramebufferSize calls GetFramebufferSizeFunc.

func (*VgpuTypeId) GetFramebufferSizeCalls

func (mock *VgpuTypeId) GetFramebufferSizeCalls() []struct {
}

GetFramebufferSizeCalls gets all the calls that were made to GetFramebufferSize. Check the length with:

len(mockedVgpuTypeId.GetFramebufferSizeCalls())

func (*VgpuTypeId) GetGpuInstanceProfileId

func (mock *VgpuTypeId) GetGpuInstanceProfileId() (uint32, nvml.Return)

GetGpuInstanceProfileId calls GetGpuInstanceProfileIdFunc.

func (*VgpuTypeId) GetGpuInstanceProfileIdCalls

func (mock *VgpuTypeId) GetGpuInstanceProfileIdCalls() []struct {
}

GetGpuInstanceProfileIdCalls gets all the calls that were made to GetGpuInstanceProfileId. Check the length with:

len(mockedVgpuTypeId.GetGpuInstanceProfileIdCalls())

func (*VgpuTypeId) GetLicense

func (mock *VgpuTypeId) GetLicense() (string, nvml.Return)

GetLicense calls GetLicenseFunc.

func (*VgpuTypeId) GetLicenseCalls

func (mock *VgpuTypeId) GetLicenseCalls() []struct {
}

GetLicenseCalls gets all the calls that were made to GetLicense. Check the length with:

len(mockedVgpuTypeId.GetLicenseCalls())

func (*VgpuTypeId) GetMaxInstances

func (mock *VgpuTypeId) GetMaxInstances(device nvml.Device) (int, nvml.Return)

GetMaxInstances calls GetMaxInstancesFunc.

func (*VgpuTypeId) GetMaxInstancesCalls

func (mock *VgpuTypeId) GetMaxInstancesCalls() []struct {
	Device nvml.Device
}

GetMaxInstancesCalls gets all the calls that were made to GetMaxInstances. Check the length with:

len(mockedVgpuTypeId.GetMaxInstancesCalls())

func (*VgpuTypeId) GetMaxInstancesPerVm

func (mock *VgpuTypeId) GetMaxInstancesPerVm() (int, nvml.Return)

GetMaxInstancesPerVm calls GetMaxInstancesPerVmFunc.

func (*VgpuTypeId) GetMaxInstancesPerVmCalls

func (mock *VgpuTypeId) GetMaxInstancesPerVmCalls() []struct {
}

GetMaxInstancesPerVmCalls gets all the calls that were made to GetMaxInstancesPerVm. Check the length with:

len(mockedVgpuTypeId.GetMaxInstancesPerVmCalls())

func (*VgpuTypeId) GetName

func (mock *VgpuTypeId) GetName() (string, nvml.Return)

GetName calls GetNameFunc.

func (*VgpuTypeId) GetNameCalls

func (mock *VgpuTypeId) GetNameCalls() []struct {
}

GetNameCalls gets all the calls that were made to GetName. Check the length with:

len(mockedVgpuTypeId.GetNameCalls())

func (*VgpuTypeId) GetNumDisplayHeads

func (mock *VgpuTypeId) GetNumDisplayHeads() (int, nvml.Return)

GetNumDisplayHeads calls GetNumDisplayHeadsFunc.

func (*VgpuTypeId) GetNumDisplayHeadsCalls

func (mock *VgpuTypeId) GetNumDisplayHeadsCalls() []struct {
}

GetNumDisplayHeadsCalls gets all the calls that were made to GetNumDisplayHeads. Check the length with:

len(mockedVgpuTypeId.GetNumDisplayHeadsCalls())

func (*VgpuTypeId) GetResolution

func (mock *VgpuTypeId) GetResolution(n int) (uint32, uint32, nvml.Return)

GetResolution calls GetResolutionFunc.

func (*VgpuTypeId) GetResolutionCalls

func (mock *VgpuTypeId) GetResolutionCalls() []struct {
	N int
}

GetResolutionCalls gets all the calls that were made to GetResolution. Check the length with:

len(mockedVgpuTypeId.GetResolutionCalls())

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL