Documentation
¶
Index ¶
- type ComputeInstance
- type Device
- func (mock *Device) ClearAccountingPids() nvml.Return
- func (mock *Device) ClearAccountingPidsCalls() []struct{}
- func (mock *Device) ClearCpuAffinity() nvml.Return
- func (mock *Device) ClearCpuAffinityCalls() []struct{}
- func (mock *Device) ClearEccErrorCounts(eccCounterType nvml.EccCounterType) nvml.Return
- func (mock *Device) ClearEccErrorCountsCalls() []struct{ ... }
- func (mock *Device) ClearFieldValues(fieldValues []nvml.FieldValue) nvml.Return
- func (mock *Device) ClearFieldValuesCalls() []struct{ ... }
- func (mock *Device) CreateGpuInstance(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return)
- func (mock *Device) CreateGpuInstanceCalls() []struct{ ... }
- func (mock *Device) CreateGpuInstanceWithPlacement(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, ...) (nvml.GpuInstance, nvml.Return)
- func (mock *Device) CreateGpuInstanceWithPlacementCalls() []struct{ ... }
- func (mock *Device) FreezeNvLinkUtilizationCounter(n1 int, n2 int, enableState nvml.EnableState) nvml.Return
- func (mock *Device) FreezeNvLinkUtilizationCounterCalls() []struct{ ... }
- func (mock *Device) GetAPIRestriction(restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return)
- func (mock *Device) GetAPIRestrictionCalls() []struct{ ... }
- func (mock *Device) GetAccountingBufferSize() (int, nvml.Return)
- func (mock *Device) GetAccountingBufferSizeCalls() []struct{}
- func (mock *Device) GetAccountingMode() (nvml.EnableState, nvml.Return)
- func (mock *Device) GetAccountingModeCalls() []struct{}
- func (mock *Device) GetAccountingPids() ([]int, nvml.Return)
- func (mock *Device) GetAccountingPidsCalls() []struct{}
- func (mock *Device) GetAccountingStats(v uint32) (nvml.AccountingStats, nvml.Return)
- func (mock *Device) GetAccountingStatsCalls() []struct{ ... }
- func (mock *Device) GetActiveVgpus() ([]nvml.VgpuInstance, nvml.Return)
- func (mock *Device) GetActiveVgpusCalls() []struct{}
- func (mock *Device) GetAdaptiveClockInfoStatus() (uint32, nvml.Return)
- func (mock *Device) GetAdaptiveClockInfoStatusCalls() []struct{}
- func (mock *Device) GetApplicationsClock(clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Device) GetApplicationsClockCalls() []struct{ ... }
- func (mock *Device) GetArchitecture() (nvml.DeviceArchitecture, nvml.Return)
- func (mock *Device) GetArchitectureCalls() []struct{}
- func (mock *Device) GetAttributes() (nvml.DeviceAttributes, nvml.Return)
- func (mock *Device) GetAttributesCalls() []struct{}
- func (mock *Device) GetAutoBoostedClocksEnabled() (nvml.EnableState, nvml.EnableState, nvml.Return)
- func (mock *Device) GetAutoBoostedClocksEnabledCalls() []struct{}
- func (mock *Device) GetBAR1MemoryInfo() (nvml.BAR1Memory, nvml.Return)
- func (mock *Device) GetBAR1MemoryInfoCalls() []struct{}
- func (mock *Device) GetBoardId() (uint32, nvml.Return)
- func (mock *Device) GetBoardIdCalls() []struct{}
- func (mock *Device) GetBoardPartNumber() (string, nvml.Return)
- func (mock *Device) GetBoardPartNumberCalls() []struct{}
- func (mock *Device) GetBrand() (nvml.BrandType, nvml.Return)
- func (mock *Device) GetBrandCalls() []struct{}
- func (mock *Device) GetBridgeChipInfo() (nvml.BridgeChipHierarchy, nvml.Return)
- func (mock *Device) GetBridgeChipInfoCalls() []struct{}
- func (mock *Device) GetBusType() (nvml.BusType, nvml.Return)
- func (mock *Device) GetBusTypeCalls() []struct{}
- func (mock *Device) GetC2cModeInfoV() nvml.C2cModeInfoHandler
- func (mock *Device) GetC2cModeInfoVCalls() []struct{}
- func (mock *Device) GetClkMonStatus() (nvml.ClkMonStatus, nvml.Return)
- func (mock *Device) GetClkMonStatusCalls() []struct{}
- func (mock *Device) GetClock(clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return)
- func (mock *Device) GetClockCalls() []struct{ ... }
- func (mock *Device) GetClockInfo(clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Device) GetClockInfoCalls() []struct{ ... }
- func (mock *Device) GetComputeInstanceId() (int, nvml.Return)
- func (mock *Device) GetComputeInstanceIdCalls() []struct{}
- func (mock *Device) GetComputeMode() (nvml.ComputeMode, nvml.Return)
- func (mock *Device) GetComputeModeCalls() []struct{}
- func (mock *Device) GetComputeRunningProcesses() ([]nvml.ProcessInfo, nvml.Return)
- func (mock *Device) GetComputeRunningProcessesCalls() []struct{}
- func (mock *Device) GetConfComputeGpuAttestationReport() (nvml.ConfComputeGpuAttestationReport, nvml.Return)
- func (mock *Device) GetConfComputeGpuAttestationReportCalls() []struct{}
- func (mock *Device) GetConfComputeGpuCertificate() (nvml.ConfComputeGpuCertificate, nvml.Return)
- func (mock *Device) GetConfComputeGpuCertificateCalls() []struct{}
- func (mock *Device) GetConfComputeMemSizeInfo() (nvml.ConfComputeMemSizeInfo, nvml.Return)
- func (mock *Device) GetConfComputeMemSizeInfoCalls() []struct{}
- func (mock *Device) GetConfComputeProtectedMemoryUsage() (nvml.Memory, nvml.Return)
- func (mock *Device) GetConfComputeProtectedMemoryUsageCalls() []struct{}
- func (mock *Device) GetCpuAffinity(n int) ([]uint, nvml.Return)
- func (mock *Device) GetCpuAffinityCalls() []struct{ ... }
- func (mock *Device) GetCpuAffinityWithinScope(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)
- func (mock *Device) GetCpuAffinityWithinScopeCalls() []struct{ ... }
- func (mock *Device) GetCreatableVgpus() ([]nvml.VgpuTypeId, nvml.Return)
- func (mock *Device) GetCreatableVgpusCalls() []struct{}
- func (mock *Device) GetCudaComputeCapability() (int, int, nvml.Return)
- func (mock *Device) GetCudaComputeCapabilityCalls() []struct{}
- func (mock *Device) GetCurrPcieLinkGeneration() (int, nvml.Return)
- func (mock *Device) GetCurrPcieLinkGenerationCalls() []struct{}
- func (mock *Device) GetCurrPcieLinkWidth() (int, nvml.Return)
- func (mock *Device) GetCurrPcieLinkWidthCalls() []struct{}
- func (mock *Device) GetCurrentClocksEventReasons() (uint64, nvml.Return)
- func (mock *Device) GetCurrentClocksEventReasonsCalls() []struct{}
- func (mock *Device) GetCurrentClocksThrottleReasons() (uint64, nvml.Return)
- func (mock *Device) GetCurrentClocksThrottleReasonsCalls() []struct{}
- func (mock *Device) GetDecoderUtilization() (uint32, uint32, nvml.Return)
- func (mock *Device) GetDecoderUtilizationCalls() []struct{}
- func (mock *Device) GetDefaultApplicationsClock(clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Device) GetDefaultApplicationsClockCalls() []struct{ ... }
- func (mock *Device) GetDefaultEccMode() (nvml.EnableState, nvml.Return)
- func (mock *Device) GetDefaultEccModeCalls() []struct{}
- func (mock *Device) GetDetailedEccErrors(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (nvml.EccErrorCounts, nvml.Return)
- func (mock *Device) GetDetailedEccErrorsCalls() []struct{ ... }
- func (mock *Device) GetDeviceHandleFromMigDeviceHandle() (nvml.Device, nvml.Return)
- func (mock *Device) GetDeviceHandleFromMigDeviceHandleCalls() []struct{}
- func (mock *Device) GetDisplayActive() (nvml.EnableState, nvml.Return)
- func (mock *Device) GetDisplayActiveCalls() []struct{}
- func (mock *Device) GetDisplayMode() (nvml.EnableState, nvml.Return)
- func (mock *Device) GetDisplayModeCalls() []struct{}
- func (mock *Device) GetDriverModel() (nvml.DriverModel, nvml.DriverModel, nvml.Return)
- func (mock *Device) GetDriverModelCalls() []struct{}
- func (mock *Device) GetDynamicPstatesInfo() (nvml.GpuDynamicPstatesInfo, nvml.Return)
- func (mock *Device) GetDynamicPstatesInfoCalls() []struct{}
- func (mock *Device) GetEccMode() (nvml.EnableState, nvml.EnableState, nvml.Return)
- func (mock *Device) GetEccModeCalls() []struct{}
- func (mock *Device) GetEncoderCapacity(encoderType nvml.EncoderType) (int, nvml.Return)
- func (mock *Device) GetEncoderCapacityCalls() []struct{ ... }
- func (mock *Device) GetEncoderSessions() ([]nvml.EncoderSessionInfo, nvml.Return)
- func (mock *Device) GetEncoderSessionsCalls() []struct{}
- func (mock *Device) GetEncoderStats() (int, uint32, uint32, nvml.Return)
- func (mock *Device) GetEncoderStatsCalls() []struct{}
- func (mock *Device) GetEncoderUtilization() (uint32, uint32, nvml.Return)
- func (mock *Device) GetEncoderUtilizationCalls() []struct{}
- func (mock *Device) GetEnforcedPowerLimit() (uint32, nvml.Return)
- func (mock *Device) GetEnforcedPowerLimitCalls() []struct{}
- func (mock *Device) GetFBCSessions() ([]nvml.FBCSessionInfo, nvml.Return)
- func (mock *Device) GetFBCSessionsCalls() []struct{}
- func (mock *Device) GetFBCStats() (nvml.FBCStats, nvml.Return)
- func (mock *Device) GetFBCStatsCalls() []struct{}
- func (mock *Device) GetFanControlPolicy_v2(n int) (nvml.FanControlPolicy, nvml.Return)
- func (mock *Device) GetFanControlPolicy_v2Calls() []struct{ ... }
- func (mock *Device) GetFanSpeed() (uint32, nvml.Return)
- func (mock *Device) GetFanSpeedCalls() []struct{}
- func (mock *Device) GetFanSpeed_v2(n int) (uint32, nvml.Return)
- func (mock *Device) GetFanSpeed_v2Calls() []struct{ ... }
- func (mock *Device) GetFieldValues(fieldValues []nvml.FieldValue) nvml.Return
- func (mock *Device) GetFieldValuesCalls() []struct{ ... }
- func (mock *Device) GetGpcClkMinMaxVfOffset() (int, int, nvml.Return)
- func (mock *Device) GetGpcClkMinMaxVfOffsetCalls() []struct{}
- func (mock *Device) GetGpcClkVfOffset() (int, nvml.Return)
- func (mock *Device) GetGpcClkVfOffsetCalls() []struct{}
- func (mock *Device) GetGpuFabricInfo() (nvml.GpuFabricInfo, nvml.Return)
- func (mock *Device) GetGpuFabricInfoCalls() []struct{}
- func (mock *Device) GetGpuFabricInfoV() nvml.GpuFabricInfoHandler
- func (mock *Device) GetGpuFabricInfoVCalls() []struct{}
- func (mock *Device) GetGpuInstanceById(n int) (nvml.GpuInstance, nvml.Return)
- func (mock *Device) GetGpuInstanceByIdCalls() []struct{ ... }
- func (mock *Device) GetGpuInstanceId() (int, nvml.Return)
- func (mock *Device) GetGpuInstanceIdCalls() []struct{}
- func (mock *Device) GetGpuInstancePossiblePlacements(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return)
- func (mock *Device) GetGpuInstancePossiblePlacementsCalls() []struct{ ... }
- func (mock *Device) GetGpuInstanceProfileInfo(n int) (nvml.GpuInstanceProfileInfo, nvml.Return)
- func (mock *Device) GetGpuInstanceProfileInfoCalls() []struct{ ... }
- func (mock *Device) GetGpuInstanceProfileInfoV(n int) nvml.GpuInstanceProfileInfoHandler
- func (mock *Device) GetGpuInstanceProfileInfoVCalls() []struct{ ... }
- func (mock *Device) GetGpuInstanceRemainingCapacity(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return)
- func (mock *Device) GetGpuInstanceRemainingCapacityCalls() []struct{ ... }
- func (mock *Device) GetGpuInstances(gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return)
- func (mock *Device) GetGpuInstancesCalls() []struct{ ... }
- func (mock *Device) GetGpuMaxPcieLinkGeneration() (int, nvml.Return)
- func (mock *Device) GetGpuMaxPcieLinkGenerationCalls() []struct{}
- func (mock *Device) GetGpuOperationMode() (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return)
- func (mock *Device) GetGpuOperationModeCalls() []struct{}
- func (mock *Device) GetGraphicsRunningProcesses() ([]nvml.ProcessInfo, nvml.Return)
- func (mock *Device) GetGraphicsRunningProcessesCalls() []struct{}
- func (mock *Device) GetGridLicensableFeatures() (nvml.GridLicensableFeatures, nvml.Return)
- func (mock *Device) GetGridLicensableFeaturesCalls() []struct{}
- func (mock *Device) GetGspFirmwareMode() (bool, bool, nvml.Return)
- func (mock *Device) GetGspFirmwareModeCalls() []struct{}
- func (mock *Device) GetGspFirmwareVersion() (string, nvml.Return)
- func (mock *Device) GetGspFirmwareVersionCalls() []struct{}
- func (mock *Device) GetHostVgpuMode() (nvml.HostVgpuMode, nvml.Return)
- func (mock *Device) GetHostVgpuModeCalls() []struct{}
- func (mock *Device) GetIndex() (int, nvml.Return)
- func (mock *Device) GetIndexCalls() []struct{}
- func (mock *Device) GetInforomConfigurationChecksum() (uint32, nvml.Return)
- func (mock *Device) GetInforomConfigurationChecksumCalls() []struct{}
- func (mock *Device) GetInforomImageVersion() (string, nvml.Return)
- func (mock *Device) GetInforomImageVersionCalls() []struct{}
- func (mock *Device) GetInforomVersion(inforomObject nvml.InforomObject) (string, nvml.Return)
- func (mock *Device) GetInforomVersionCalls() []struct{ ... }
- func (mock *Device) GetIrqNum() (int, nvml.Return)
- func (mock *Device) GetIrqNumCalls() []struct{}
- func (mock *Device) GetJpgUtilization() (uint32, uint32, nvml.Return)
- func (mock *Device) GetJpgUtilizationCalls() []struct{}
- func (mock *Device) GetLastBBXFlushTime() (uint64, uint, nvml.Return)
- func (mock *Device) GetLastBBXFlushTimeCalls() []struct{}
- func (mock *Device) GetMPSComputeRunningProcesses() ([]nvml.ProcessInfo, nvml.Return)
- func (mock *Device) GetMPSComputeRunningProcessesCalls() []struct{}
- func (mock *Device) GetMaxClockInfo(clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Device) GetMaxClockInfoCalls() []struct{ ... }
- func (mock *Device) GetMaxCustomerBoostClock(clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Device) GetMaxCustomerBoostClockCalls() []struct{ ... }
- func (mock *Device) GetMaxMigDeviceCount() (int, nvml.Return)
- func (mock *Device) GetMaxMigDeviceCountCalls() []struct{}
- func (mock *Device) GetMaxPcieLinkGeneration() (int, nvml.Return)
- func (mock *Device) GetMaxPcieLinkGenerationCalls() []struct{}
- func (mock *Device) GetMaxPcieLinkWidth() (int, nvml.Return)
- func (mock *Device) GetMaxPcieLinkWidthCalls() []struct{}
- func (mock *Device) GetMemClkMinMaxVfOffset() (int, int, nvml.Return)
- func (mock *Device) GetMemClkMinMaxVfOffsetCalls() []struct{}
- func (mock *Device) GetMemClkVfOffset() (int, nvml.Return)
- func (mock *Device) GetMemClkVfOffsetCalls() []struct{}
- func (mock *Device) GetMemoryAffinity(n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)
- func (mock *Device) GetMemoryAffinityCalls() []struct{ ... }
- func (mock *Device) GetMemoryBusWidth() (uint32, nvml.Return)
- func (mock *Device) GetMemoryBusWidthCalls() []struct{}
- func (mock *Device) GetMemoryErrorCounter(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType, ...) (uint64, nvml.Return)
- func (mock *Device) GetMemoryErrorCounterCalls() []struct{ ... }
- func (mock *Device) GetMemoryInfo() (nvml.Memory, nvml.Return)
- func (mock *Device) GetMemoryInfoCalls() []struct{}
- func (mock *Device) GetMemoryInfo_v2() (nvml.Memory_v2, nvml.Return)
- func (mock *Device) GetMemoryInfo_v2Calls() []struct{}
- func (mock *Device) GetMigDeviceHandleByIndex(n int) (nvml.Device, nvml.Return)
- func (mock *Device) GetMigDeviceHandleByIndexCalls() []struct{ ... }
- func (mock *Device) GetMigMode() (int, int, nvml.Return)
- func (mock *Device) GetMigModeCalls() []struct{}
- func (mock *Device) GetMinMaxClockOfPState(clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return)
- func (mock *Device) GetMinMaxClockOfPStateCalls() []struct{ ... }
- func (mock *Device) GetMinMaxFanSpeed() (int, int, nvml.Return)
- func (mock *Device) GetMinMaxFanSpeedCalls() []struct{}
- func (mock *Device) GetMinorNumber() (int, nvml.Return)
- func (mock *Device) GetMinorNumberCalls() []struct{}
- func (mock *Device) GetModuleId() (int, nvml.Return)
- func (mock *Device) GetModuleIdCalls() []struct{}
- func (mock *Device) GetMultiGpuBoard() (int, nvml.Return)
- func (mock *Device) GetMultiGpuBoardCalls() []struct{}
- func (mock *Device) GetName() (string, nvml.Return)
- func (mock *Device) GetNameCalls() []struct{}
- func (mock *Device) GetNumFans() (int, nvml.Return)
- func (mock *Device) GetNumFansCalls() []struct{}
- func (mock *Device) GetNumGpuCores() (int, nvml.Return)
- func (mock *Device) GetNumGpuCoresCalls() []struct{}
- func (mock *Device) GetNumaNodeId() (int, nvml.Return)
- func (mock *Device) GetNumaNodeIdCalls() []struct{}
- func (mock *Device) GetNvLinkCapability(n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return)
- func (mock *Device) GetNvLinkCapabilityCalls() []struct{ ... }
- func (mock *Device) GetNvLinkErrorCounter(n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return)
- func (mock *Device) GetNvLinkErrorCounterCalls() []struct{ ... }
- func (mock *Device) GetNvLinkRemoteDeviceType(n int) (nvml.IntNvLinkDeviceType, nvml.Return)
- func (mock *Device) GetNvLinkRemoteDeviceTypeCalls() []struct{ ... }
- func (mock *Device) GetNvLinkRemotePciInfo(n int) (nvml.PciInfo, nvml.Return)
- func (mock *Device) GetNvLinkRemotePciInfoCalls() []struct{ ... }
- func (mock *Device) GetNvLinkState(n int) (nvml.EnableState, nvml.Return)
- func (mock *Device) GetNvLinkStateCalls() []struct{ ... }
- func (mock *Device) GetNvLinkUtilizationControl(n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return)
- func (mock *Device) GetNvLinkUtilizationControlCalls() []struct{ ... }
- func (mock *Device) GetNvLinkUtilizationCounter(n1 int, n2 int) (uint64, uint64, nvml.Return)
- func (mock *Device) GetNvLinkUtilizationCounterCalls() []struct{ ... }
- func (mock *Device) GetNvLinkVersion(n int) (uint32, nvml.Return)
- func (mock *Device) GetNvLinkVersionCalls() []struct{ ... }
- func (mock *Device) GetOfaUtilization() (uint32, uint32, nvml.Return)
- func (mock *Device) GetOfaUtilizationCalls() []struct{}
- func (mock *Device) GetP2PStatus(device nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return)
- func (mock *Device) GetP2PStatusCalls() []struct{ ... }
- func (mock *Device) GetPciInfo() (nvml.PciInfo, nvml.Return)
- func (mock *Device) GetPciInfoCalls() []struct{}
- func (mock *Device) GetPciInfoExt() (nvml.PciInfoExt, nvml.Return)
- func (mock *Device) GetPciInfoExtCalls() []struct{}
- func (mock *Device) GetPcieLinkMaxSpeed() (uint32, nvml.Return)
- func (mock *Device) GetPcieLinkMaxSpeedCalls() []struct{}
- func (mock *Device) GetPcieReplayCounter() (int, nvml.Return)
- func (mock *Device) GetPcieReplayCounterCalls() []struct{}
- func (mock *Device) GetPcieSpeed() (int, nvml.Return)
- func (mock *Device) GetPcieSpeedCalls() []struct{}
- func (mock *Device) GetPcieThroughput(pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return)
- func (mock *Device) GetPcieThroughputCalls() []struct{ ... }
- func (mock *Device) GetPerformanceState() (nvml.Pstates, nvml.Return)
- func (mock *Device) GetPerformanceStateCalls() []struct{}
- func (mock *Device) GetPersistenceMode() (nvml.EnableState, nvml.Return)
- func (mock *Device) GetPersistenceModeCalls() []struct{}
- func (mock *Device) GetPgpuMetadataString() (string, nvml.Return)
- func (mock *Device) GetPgpuMetadataStringCalls() []struct{}
- func (mock *Device) GetPowerManagementDefaultLimit() (uint32, nvml.Return)
- func (mock *Device) GetPowerManagementDefaultLimitCalls() []struct{}
- func (mock *Device) GetPowerManagementLimit() (uint32, nvml.Return)
- func (mock *Device) GetPowerManagementLimitCalls() []struct{}
- func (mock *Device) GetPowerManagementLimitConstraints() (uint32, uint32, nvml.Return)
- func (mock *Device) GetPowerManagementLimitConstraintsCalls() []struct{}
- func (mock *Device) GetPowerManagementMode() (nvml.EnableState, nvml.Return)
- func (mock *Device) GetPowerManagementModeCalls() []struct{}
- func (mock *Device) GetPowerSource() (nvml.PowerSource, nvml.Return)
- func (mock *Device) GetPowerSourceCalls() []struct{}
- func (mock *Device) GetPowerState() (nvml.Pstates, nvml.Return)
- func (mock *Device) GetPowerStateCalls() []struct{}
- func (mock *Device) GetPowerUsage() (uint32, nvml.Return)
- func (mock *Device) GetPowerUsageCalls() []struct{}
- func (mock *Device) GetProcessUtilization(v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return)
- func (mock *Device) GetProcessUtilizationCalls() []struct{ ... }
- func (mock *Device) GetProcessesUtilizationInfo() (nvml.ProcessesUtilizationInfo, nvml.Return)
- func (mock *Device) GetProcessesUtilizationInfoCalls() []struct{}
- func (mock *Device) GetRemappedRows() (int, int, bool, bool, nvml.Return)
- func (mock *Device) GetRemappedRowsCalls() []struct{}
- func (mock *Device) GetRetiredPages(pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return)
- func (mock *Device) GetRetiredPagesCalls() []struct{ ... }
- func (mock *Device) GetRetiredPagesPendingStatus() (nvml.EnableState, nvml.Return)
- func (mock *Device) GetRetiredPagesPendingStatusCalls() []struct{}
- func (mock *Device) GetRetiredPages_v2(pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return)
- func (mock *Device) GetRetiredPages_v2Calls() []struct{ ... }
- func (mock *Device) GetRowRemapperHistogram() (nvml.RowRemapperHistogramValues, nvml.Return)
- func (mock *Device) GetRowRemapperHistogramCalls() []struct{}
- func (mock *Device) GetRunningProcessDetailList() (nvml.ProcessDetailList, nvml.Return)
- func (mock *Device) GetRunningProcessDetailListCalls() []struct{}
- func (mock *Device) GetSamples(samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return)
- func (mock *Device) GetSamplesCalls() []struct{ ... }
- func (mock *Device) GetSerial() (string, nvml.Return)
- func (mock *Device) GetSerialCalls() []struct{}
- func (mock *Device) GetSramEccErrorStatus() (nvml.EccSramErrorStatus, nvml.Return)
- func (mock *Device) GetSramEccErrorStatusCalls() []struct{}
- func (mock *Device) GetSupportedClocksEventReasons() (uint64, nvml.Return)
- func (mock *Device) GetSupportedClocksEventReasonsCalls() []struct{}
- func (mock *Device) GetSupportedClocksThrottleReasons() (uint64, nvml.Return)
- func (mock *Device) GetSupportedClocksThrottleReasonsCalls() []struct{}
- func (mock *Device) GetSupportedEventTypes() (uint64, nvml.Return)
- func (mock *Device) GetSupportedEventTypesCalls() []struct{}
- func (mock *Device) GetSupportedGraphicsClocks(n int) (int, uint32, nvml.Return)
- func (mock *Device) GetSupportedGraphicsClocksCalls() []struct{ ... }
- func (mock *Device) GetSupportedMemoryClocks() (int, uint32, nvml.Return)
- func (mock *Device) GetSupportedMemoryClocksCalls() []struct{}
- func (mock *Device) GetSupportedPerformanceStates() ([]nvml.Pstates, nvml.Return)
- func (mock *Device) GetSupportedPerformanceStatesCalls() []struct{}
- func (mock *Device) GetSupportedVgpus() ([]nvml.VgpuTypeId, nvml.Return)
- func (mock *Device) GetSupportedVgpusCalls() []struct{}
- func (mock *Device) GetTargetFanSpeed(n int) (int, nvml.Return)
- func (mock *Device) GetTargetFanSpeedCalls() []struct{ ... }
- func (mock *Device) GetTemperature(temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return)
- func (mock *Device) GetTemperatureCalls() []struct{ ... }
- func (mock *Device) GetTemperatureThreshold(temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return)
- func (mock *Device) GetTemperatureThresholdCalls() []struct{ ... }
- func (mock *Device) GetThermalSettings(v uint32) (nvml.GpuThermalSettings, nvml.Return)
- func (mock *Device) GetThermalSettingsCalls() []struct{ ... }
- func (mock *Device) GetTopologyCommonAncestor(device nvml.Device) (nvml.GpuTopologyLevel, nvml.Return)
- func (mock *Device) GetTopologyCommonAncestorCalls() []struct{ ... }
- func (mock *Device) GetTopologyNearestGpus(gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return)
- func (mock *Device) GetTopologyNearestGpusCalls() []struct{ ... }
- func (mock *Device) GetTotalEccErrors(memoryErrorType nvml.MemoryErrorType, eccCounterType nvml.EccCounterType) (uint64, nvml.Return)
- func (mock *Device) GetTotalEccErrorsCalls() []struct{ ... }
- func (mock *Device) GetTotalEnergyConsumption() (uint64, nvml.Return)
- func (mock *Device) GetTotalEnergyConsumptionCalls() []struct{}
- func (mock *Device) GetUUID() (string, nvml.Return)
- func (mock *Device) GetUUIDCalls() []struct{}
- func (mock *Device) GetUtilizationRates() (nvml.Utilization, nvml.Return)
- func (mock *Device) GetUtilizationRatesCalls() []struct{}
- func (mock *Device) GetVbiosVersion() (string, nvml.Return)
- func (mock *Device) GetVbiosVersionCalls() []struct{}
- func (mock *Device) GetVgpuCapabilities(deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return)
- func (mock *Device) GetVgpuCapabilitiesCalls() []struct{ ... }
- func (mock *Device) GetVgpuHeterogeneousMode() (nvml.VgpuHeterogeneousMode, nvml.Return)
- func (mock *Device) GetVgpuHeterogeneousModeCalls() []struct{}
- func (mock *Device) GetVgpuInstancesUtilizationInfo() (nvml.VgpuInstancesUtilizationInfo, nvml.Return)
- func (mock *Device) GetVgpuInstancesUtilizationInfoCalls() []struct{}
- func (mock *Device) GetVgpuMetadata() (nvml.VgpuPgpuMetadata, nvml.Return)
- func (mock *Device) GetVgpuMetadataCalls() []struct{}
- func (mock *Device) GetVgpuProcessUtilization(v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return)
- func (mock *Device) GetVgpuProcessUtilizationCalls() []struct{ ... }
- func (mock *Device) GetVgpuProcessesUtilizationInfo() (nvml.VgpuProcessesUtilizationInfo, nvml.Return)
- func (mock *Device) GetVgpuProcessesUtilizationInfoCalls() []struct{}
- func (mock *Device) GetVgpuSchedulerCapabilities() (nvml.VgpuSchedulerCapabilities, nvml.Return)
- func (mock *Device) GetVgpuSchedulerCapabilitiesCalls() []struct{}
- func (mock *Device) GetVgpuSchedulerLog() (nvml.VgpuSchedulerLog, nvml.Return)
- func (mock *Device) GetVgpuSchedulerLogCalls() []struct{}
- func (mock *Device) GetVgpuSchedulerState() (nvml.VgpuSchedulerGetState, nvml.Return)
- func (mock *Device) GetVgpuSchedulerStateCalls() []struct{}
- func (mock *Device) GetVgpuTypeCreatablePlacements(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
- func (mock *Device) GetVgpuTypeCreatablePlacementsCalls() []struct{ ... }
- func (mock *Device) GetVgpuTypeSupportedPlacements(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
- func (mock *Device) GetVgpuTypeSupportedPlacementsCalls() []struct{ ... }
- func (mock *Device) GetVgpuUtilization(v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)
- func (mock *Device) GetVgpuUtilizationCalls() []struct{ ... }
- func (mock *Device) GetViolationStatus(perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return)
- func (mock *Device) GetViolationStatusCalls() []struct{ ... }
- func (mock *Device) GetVirtualizationMode() (nvml.GpuVirtualizationMode, nvml.Return)
- func (mock *Device) GetVirtualizationModeCalls() []struct{}
- func (mock *Device) GpmMigSampleGet(n int, gpmSample nvml.GpmSample) nvml.Return
- func (mock *Device) GpmMigSampleGetCalls() []struct{ ... }
- func (mock *Device) GpmQueryDeviceSupport() (nvml.GpmSupport, nvml.Return)
- func (mock *Device) GpmQueryDeviceSupportCalls() []struct{}
- func (mock *Device) GpmQueryDeviceSupportV() nvml.GpmSupportV
- func (mock *Device) GpmQueryDeviceSupportVCalls() []struct{}
- func (mock *Device) GpmQueryIfStreamingEnabled() (uint32, nvml.Return)
- func (mock *Device) GpmQueryIfStreamingEnabledCalls() []struct{}
- func (mock *Device) GpmSampleGet(gpmSample nvml.GpmSample) nvml.Return
- func (mock *Device) GpmSampleGetCalls() []struct{ ... }
- func (mock *Device) GpmSetStreamingEnabled(v uint32) nvml.Return
- func (mock *Device) GpmSetStreamingEnabledCalls() []struct{ ... }
- func (mock *Device) IsMigDeviceHandle() (bool, nvml.Return)
- func (mock *Device) IsMigDeviceHandleCalls() []struct{}
- func (mock *Device) OnSameBoard(device nvml.Device) (int, nvml.Return)
- func (mock *Device) OnSameBoardCalls() []struct{ ... }
- func (mock *Device) RegisterEvents(v uint64, eventSet nvml.EventSet) nvml.Return
- func (mock *Device) RegisterEventsCalls() []struct{ ... }
- func (mock *Device) ResetApplicationsClocks() nvml.Return
- func (mock *Device) ResetApplicationsClocksCalls() []struct{}
- func (mock *Device) ResetGpuLockedClocks() nvml.Return
- func (mock *Device) ResetGpuLockedClocksCalls() []struct{}
- func (mock *Device) ResetMemoryLockedClocks() nvml.Return
- func (mock *Device) ResetMemoryLockedClocksCalls() []struct{}
- func (mock *Device) ResetNvLinkErrorCounters(n int) nvml.Return
- func (mock *Device) ResetNvLinkErrorCountersCalls() []struct{ ... }
- func (mock *Device) ResetNvLinkUtilizationCounter(n1 int, n2 int) nvml.Return
- func (mock *Device) ResetNvLinkUtilizationCounterCalls() []struct{ ... }
- func (mock *Device) SetAPIRestriction(restrictedAPI nvml.RestrictedAPI, enableState nvml.EnableState) nvml.Return
- func (mock *Device) SetAPIRestrictionCalls() []struct{ ... }
- func (mock *Device) SetAccountingMode(enableState nvml.EnableState) nvml.Return
- func (mock *Device) SetAccountingModeCalls() []struct{ ... }
- func (mock *Device) SetApplicationsClocks(v1 uint32, v2 uint32) nvml.Return
- func (mock *Device) SetApplicationsClocksCalls() []struct{ ... }
- func (mock *Device) SetAutoBoostedClocksEnabled(enableState nvml.EnableState) nvml.Return
- func (mock *Device) SetAutoBoostedClocksEnabledCalls() []struct{ ... }
- func (mock *Device) SetComputeMode(computeMode nvml.ComputeMode) nvml.Return
- func (mock *Device) SetComputeModeCalls() []struct{ ... }
- func (mock *Device) SetConfComputeUnprotectedMemSize(v uint64) nvml.Return
- func (mock *Device) SetConfComputeUnprotectedMemSizeCalls() []struct{ ... }
- func (mock *Device) SetCpuAffinity() nvml.Return
- func (mock *Device) SetCpuAffinityCalls() []struct{}
- func (mock *Device) SetDefaultAutoBoostedClocksEnabled(enableState nvml.EnableState, v uint32) nvml.Return
- func (mock *Device) SetDefaultAutoBoostedClocksEnabledCalls() []struct{ ... }
- func (mock *Device) SetDefaultFanSpeed_v2(n int) nvml.Return
- func (mock *Device) SetDefaultFanSpeed_v2Calls() []struct{ ... }
- func (mock *Device) SetDriverModel(driverModel nvml.DriverModel, v uint32) nvml.Return
- func (mock *Device) SetDriverModelCalls() []struct{ ... }
- func (mock *Device) SetEccMode(enableState nvml.EnableState) nvml.Return
- func (mock *Device) SetEccModeCalls() []struct{ ... }
- func (mock *Device) SetFanControlPolicy(n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return
- func (mock *Device) SetFanControlPolicyCalls() []struct{ ... }
- func (mock *Device) SetFanSpeed_v2(n1 int, n2 int) nvml.Return
- func (mock *Device) SetFanSpeed_v2Calls() []struct{ ... }
- func (mock *Device) SetGpcClkVfOffset(n int) nvml.Return
- func (mock *Device) SetGpcClkVfOffsetCalls() []struct{ ... }
- func (mock *Device) SetGpuLockedClocks(v1 uint32, v2 uint32) nvml.Return
- func (mock *Device) SetGpuLockedClocksCalls() []struct{ ... }
- func (mock *Device) SetGpuOperationMode(gpuOperationMode nvml.GpuOperationMode) nvml.Return
- func (mock *Device) SetGpuOperationModeCalls() []struct{ ... }
- func (mock *Device) SetMemClkVfOffset(n int) nvml.Return
- func (mock *Device) SetMemClkVfOffsetCalls() []struct{ ... }
- func (mock *Device) SetMemoryLockedClocks(v1 uint32, v2 uint32) nvml.Return
- func (mock *Device) SetMemoryLockedClocksCalls() []struct{ ... }
- func (mock *Device) SetMigMode(n int) (nvml.Return, nvml.Return)
- func (mock *Device) SetMigModeCalls() []struct{ ... }
- func (mock *Device) SetNvLinkDeviceLowPowerThreshold(nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return
- func (mock *Device) SetNvLinkDeviceLowPowerThresholdCalls() []struct{ ... }
- func (mock *Device) SetNvLinkUtilizationControl(n1 int, n2 int, nvLinkUtilizationControl *nvml.NvLinkUtilizationControl, ...) nvml.Return
- func (mock *Device) SetNvLinkUtilizationControlCalls() []struct{ ... }
- func (mock *Device) SetPersistenceMode(enableState nvml.EnableState) nvml.Return
- func (mock *Device) SetPersistenceModeCalls() []struct{ ... }
- func (mock *Device) SetPowerManagementLimit(v uint32) nvml.Return
- func (mock *Device) SetPowerManagementLimitCalls() []struct{ ... }
- func (mock *Device) SetPowerManagementLimit_v2(powerValue_v2 *nvml.PowerValue_v2) nvml.Return
- func (mock *Device) SetPowerManagementLimit_v2Calls() []struct{ ... }
- func (mock *Device) SetTemperatureThreshold(temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return
- func (mock *Device) SetTemperatureThresholdCalls() []struct{ ... }
- func (mock *Device) SetVgpuCapabilities(deviceVgpuCapability nvml.DeviceVgpuCapability, enableState nvml.EnableState) nvml.Return
- func (mock *Device) SetVgpuCapabilitiesCalls() []struct{ ... }
- func (mock *Device) SetVgpuHeterogeneousMode(vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) nvml.Return
- func (mock *Device) SetVgpuHeterogeneousModeCalls() []struct{ ... }
- func (mock *Device) SetVgpuSchedulerState(vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return
- func (mock *Device) SetVgpuSchedulerStateCalls() []struct{ ... }
- func (mock *Device) SetVirtualizationMode(gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return
- func (mock *Device) SetVirtualizationModeCalls() []struct{ ... }
- func (mock *Device) ValidateInforom() nvml.Return
- func (mock *Device) ValidateInforomCalls() []struct{}
- func (mock *Device) VgpuTypeGetMaxInstances(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)
- func (mock *Device) VgpuTypeGetMaxInstancesCalls() []struct{ ... }
- type EventSet
- type ExtendedInterface
- type GpmSample
- func (mock *GpmSample) Free() nvml.Return
- func (mock *GpmSample) FreeCalls() []struct{}
- func (mock *GpmSample) Get(device nvml.Device) nvml.Return
- func (mock *GpmSample) GetCalls() []struct{ ... }
- func (mock *GpmSample) MigGet(device nvml.Device, n int) nvml.Return
- func (mock *GpmSample) MigGetCalls() []struct{ ... }
- type GpuInstance
- func (mock *GpuInstance) CreateComputeInstance(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (nvml.ComputeInstance, nvml.Return)
- func (mock *GpuInstance) CreateComputeInstanceCalls() []struct{ ... }
- func (mock *GpuInstance) CreateComputeInstanceWithPlacement(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo, ...) (nvml.ComputeInstance, nvml.Return)
- func (mock *GpuInstance) CreateComputeInstanceWithPlacementCalls() []struct{ ... }
- func (mock *GpuInstance) Destroy() nvml.Return
- func (mock *GpuInstance) DestroyCalls() []struct{}
- func (mock *GpuInstance) GetComputeInstanceById(n int) (nvml.ComputeInstance, nvml.Return)
- func (mock *GpuInstance) GetComputeInstanceByIdCalls() []struct{ ... }
- func (mock *GpuInstance) GetComputeInstancePossiblePlacements(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstancePlacement, nvml.Return)
- func (mock *GpuInstance) GetComputeInstancePossiblePlacementsCalls() []struct{ ... }
- func (mock *GpuInstance) GetComputeInstanceProfileInfo(n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return)
- func (mock *GpuInstance) GetComputeInstanceProfileInfoCalls() []struct{ ... }
- func (mock *GpuInstance) GetComputeInstanceProfileInfoV(n1 int, n2 int) nvml.ComputeInstanceProfileInfoHandler
- func (mock *GpuInstance) GetComputeInstanceProfileInfoVCalls() []struct{ ... }
- func (mock *GpuInstance) GetComputeInstanceRemainingCapacity(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) (int, nvml.Return)
- func (mock *GpuInstance) GetComputeInstanceRemainingCapacityCalls() []struct{ ... }
- func (mock *GpuInstance) GetComputeInstances(computeInstanceProfileInfo *nvml.ComputeInstanceProfileInfo) ([]nvml.ComputeInstance, nvml.Return)
- func (mock *GpuInstance) GetComputeInstancesCalls() []struct{ ... }
- func (mock *GpuInstance) GetInfo() (nvml.GpuInstanceInfo, nvml.Return)
- func (mock *GpuInstance) GetInfoCalls() []struct{}
- type Interface
- func (mock *Interface) ComputeInstanceDestroy(computeInstance nvml.ComputeInstance) nvml.Return
- func (mock *Interface) ComputeInstanceDestroyCalls() []struct{ ... }
- func (mock *Interface) ComputeInstanceGetInfo(computeInstance nvml.ComputeInstance) (nvml.ComputeInstanceInfo, nvml.Return)
- func (mock *Interface) ComputeInstanceGetInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceClearAccountingPids(device nvml.Device) nvml.Return
- func (mock *Interface) DeviceClearAccountingPidsCalls() []struct{ ... }
- func (mock *Interface) DeviceClearCpuAffinity(device nvml.Device) nvml.Return
- func (mock *Interface) DeviceClearCpuAffinityCalls() []struct{ ... }
- func (mock *Interface) DeviceClearEccErrorCounts(device nvml.Device, eccCounterType nvml.EccCounterType) nvml.Return
- func (mock *Interface) DeviceClearEccErrorCountsCalls() []struct{ ... }
- func (mock *Interface) DeviceClearFieldValues(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return
- func (mock *Interface) DeviceClearFieldValuesCalls() []struct{ ... }
- func (mock *Interface) DeviceCreateGpuInstance(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (nvml.GpuInstance, nvml.Return)
- func (mock *Interface) DeviceCreateGpuInstanceCalls() []struct{ ... }
- func (mock *Interface) DeviceCreateGpuInstanceWithPlacement(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo, ...) (nvml.GpuInstance, nvml.Return)
- func (mock *Interface) DeviceCreateGpuInstanceWithPlacementCalls() []struct{ ... }
- func (mock *Interface) DeviceDiscoverGpus() (nvml.PciInfo, nvml.Return)
- func (mock *Interface) DeviceDiscoverGpusCalls() []struct{}
- func (mock *Interface) DeviceFreezeNvLinkUtilizationCounter(device nvml.Device, n1 int, n2 int, enableState nvml.EnableState) nvml.Return
- func (mock *Interface) DeviceFreezeNvLinkUtilizationCounterCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAPIRestriction(device nvml.Device, restrictedAPI nvml.RestrictedAPI) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetAPIRestrictionCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAccountingBufferSize(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetAccountingBufferSizeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAccountingMode(device nvml.Device) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetAccountingModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAccountingPids(device nvml.Device) ([]int, nvml.Return)
- func (mock *Interface) DeviceGetAccountingPidsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAccountingStats(device nvml.Device, v uint32) (nvml.AccountingStats, nvml.Return)
- func (mock *Interface) DeviceGetAccountingStatsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetActiveVgpus(device nvml.Device) ([]nvml.VgpuInstance, nvml.Return)
- func (mock *Interface) DeviceGetActiveVgpusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAdaptiveClockInfoStatus(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetAdaptiveClockInfoStatusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetApplicationsClock(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetApplicationsClockCalls() []struct{ ... }
- func (mock *Interface) DeviceGetArchitecture(device nvml.Device) (nvml.DeviceArchitecture, nvml.Return)
- func (mock *Interface) DeviceGetArchitectureCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAttributes(device nvml.Device) (nvml.DeviceAttributes, nvml.Return)
- func (mock *Interface) DeviceGetAttributesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetAutoBoostedClocksEnabled(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetAutoBoostedClocksEnabledCalls() []struct{ ... }
- func (mock *Interface) DeviceGetBAR1MemoryInfo(device nvml.Device) (nvml.BAR1Memory, nvml.Return)
- func (mock *Interface) DeviceGetBAR1MemoryInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetBoardId(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetBoardIdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetBoardPartNumber(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetBoardPartNumberCalls() []struct{ ... }
- func (mock *Interface) DeviceGetBrand(device nvml.Device) (nvml.BrandType, nvml.Return)
- func (mock *Interface) DeviceGetBrandCalls() []struct{ ... }
- func (mock *Interface) DeviceGetBridgeChipInfo(device nvml.Device) (nvml.BridgeChipHierarchy, nvml.Return)
- func (mock *Interface) DeviceGetBridgeChipInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetBusType(device nvml.Device) (nvml.BusType, nvml.Return)
- func (mock *Interface) DeviceGetBusTypeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetC2cModeInfoV(device nvml.Device) nvml.C2cModeInfoHandler
- func (mock *Interface) DeviceGetC2cModeInfoVCalls() []struct{ ... }
- func (mock *Interface) DeviceGetClkMonStatus(device nvml.Device) (nvml.ClkMonStatus, nvml.Return)
- func (mock *Interface) DeviceGetClkMonStatusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetClock(device nvml.Device, clockType nvml.ClockType, clockId nvml.ClockId) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetClockCalls() []struct{ ... }
- func (mock *Interface) DeviceGetClockInfo(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetClockInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetComputeInstanceId(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetComputeInstanceIdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetComputeMode(device nvml.Device) (nvml.ComputeMode, nvml.Return)
- func (mock *Interface) DeviceGetComputeModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetComputeRunningProcesses(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)
- func (mock *Interface) DeviceGetComputeRunningProcessesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetConfComputeGpuAttestationReport(device nvml.Device) (nvml.ConfComputeGpuAttestationReport, nvml.Return)
- func (mock *Interface) DeviceGetConfComputeGpuAttestationReportCalls() []struct{ ... }
- func (mock *Interface) DeviceGetConfComputeGpuCertificate(device nvml.Device) (nvml.ConfComputeGpuCertificate, nvml.Return)
- func (mock *Interface) DeviceGetConfComputeGpuCertificateCalls() []struct{ ... }
- func (mock *Interface) DeviceGetConfComputeMemSizeInfo(device nvml.Device) (nvml.ConfComputeMemSizeInfo, nvml.Return)
- func (mock *Interface) DeviceGetConfComputeMemSizeInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetConfComputeProtectedMemoryUsage(device nvml.Device) (nvml.Memory, nvml.Return)
- func (mock *Interface) DeviceGetConfComputeProtectedMemoryUsageCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCount() (int, nvml.Return)
- func (mock *Interface) DeviceGetCountCalls() []struct{}
- func (mock *Interface) DeviceGetCpuAffinity(device nvml.Device, n int) ([]uint, nvml.Return)
- func (mock *Interface) DeviceGetCpuAffinityCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCpuAffinityWithinScope(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)
- func (mock *Interface) DeviceGetCpuAffinityWithinScopeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCreatableVgpus(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return)
- func (mock *Interface) DeviceGetCreatableVgpusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCudaComputeCapability(device nvml.Device) (int, int, nvml.Return)
- func (mock *Interface) DeviceGetCudaComputeCapabilityCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCurrPcieLinkGeneration(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetCurrPcieLinkGenerationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCurrPcieLinkWidth(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetCurrPcieLinkWidthCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCurrentClocksEventReasons(device nvml.Device) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetCurrentClocksEventReasonsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetCurrentClocksThrottleReasons(device nvml.Device) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetCurrentClocksThrottleReasonsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDecoderUtilization(device nvml.Device) (uint32, uint32, nvml.Return)
- func (mock *Interface) DeviceGetDecoderUtilizationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDefaultApplicationsClock(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetDefaultApplicationsClockCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDefaultEccMode(device nvml.Device) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetDefaultEccModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDetailedEccErrors(device nvml.Device, memoryErrorType nvml.MemoryErrorType, ...) (nvml.EccErrorCounts, nvml.Return)
- func (mock *Interface) DeviceGetDetailedEccErrorsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDeviceHandleFromMigDeviceHandle(device nvml.Device) (nvml.Device, nvml.Return)
- func (mock *Interface) DeviceGetDeviceHandleFromMigDeviceHandleCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDisplayActive(device nvml.Device) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetDisplayActiveCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDisplayMode(device nvml.Device) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetDisplayModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDriverModel(device nvml.Device) (nvml.DriverModel, nvml.DriverModel, nvml.Return)
- func (mock *Interface) DeviceGetDriverModelCalls() []struct{ ... }
- func (mock *Interface) DeviceGetDynamicPstatesInfo(device nvml.Device) (nvml.GpuDynamicPstatesInfo, nvml.Return)
- func (mock *Interface) DeviceGetDynamicPstatesInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetEccMode(device nvml.Device) (nvml.EnableState, nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetEccModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetEncoderCapacity(device nvml.Device, encoderType nvml.EncoderType) (int, nvml.Return)
- func (mock *Interface) DeviceGetEncoderCapacityCalls() []struct{ ... }
- func (mock *Interface) DeviceGetEncoderSessions(device nvml.Device) ([]nvml.EncoderSessionInfo, nvml.Return)
- func (mock *Interface) DeviceGetEncoderSessionsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetEncoderStats(device nvml.Device) (int, uint32, uint32, nvml.Return)
- func (mock *Interface) DeviceGetEncoderStatsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetEncoderUtilization(device nvml.Device) (uint32, uint32, nvml.Return)
- func (mock *Interface) DeviceGetEncoderUtilizationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetEnforcedPowerLimit(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetEnforcedPowerLimitCalls() []struct{ ... }
- func (mock *Interface) DeviceGetFBCSessions(device nvml.Device) ([]nvml.FBCSessionInfo, nvml.Return)
- func (mock *Interface) DeviceGetFBCSessionsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetFBCStats(device nvml.Device) (nvml.FBCStats, nvml.Return)
- func (mock *Interface) DeviceGetFBCStatsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetFanControlPolicy_v2(device nvml.Device, n int) (nvml.FanControlPolicy, nvml.Return)
- func (mock *Interface) DeviceGetFanControlPolicy_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceGetFanSpeed(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetFanSpeedCalls() []struct{ ... }
- func (mock *Interface) DeviceGetFanSpeed_v2(device nvml.Device, n int) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetFanSpeed_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceGetFieldValues(device nvml.Device, fieldValues []nvml.FieldValue) nvml.Return
- func (mock *Interface) DeviceGetFieldValuesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpcClkMinMaxVfOffset(device nvml.Device) (int, int, nvml.Return)
- func (mock *Interface) DeviceGetGpcClkMinMaxVfOffsetCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpcClkVfOffset(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetGpcClkVfOffsetCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuFabricInfo(device nvml.Device) (nvml.GpuFabricInfo, nvml.Return)
- func (mock *Interface) DeviceGetGpuFabricInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuFabricInfoV(device nvml.Device) nvml.GpuFabricInfoHandler
- func (mock *Interface) DeviceGetGpuFabricInfoVCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuInstanceById(device nvml.Device, n int) (nvml.GpuInstance, nvml.Return)
- func (mock *Interface) DeviceGetGpuInstanceByIdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuInstanceId(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetGpuInstanceIdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuInstancePossiblePlacements(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstancePlacement, nvml.Return)
- func (mock *Interface) DeviceGetGpuInstancePossiblePlacementsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuInstanceProfileInfo(device nvml.Device, n int) (nvml.GpuInstanceProfileInfo, nvml.Return)
- func (mock *Interface) DeviceGetGpuInstanceProfileInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuInstanceProfileInfoV(device nvml.Device, n int) nvml.GpuInstanceProfileInfoHandler
- func (mock *Interface) DeviceGetGpuInstanceProfileInfoVCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuInstanceRemainingCapacity(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) (int, nvml.Return)
- func (mock *Interface) DeviceGetGpuInstanceRemainingCapacityCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuInstances(device nvml.Device, gpuInstanceProfileInfo *nvml.GpuInstanceProfileInfo) ([]nvml.GpuInstance, nvml.Return)
- func (mock *Interface) DeviceGetGpuInstancesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuMaxPcieLinkGeneration(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetGpuMaxPcieLinkGenerationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGpuOperationMode(device nvml.Device) (nvml.GpuOperationMode, nvml.GpuOperationMode, nvml.Return)
- func (mock *Interface) DeviceGetGpuOperationModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGraphicsRunningProcesses(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)
- func (mock *Interface) DeviceGetGraphicsRunningProcessesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGridLicensableFeatures(device nvml.Device) (nvml.GridLicensableFeatures, nvml.Return)
- func (mock *Interface) DeviceGetGridLicensableFeaturesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGspFirmwareMode(device nvml.Device) (bool, bool, nvml.Return)
- func (mock *Interface) DeviceGetGspFirmwareModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetGspFirmwareVersion(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetGspFirmwareVersionCalls() []struct{ ... }
- func (mock *Interface) DeviceGetHandleByIndex(n int) (nvml.Device, nvml.Return)
- func (mock *Interface) DeviceGetHandleByIndexCalls() []struct{ ... }
- func (mock *Interface) DeviceGetHandleByPciBusId(s string) (nvml.Device, nvml.Return)
- func (mock *Interface) DeviceGetHandleByPciBusIdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetHandleBySerial(s string) (nvml.Device, nvml.Return)
- func (mock *Interface) DeviceGetHandleBySerialCalls() []struct{ ... }
- func (mock *Interface) DeviceGetHandleByUUID(s string) (nvml.Device, nvml.Return)
- func (mock *Interface) DeviceGetHandleByUUIDCalls() []struct{ ... }
- func (mock *Interface) DeviceGetHostVgpuMode(device nvml.Device) (nvml.HostVgpuMode, nvml.Return)
- func (mock *Interface) DeviceGetHostVgpuModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetIndex(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetIndexCalls() []struct{ ... }
- func (mock *Interface) DeviceGetInforomConfigurationChecksum(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetInforomConfigurationChecksumCalls() []struct{ ... }
- func (mock *Interface) DeviceGetInforomImageVersion(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetInforomImageVersionCalls() []struct{ ... }
- func (mock *Interface) DeviceGetInforomVersion(device nvml.Device, inforomObject nvml.InforomObject) (string, nvml.Return)
- func (mock *Interface) DeviceGetInforomVersionCalls() []struct{ ... }
- func (mock *Interface) DeviceGetIrqNum(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetIrqNumCalls() []struct{ ... }
- func (mock *Interface) DeviceGetJpgUtilization(device nvml.Device) (uint32, uint32, nvml.Return)
- func (mock *Interface) DeviceGetJpgUtilizationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetLastBBXFlushTime(device nvml.Device) (uint64, uint, nvml.Return)
- func (mock *Interface) DeviceGetLastBBXFlushTimeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMPSComputeRunningProcesses(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)
- func (mock *Interface) DeviceGetMPSComputeRunningProcessesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMaxClockInfo(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetMaxClockInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMaxCustomerBoostClock(device nvml.Device, clockType nvml.ClockType) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetMaxCustomerBoostClockCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMaxMigDeviceCount(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetMaxMigDeviceCountCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMaxPcieLinkGeneration(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetMaxPcieLinkGenerationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMaxPcieLinkWidth(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetMaxPcieLinkWidthCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMemClkMinMaxVfOffset(device nvml.Device) (int, int, nvml.Return)
- func (mock *Interface) DeviceGetMemClkMinMaxVfOffsetCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMemClkVfOffset(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetMemClkVfOffsetCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMemoryAffinity(device nvml.Device, n int, affinityScope nvml.AffinityScope) ([]uint, nvml.Return)
- func (mock *Interface) DeviceGetMemoryAffinityCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMemoryBusWidth(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetMemoryBusWidthCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMemoryErrorCounter(device nvml.Device, memoryErrorType nvml.MemoryErrorType, ...) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetMemoryErrorCounterCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMemoryInfo(device nvml.Device) (nvml.Memory, nvml.Return)
- func (mock *Interface) DeviceGetMemoryInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMemoryInfo_v2(device nvml.Device) (nvml.Memory_v2, nvml.Return)
- func (mock *Interface) DeviceGetMemoryInfo_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceGetMigDeviceHandleByIndex(device nvml.Device, n int) (nvml.Device, nvml.Return)
- func (mock *Interface) DeviceGetMigDeviceHandleByIndexCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMigMode(device nvml.Device) (int, int, nvml.Return)
- func (mock *Interface) DeviceGetMigModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMinMaxClockOfPState(device nvml.Device, clockType nvml.ClockType, pstates nvml.Pstates) (uint32, uint32, nvml.Return)
- func (mock *Interface) DeviceGetMinMaxClockOfPStateCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMinMaxFanSpeed(device nvml.Device) (int, int, nvml.Return)
- func (mock *Interface) DeviceGetMinMaxFanSpeedCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMinorNumber(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetMinorNumberCalls() []struct{ ... }
- func (mock *Interface) DeviceGetModuleId(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetModuleIdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetMultiGpuBoard(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetMultiGpuBoardCalls() []struct{ ... }
- func (mock *Interface) DeviceGetName(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetNameCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNumFans(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetNumFansCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNumGpuCores(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetNumGpuCoresCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNumaNodeId(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetNumaNodeIdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkCapability(device nvml.Device, n int, nvLinkCapability nvml.NvLinkCapability) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkCapabilityCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkErrorCounter(device nvml.Device, n int, nvLinkErrorCounter nvml.NvLinkErrorCounter) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkErrorCounterCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkRemoteDeviceType(device nvml.Device, n int) (nvml.IntNvLinkDeviceType, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkRemoteDeviceTypeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkRemotePciInfo(device nvml.Device, n int) (nvml.PciInfo, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkRemotePciInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkState(device nvml.Device, n int) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkStateCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkUtilizationControl(device nvml.Device, n1 int, n2 int) (nvml.NvLinkUtilizationControl, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkUtilizationControlCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkUtilizationCounter(device nvml.Device, n1 int, n2 int) (uint64, uint64, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkUtilizationCounterCalls() []struct{ ... }
- func (mock *Interface) DeviceGetNvLinkVersion(device nvml.Device, n int) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetNvLinkVersionCalls() []struct{ ... }
- func (mock *Interface) DeviceGetOfaUtilization(device nvml.Device) (uint32, uint32, nvml.Return)
- func (mock *Interface) DeviceGetOfaUtilizationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetP2PStatus(device1 nvml.Device, device2 nvml.Device, gpuP2PCapsIndex nvml.GpuP2PCapsIndex) (nvml.GpuP2PStatus, nvml.Return)
- func (mock *Interface) DeviceGetP2PStatusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPciInfo(device nvml.Device) (nvml.PciInfo, nvml.Return)
- func (mock *Interface) DeviceGetPciInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPciInfoExt(device nvml.Device) (nvml.PciInfoExt, nvml.Return)
- func (mock *Interface) DeviceGetPciInfoExtCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPcieLinkMaxSpeed(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetPcieLinkMaxSpeedCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPcieReplayCounter(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetPcieReplayCounterCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPcieSpeed(device nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceGetPcieSpeedCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPcieThroughput(device nvml.Device, pcieUtilCounter nvml.PcieUtilCounter) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetPcieThroughputCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPerformanceState(device nvml.Device) (nvml.Pstates, nvml.Return)
- func (mock *Interface) DeviceGetPerformanceStateCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPersistenceMode(device nvml.Device) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetPersistenceModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPgpuMetadataString(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetPgpuMetadataStringCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPowerManagementDefaultLimit(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetPowerManagementDefaultLimitCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPowerManagementLimit(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetPowerManagementLimitCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPowerManagementLimitConstraints(device nvml.Device) (uint32, uint32, nvml.Return)
- func (mock *Interface) DeviceGetPowerManagementLimitConstraintsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPowerManagementMode(device nvml.Device) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetPowerManagementModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPowerSource(device nvml.Device) (nvml.PowerSource, nvml.Return)
- func (mock *Interface) DeviceGetPowerSourceCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPowerState(device nvml.Device) (nvml.Pstates, nvml.Return)
- func (mock *Interface) DeviceGetPowerStateCalls() []struct{ ... }
- func (mock *Interface) DeviceGetPowerUsage(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetPowerUsageCalls() []struct{ ... }
- func (mock *Interface) DeviceGetProcessUtilization(device nvml.Device, v uint64) ([]nvml.ProcessUtilizationSample, nvml.Return)
- func (mock *Interface) DeviceGetProcessUtilizationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetProcessesUtilizationInfo(device nvml.Device) (nvml.ProcessesUtilizationInfo, nvml.Return)
- func (mock *Interface) DeviceGetProcessesUtilizationInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetRemappedRows(device nvml.Device) (int, int, bool, bool, nvml.Return)
- func (mock *Interface) DeviceGetRemappedRowsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetRetiredPages(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, nvml.Return)
- func (mock *Interface) DeviceGetRetiredPagesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetRetiredPagesPendingStatus(device nvml.Device) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceGetRetiredPagesPendingStatusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetRetiredPages_v2(device nvml.Device, pageRetirementCause nvml.PageRetirementCause) ([]uint64, []uint64, nvml.Return)
- func (mock *Interface) DeviceGetRetiredPages_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceGetRowRemapperHistogram(device nvml.Device) (nvml.RowRemapperHistogramValues, nvml.Return)
- func (mock *Interface) DeviceGetRowRemapperHistogramCalls() []struct{ ... }
- func (mock *Interface) DeviceGetRunningProcessDetailList(device nvml.Device) (nvml.ProcessDetailList, nvml.Return)
- func (mock *Interface) DeviceGetRunningProcessDetailListCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSamples(device nvml.Device, samplingType nvml.SamplingType, v uint64) (nvml.ValueType, []nvml.Sample, nvml.Return)
- func (mock *Interface) DeviceGetSamplesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSerial(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetSerialCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSramEccErrorStatus(device nvml.Device) (nvml.EccSramErrorStatus, nvml.Return)
- func (mock *Interface) DeviceGetSramEccErrorStatusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSupportedClocksEventReasons(device nvml.Device) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetSupportedClocksEventReasonsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSupportedClocksThrottleReasons(device nvml.Device) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetSupportedClocksThrottleReasonsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSupportedEventTypes(device nvml.Device) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetSupportedEventTypesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSupportedGraphicsClocks(device nvml.Device, n int) (int, uint32, nvml.Return)
- func (mock *Interface) DeviceGetSupportedGraphicsClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSupportedMemoryClocks(device nvml.Device) (int, uint32, nvml.Return)
- func (mock *Interface) DeviceGetSupportedMemoryClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSupportedPerformanceStates(device nvml.Device) ([]nvml.Pstates, nvml.Return)
- func (mock *Interface) DeviceGetSupportedPerformanceStatesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetSupportedVgpus(device nvml.Device) ([]nvml.VgpuTypeId, nvml.Return)
- func (mock *Interface) DeviceGetSupportedVgpusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetTargetFanSpeed(device nvml.Device, n int) (int, nvml.Return)
- func (mock *Interface) DeviceGetTargetFanSpeedCalls() []struct{ ... }
- func (mock *Interface) DeviceGetTemperature(device nvml.Device, temperatureSensors nvml.TemperatureSensors) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetTemperatureCalls() []struct{ ... }
- func (mock *Interface) DeviceGetTemperatureThreshold(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds) (uint32, nvml.Return)
- func (mock *Interface) DeviceGetTemperatureThresholdCalls() []struct{ ... }
- func (mock *Interface) DeviceGetThermalSettings(device nvml.Device, v uint32) (nvml.GpuThermalSettings, nvml.Return)
- func (mock *Interface) DeviceGetThermalSettingsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetTopologyCommonAncestor(device1 nvml.Device, device2 nvml.Device) (nvml.GpuTopologyLevel, nvml.Return)
- func (mock *Interface) DeviceGetTopologyCommonAncestorCalls() []struct{ ... }
- func (mock *Interface) DeviceGetTopologyNearestGpus(device nvml.Device, gpuTopologyLevel nvml.GpuTopologyLevel) ([]nvml.Device, nvml.Return)
- func (mock *Interface) DeviceGetTopologyNearestGpusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetTotalEccErrors(device nvml.Device, memoryErrorType nvml.MemoryErrorType, ...) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetTotalEccErrorsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetTotalEnergyConsumption(device nvml.Device) (uint64, nvml.Return)
- func (mock *Interface) DeviceGetTotalEnergyConsumptionCalls() []struct{ ... }
- func (mock *Interface) DeviceGetUUID(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetUUIDCalls() []struct{ ... }
- func (mock *Interface) DeviceGetUtilizationRates(device nvml.Device) (nvml.Utilization, nvml.Return)
- func (mock *Interface) DeviceGetUtilizationRatesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVbiosVersion(device nvml.Device) (string, nvml.Return)
- func (mock *Interface) DeviceGetVbiosVersionCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuCapabilities(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability) (bool, nvml.Return)
- func (mock *Interface) DeviceGetVgpuCapabilitiesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuHeterogeneousMode(device nvml.Device) (nvml.VgpuHeterogeneousMode, nvml.Return)
- func (mock *Interface) DeviceGetVgpuHeterogeneousModeCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuInstancesUtilizationInfo(device nvml.Device) (nvml.VgpuInstancesUtilizationInfo, nvml.Return)
- func (mock *Interface) DeviceGetVgpuInstancesUtilizationInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuMetadata(device nvml.Device) (nvml.VgpuPgpuMetadata, nvml.Return)
- func (mock *Interface) DeviceGetVgpuMetadataCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuProcessUtilization(device nvml.Device, v uint64) ([]nvml.VgpuProcessUtilizationSample, nvml.Return)
- func (mock *Interface) DeviceGetVgpuProcessUtilizationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuProcessesUtilizationInfo(device nvml.Device) (nvml.VgpuProcessesUtilizationInfo, nvml.Return)
- func (mock *Interface) DeviceGetVgpuProcessesUtilizationInfoCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuSchedulerCapabilities(device nvml.Device) (nvml.VgpuSchedulerCapabilities, nvml.Return)
- func (mock *Interface) DeviceGetVgpuSchedulerCapabilitiesCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuSchedulerLog(device nvml.Device) (nvml.VgpuSchedulerLog, nvml.Return)
- func (mock *Interface) DeviceGetVgpuSchedulerLogCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuSchedulerState(device nvml.Device) (nvml.VgpuSchedulerGetState, nvml.Return)
- func (mock *Interface) DeviceGetVgpuSchedulerStateCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuTypeCreatablePlacements(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
- func (mock *Interface) DeviceGetVgpuTypeCreatablePlacementsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuTypeSupportedPlacements(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
- func (mock *Interface) DeviceGetVgpuTypeSupportedPlacementsCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVgpuUtilization(device nvml.Device, v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)
- func (mock *Interface) DeviceGetVgpuUtilizationCalls() []struct{ ... }
- func (mock *Interface) DeviceGetViolationStatus(device nvml.Device, perfPolicyType nvml.PerfPolicyType) (nvml.ViolationTime, nvml.Return)
- func (mock *Interface) DeviceGetViolationStatusCalls() []struct{ ... }
- func (mock *Interface) DeviceGetVirtualizationMode(device nvml.Device) (nvml.GpuVirtualizationMode, nvml.Return)
- func (mock *Interface) DeviceGetVirtualizationModeCalls() []struct{ ... }
- func (mock *Interface) DeviceIsMigDeviceHandle(device nvml.Device) (bool, nvml.Return)
- func (mock *Interface) DeviceIsMigDeviceHandleCalls() []struct{ ... }
- func (mock *Interface) DeviceModifyDrainState(pciInfo *nvml.PciInfo, enableState nvml.EnableState) nvml.Return
- func (mock *Interface) DeviceModifyDrainStateCalls() []struct{ ... }
- func (mock *Interface) DeviceOnSameBoard(device1 nvml.Device, device2 nvml.Device) (int, nvml.Return)
- func (mock *Interface) DeviceOnSameBoardCalls() []struct{ ... }
- func (mock *Interface) DeviceQueryDrainState(pciInfo *nvml.PciInfo) (nvml.EnableState, nvml.Return)
- func (mock *Interface) DeviceQueryDrainStateCalls() []struct{ ... }
- func (mock *Interface) DeviceRegisterEvents(device nvml.Device, v uint64, eventSet nvml.EventSet) nvml.Return
- func (mock *Interface) DeviceRegisterEventsCalls() []struct{ ... }
- func (mock *Interface) DeviceRemoveGpu(pciInfo *nvml.PciInfo) nvml.Return
- func (mock *Interface) DeviceRemoveGpuCalls() []struct{ ... }
- func (mock *Interface) DeviceRemoveGpu_v2(pciInfo *nvml.PciInfo, detachGpuState nvml.DetachGpuState, ...) nvml.Return
- func (mock *Interface) DeviceRemoveGpu_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceResetApplicationsClocks(device nvml.Device) nvml.Return
- func (mock *Interface) DeviceResetApplicationsClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceResetGpuLockedClocks(device nvml.Device) nvml.Return
- func (mock *Interface) DeviceResetGpuLockedClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceResetMemoryLockedClocks(device nvml.Device) nvml.Return
- func (mock *Interface) DeviceResetMemoryLockedClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceResetNvLinkErrorCounters(device nvml.Device, n int) nvml.Return
- func (mock *Interface) DeviceResetNvLinkErrorCountersCalls() []struct{ ... }
- func (mock *Interface) DeviceResetNvLinkUtilizationCounter(device nvml.Device, n1 int, n2 int) nvml.Return
- func (mock *Interface) DeviceResetNvLinkUtilizationCounterCalls() []struct{ ... }
- func (mock *Interface) DeviceSetAPIRestriction(device nvml.Device, restrictedAPI nvml.RestrictedAPI, ...) nvml.Return
- func (mock *Interface) DeviceSetAPIRestrictionCalls() []struct{ ... }
- func (mock *Interface) DeviceSetAccountingMode(device nvml.Device, enableState nvml.EnableState) nvml.Return
- func (mock *Interface) DeviceSetAccountingModeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetApplicationsClocks(device nvml.Device, v1 uint32, v2 uint32) nvml.Return
- func (mock *Interface) DeviceSetApplicationsClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceSetAutoBoostedClocksEnabled(device nvml.Device, enableState nvml.EnableState) nvml.Return
- func (mock *Interface) DeviceSetAutoBoostedClocksEnabledCalls() []struct{ ... }
- func (mock *Interface) DeviceSetComputeMode(device nvml.Device, computeMode nvml.ComputeMode) nvml.Return
- func (mock *Interface) DeviceSetComputeModeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetConfComputeUnprotectedMemSize(device nvml.Device, v uint64) nvml.Return
- func (mock *Interface) DeviceSetConfComputeUnprotectedMemSizeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetCpuAffinity(device nvml.Device) nvml.Return
- func (mock *Interface) DeviceSetCpuAffinityCalls() []struct{ ... }
- func (mock *Interface) DeviceSetDefaultAutoBoostedClocksEnabled(device nvml.Device, enableState nvml.EnableState, v uint32) nvml.Return
- func (mock *Interface) DeviceSetDefaultAutoBoostedClocksEnabledCalls() []struct{ ... }
- func (mock *Interface) DeviceSetDefaultFanSpeed_v2(device nvml.Device, n int) nvml.Return
- func (mock *Interface) DeviceSetDefaultFanSpeed_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceSetDriverModel(device nvml.Device, driverModel nvml.DriverModel, v uint32) nvml.Return
- func (mock *Interface) DeviceSetDriverModelCalls() []struct{ ... }
- func (mock *Interface) DeviceSetEccMode(device nvml.Device, enableState nvml.EnableState) nvml.Return
- func (mock *Interface) DeviceSetEccModeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetFanControlPolicy(device nvml.Device, n int, fanControlPolicy nvml.FanControlPolicy) nvml.Return
- func (mock *Interface) DeviceSetFanControlPolicyCalls() []struct{ ... }
- func (mock *Interface) DeviceSetFanSpeed_v2(device nvml.Device, n1 int, n2 int) nvml.Return
- func (mock *Interface) DeviceSetFanSpeed_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceSetGpcClkVfOffset(device nvml.Device, n int) nvml.Return
- func (mock *Interface) DeviceSetGpcClkVfOffsetCalls() []struct{ ... }
- func (mock *Interface) DeviceSetGpuLockedClocks(device nvml.Device, v1 uint32, v2 uint32) nvml.Return
- func (mock *Interface) DeviceSetGpuLockedClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceSetGpuOperationMode(device nvml.Device, gpuOperationMode nvml.GpuOperationMode) nvml.Return
- func (mock *Interface) DeviceSetGpuOperationModeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetMemClkVfOffset(device nvml.Device, n int) nvml.Return
- func (mock *Interface) DeviceSetMemClkVfOffsetCalls() []struct{ ... }
- func (mock *Interface) DeviceSetMemoryLockedClocks(device nvml.Device, v1 uint32, v2 uint32) nvml.Return
- func (mock *Interface) DeviceSetMemoryLockedClocksCalls() []struct{ ... }
- func (mock *Interface) DeviceSetMigMode(device nvml.Device, n int) (nvml.Return, nvml.Return)
- func (mock *Interface) DeviceSetMigModeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetNvLinkDeviceLowPowerThreshold(device nvml.Device, nvLinkPowerThres *nvml.NvLinkPowerThres) nvml.Return
- func (mock *Interface) DeviceSetNvLinkDeviceLowPowerThresholdCalls() []struct{ ... }
- func (mock *Interface) DeviceSetNvLinkUtilizationControl(device nvml.Device, n1 int, n2 int, ...) nvml.Return
- func (mock *Interface) DeviceSetNvLinkUtilizationControlCalls() []struct{ ... }
- func (mock *Interface) DeviceSetPersistenceMode(device nvml.Device, enableState nvml.EnableState) nvml.Return
- func (mock *Interface) DeviceSetPersistenceModeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetPowerManagementLimit(device nvml.Device, v uint32) nvml.Return
- func (mock *Interface) DeviceSetPowerManagementLimitCalls() []struct{ ... }
- func (mock *Interface) DeviceSetPowerManagementLimit_v2(device nvml.Device, powerValue_v2 *nvml.PowerValue_v2) nvml.Return
- func (mock *Interface) DeviceSetPowerManagementLimit_v2Calls() []struct{ ... }
- func (mock *Interface) DeviceSetTemperatureThreshold(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return
- func (mock *Interface) DeviceSetTemperatureThresholdCalls() []struct{ ... }
- func (mock *Interface) DeviceSetVgpuCapabilities(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability, ...) nvml.Return
- func (mock *Interface) DeviceSetVgpuCapabilitiesCalls() []struct{ ... }
- func (mock *Interface) DeviceSetVgpuHeterogeneousMode(device nvml.Device, vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) nvml.Return
- func (mock *Interface) DeviceSetVgpuHeterogeneousModeCalls() []struct{ ... }
- func (mock *Interface) DeviceSetVgpuSchedulerState(device nvml.Device, vgpuSchedulerSetState *nvml.VgpuSchedulerSetState) nvml.Return
- func (mock *Interface) DeviceSetVgpuSchedulerStateCalls() []struct{ ... }
- func (mock *Interface) DeviceSetVirtualizationMode(device nvml.Device, gpuVirtualizationMode nvml.GpuVirtualizationMode) nvml.Return
- func (mock *Interface) DeviceSetVirtualizationModeCalls() []struct{ ... }
- func (mock *Interface) DeviceValidateInforom(device nvml.Device) nvml.Return
- func (mock *Interface) DeviceValidateInforomCalls() []struct{ ... }
- func (mock *Interface) ErrorString(returnMoqParam nvml.Return) string
- func (mock *Interface) ErrorStringCalls() []struct{ ... }
- func (mock *Interface) EventSetCreate() (nvml.EventSet, nvml.Return)
- func (mock *Interface) EventSetCreateCalls() []struct{}
- func (mock *Interface) EventSetFree(eventSet nvml.EventSet) nvml.Return
- func (mock *Interface) EventSetFreeCalls() []struct{ ... }
- func (mock *Interface) EventSetWait(eventSet nvml.EventSet, v uint32) (nvml.EventData, nvml.Return)
- func (mock *Interface) EventSetWaitCalls() []struct{ ... }
- func (mock *Interface) Extensions() nvml.ExtendedInterface
- func (mock *Interface) ExtensionsCalls() []struct{}
- func (mock *Interface) GetExcludedDeviceCount() (int, nvml.Return)
- func (mock *Interface) GetExcludedDeviceCountCalls() []struct{}
- func (mock *Interface) GetExcludedDeviceInfoByIndex(n int) (nvml.ExcludedDeviceInfo, nvml.Return)
- func (mock *Interface) GetExcludedDeviceInfoByIndexCalls() []struct{ ... }
- func (mock *Interface) GetVgpuCompatibility(vgpuMetadata *nvml.VgpuMetadata, vgpuPgpuMetadata *nvml.VgpuPgpuMetadata) (nvml.VgpuPgpuCompatibility, nvml.Return)
- func (mock *Interface) GetVgpuCompatibilityCalls() []struct{ ... }
- func (mock *Interface) GetVgpuDriverCapabilities(vgpuDriverCapability nvml.VgpuDriverCapability) (bool, nvml.Return)
- func (mock *Interface) GetVgpuDriverCapabilitiesCalls() []struct{ ... }
- func (mock *Interface) GetVgpuVersion() (nvml.VgpuVersion, nvml.VgpuVersion, nvml.Return)
- func (mock *Interface) GetVgpuVersionCalls() []struct{}
- func (mock *Interface) GpmMetricsGet(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.Return
- func (mock *Interface) GpmMetricsGetCalls() []struct{ ... }
- func (mock *Interface) GpmMetricsGetV(gpmMetricsGetType *nvml.GpmMetricsGetType) nvml.GpmMetricsGetVType
- func (mock *Interface) GpmMetricsGetVCalls() []struct{ ... }
- func (mock *Interface) GpmMigSampleGet(device nvml.Device, n int, gpmSample nvml.GpmSample) nvml.Return
- func (mock *Interface) GpmMigSampleGetCalls() []struct{ ... }
- func (mock *Interface) GpmQueryDeviceSupport(device nvml.Device) (nvml.GpmSupport, nvml.Return)
- func (mock *Interface) GpmQueryDeviceSupportCalls() []struct{ ... }
- func (mock *Interface) GpmQueryDeviceSupportV(device nvml.Device) nvml.GpmSupportV
- func (mock *Interface) GpmQueryDeviceSupportVCalls() []struct{ ... }
- func (mock *Interface) GpmQueryIfStreamingEnabled(device nvml.Device) (uint32, nvml.Return)
- func (mock *Interface) GpmQueryIfStreamingEnabledCalls() []struct{ ... }
- func (mock *Interface) GpmSampleAlloc() (nvml.GpmSample, nvml.Return)
- func (mock *Interface) GpmSampleAllocCalls() []struct{}
- func (mock *Interface) GpmSampleFree(gpmSample nvml.GpmSample) nvml.Return
- func (mock *Interface) GpmSampleFreeCalls() []struct{ ... }
- func (mock *Interface) GpmSampleGet(device nvml.Device, gpmSample nvml.GpmSample) nvml.Return
- func (mock *Interface) GpmSampleGetCalls() []struct{ ... }
- func (mock *Interface) GpmSetStreamingEnabled(device nvml.Device, v uint32) nvml.Return
- func (mock *Interface) GpmSetStreamingEnabledCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceCreateComputeInstance(gpuInstance nvml.GpuInstance, ...) (nvml.ComputeInstance, nvml.Return)
- func (mock *Interface) GpuInstanceCreateComputeInstanceCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceCreateComputeInstanceWithPlacement(gpuInstance nvml.GpuInstance, ...) (nvml.ComputeInstance, nvml.Return)
- func (mock *Interface) GpuInstanceCreateComputeInstanceWithPlacementCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceDestroy(gpuInstance nvml.GpuInstance) nvml.Return
- func (mock *Interface) GpuInstanceDestroyCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceGetComputeInstanceById(gpuInstance nvml.GpuInstance, n int) (nvml.ComputeInstance, nvml.Return)
- func (mock *Interface) GpuInstanceGetComputeInstanceByIdCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceGetComputeInstancePossiblePlacements(gpuInstance nvml.GpuInstance, ...) ([]nvml.ComputeInstancePlacement, nvml.Return)
- func (mock *Interface) GpuInstanceGetComputeInstancePossiblePlacementsCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfo(gpuInstance nvml.GpuInstance, n1 int, n2 int) (nvml.ComputeInstanceProfileInfo, nvml.Return)
- func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfoCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfoV(gpuInstance nvml.GpuInstance, n1 int, n2 int) nvml.ComputeInstanceProfileInfoHandler
- func (mock *Interface) GpuInstanceGetComputeInstanceProfileInfoVCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceGetComputeInstanceRemainingCapacity(gpuInstance nvml.GpuInstance, ...) (int, nvml.Return)
- func (mock *Interface) GpuInstanceGetComputeInstanceRemainingCapacityCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceGetComputeInstances(gpuInstance nvml.GpuInstance, ...) ([]nvml.ComputeInstance, nvml.Return)
- func (mock *Interface) GpuInstanceGetComputeInstancesCalls() []struct{ ... }
- func (mock *Interface) GpuInstanceGetInfo(gpuInstance nvml.GpuInstance) (nvml.GpuInstanceInfo, nvml.Return)
- func (mock *Interface) GpuInstanceGetInfoCalls() []struct{ ... }
- func (mock *Interface) Init() nvml.Return
- func (mock *Interface) InitCalls() []struct{}
- func (mock *Interface) InitWithFlags(v uint32) nvml.Return
- func (mock *Interface) InitWithFlagsCalls() []struct{ ... }
- func (mock *Interface) SetVgpuVersion(vgpuVersion *nvml.VgpuVersion) nvml.Return
- func (mock *Interface) SetVgpuVersionCalls() []struct{ ... }
- func (mock *Interface) Shutdown() nvml.Return
- func (mock *Interface) ShutdownCalls() []struct{}
- func (mock *Interface) SystemGetConfComputeCapabilities() (nvml.ConfComputeSystemCaps, nvml.Return)
- func (mock *Interface) SystemGetConfComputeCapabilitiesCalls() []struct{}
- func (mock *Interface) SystemGetConfComputeKeyRotationThresholdInfo() (nvml.ConfComputeGetKeyRotationThresholdInfo, nvml.Return)
- func (mock *Interface) SystemGetConfComputeKeyRotationThresholdInfoCalls() []struct{}
- func (mock *Interface) SystemGetConfComputeSettings() (nvml.SystemConfComputeSettings, nvml.Return)
- func (mock *Interface) SystemGetConfComputeSettingsCalls() []struct{}
- func (mock *Interface) SystemGetCudaDriverVersion() (int, nvml.Return)
- func (mock *Interface) SystemGetCudaDriverVersionCalls() []struct{}
- func (mock *Interface) SystemGetCudaDriverVersion_v2() (int, nvml.Return)
- func (mock *Interface) SystemGetCudaDriverVersion_v2Calls() []struct{}
- func (mock *Interface) SystemGetDriverVersion() (string, nvml.Return)
- func (mock *Interface) SystemGetDriverVersionCalls() []struct{}
- func (mock *Interface) SystemGetHicVersion() ([]nvml.HwbcEntry, nvml.Return)
- func (mock *Interface) SystemGetHicVersionCalls() []struct{}
- func (mock *Interface) SystemGetNVMLVersion() (string, nvml.Return)
- func (mock *Interface) SystemGetNVMLVersionCalls() []struct{}
- func (mock *Interface) SystemGetProcessName(n int) (string, nvml.Return)
- func (mock *Interface) SystemGetProcessNameCalls() []struct{ ... }
- func (mock *Interface) SystemGetTopologyGpuSet(n int) ([]nvml.Device, nvml.Return)
- func (mock *Interface) SystemGetTopologyGpuSetCalls() []struct{ ... }
- func (mock *Interface) SystemSetConfComputeKeyRotationThresholdInfo(...) nvml.Return
- func (mock *Interface) SystemSetConfComputeKeyRotationThresholdInfoCalls() []struct{ ... }
- func (mock *Interface) UnitGetCount() (int, nvml.Return)
- func (mock *Interface) UnitGetCountCalls() []struct{}
- func (mock *Interface) UnitGetDevices(unit nvml.Unit) ([]nvml.Device, nvml.Return)
- func (mock *Interface) UnitGetDevicesCalls() []struct{ ... }
- func (mock *Interface) UnitGetFanSpeedInfo(unit nvml.Unit) (nvml.UnitFanSpeeds, nvml.Return)
- func (mock *Interface) UnitGetFanSpeedInfoCalls() []struct{ ... }
- func (mock *Interface) UnitGetHandleByIndex(n int) (nvml.Unit, nvml.Return)
- func (mock *Interface) UnitGetHandleByIndexCalls() []struct{ ... }
- func (mock *Interface) UnitGetLedState(unit nvml.Unit) (nvml.LedState, nvml.Return)
- func (mock *Interface) UnitGetLedStateCalls() []struct{ ... }
- func (mock *Interface) UnitGetPsuInfo(unit nvml.Unit) (nvml.PSUInfo, nvml.Return)
- func (mock *Interface) UnitGetPsuInfoCalls() []struct{ ... }
- func (mock *Interface) UnitGetTemperature(unit nvml.Unit, n int) (uint32, nvml.Return)
- func (mock *Interface) UnitGetTemperatureCalls() []struct{ ... }
- func (mock *Interface) UnitGetUnitInfo(unit nvml.Unit) (nvml.UnitInfo, nvml.Return)
- func (mock *Interface) UnitGetUnitInfoCalls() []struct{ ... }
- func (mock *Interface) UnitSetLedState(unit nvml.Unit, ledColor nvml.LedColor) nvml.Return
- func (mock *Interface) UnitSetLedStateCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceClearAccountingPids(vgpuInstance nvml.VgpuInstance) nvml.Return
- func (mock *Interface) VgpuInstanceClearAccountingPidsCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetAccountingMode(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return)
- func (mock *Interface) VgpuInstanceGetAccountingModeCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetAccountingPids(vgpuInstance nvml.VgpuInstance) ([]int, nvml.Return)
- func (mock *Interface) VgpuInstanceGetAccountingPidsCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetAccountingStats(vgpuInstance nvml.VgpuInstance, n int) (nvml.AccountingStats, nvml.Return)
- func (mock *Interface) VgpuInstanceGetAccountingStatsCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetEccMode(vgpuInstance nvml.VgpuInstance) (nvml.EnableState, nvml.Return)
- func (mock *Interface) VgpuInstanceGetEccModeCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetEncoderCapacity(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)
- func (mock *Interface) VgpuInstanceGetEncoderCapacityCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetEncoderSessions(vgpuInstance nvml.VgpuInstance) (int, nvml.EncoderSessionInfo, nvml.Return)
- func (mock *Interface) VgpuInstanceGetEncoderSessionsCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetEncoderStats(vgpuInstance nvml.VgpuInstance) (int, uint32, uint32, nvml.Return)
- func (mock *Interface) VgpuInstanceGetEncoderStatsCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetFBCSessions(vgpuInstance nvml.VgpuInstance) (int, nvml.FBCSessionInfo, nvml.Return)
- func (mock *Interface) VgpuInstanceGetFBCSessionsCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetFBCStats(vgpuInstance nvml.VgpuInstance) (nvml.FBCStats, nvml.Return)
- func (mock *Interface) VgpuInstanceGetFBCStatsCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetFbUsage(vgpuInstance nvml.VgpuInstance) (uint64, nvml.Return)
- func (mock *Interface) VgpuInstanceGetFbUsageCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetFrameRateLimit(vgpuInstance nvml.VgpuInstance) (uint32, nvml.Return)
- func (mock *Interface) VgpuInstanceGetFrameRateLimitCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetGpuInstanceId(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)
- func (mock *Interface) VgpuInstanceGetGpuInstanceIdCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetGpuPciId(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)
- func (mock *Interface) VgpuInstanceGetGpuPciIdCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetLicenseInfo(vgpuInstance nvml.VgpuInstance) (nvml.VgpuLicenseInfo, nvml.Return)
- func (mock *Interface) VgpuInstanceGetLicenseInfoCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetLicenseStatus(vgpuInstance nvml.VgpuInstance) (int, nvml.Return)
- func (mock *Interface) VgpuInstanceGetLicenseStatusCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetMdevUUID(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)
- func (mock *Interface) VgpuInstanceGetMdevUUIDCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetMetadata(vgpuInstance nvml.VgpuInstance) (nvml.VgpuMetadata, nvml.Return)
- func (mock *Interface) VgpuInstanceGetMetadataCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetType(vgpuInstance nvml.VgpuInstance) (nvml.VgpuTypeId, nvml.Return)
- func (mock *Interface) VgpuInstanceGetTypeCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetUUID(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)
- func (mock *Interface) VgpuInstanceGetUUIDCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetVmDriverVersion(vgpuInstance nvml.VgpuInstance) (string, nvml.Return)
- func (mock *Interface) VgpuInstanceGetVmDriverVersionCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceGetVmID(vgpuInstance nvml.VgpuInstance) (string, nvml.VgpuVmIdType, nvml.Return)
- func (mock *Interface) VgpuInstanceGetVmIDCalls() []struct{ ... }
- func (mock *Interface) VgpuInstanceSetEncoderCapacity(vgpuInstance nvml.VgpuInstance, n int) nvml.Return
- func (mock *Interface) VgpuInstanceSetEncoderCapacityCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetCapabilities(vgpuTypeId nvml.VgpuTypeId, vgpuCapability nvml.VgpuCapability) (bool, nvml.Return)
- func (mock *Interface) VgpuTypeGetCapabilitiesCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetClass(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)
- func (mock *Interface) VgpuTypeGetClassCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetDeviceID(vgpuTypeId nvml.VgpuTypeId) (uint64, uint64, nvml.Return)
- func (mock *Interface) VgpuTypeGetDeviceIDCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetFrameRateLimit(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return)
- func (mock *Interface) VgpuTypeGetFrameRateLimitCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetFramebufferSize(vgpuTypeId nvml.VgpuTypeId) (uint64, nvml.Return)
- func (mock *Interface) VgpuTypeGetFramebufferSizeCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetGpuInstanceProfileId(vgpuTypeId nvml.VgpuTypeId) (uint32, nvml.Return)
- func (mock *Interface) VgpuTypeGetGpuInstanceProfileIdCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetLicense(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)
- func (mock *Interface) VgpuTypeGetLicenseCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetMaxInstances(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)
- func (mock *Interface) VgpuTypeGetMaxInstancesCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetMaxInstancesPerVm(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)
- func (mock *Interface) VgpuTypeGetMaxInstancesPerVmCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetName(vgpuTypeId nvml.VgpuTypeId) (string, nvml.Return)
- func (mock *Interface) VgpuTypeGetNameCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetNumDisplayHeads(vgpuTypeId nvml.VgpuTypeId) (int, nvml.Return)
- func (mock *Interface) VgpuTypeGetNumDisplayHeadsCalls() []struct{ ... }
- func (mock *Interface) VgpuTypeGetResolution(vgpuTypeId nvml.VgpuTypeId, n int) (uint32, uint32, nvml.Return)
- func (mock *Interface) VgpuTypeGetResolutionCalls() []struct{ ... }
- type Unit
- func (mock *Unit) GetDevices() ([]nvml.Device, nvml.Return)
- func (mock *Unit) GetDevicesCalls() []struct{}
- func (mock *Unit) GetFanSpeedInfo() (nvml.UnitFanSpeeds, nvml.Return)
- func (mock *Unit) GetFanSpeedInfoCalls() []struct{}
- func (mock *Unit) GetLedState() (nvml.LedState, nvml.Return)
- func (mock *Unit) GetLedStateCalls() []struct{}
- func (mock *Unit) GetPsuInfo() (nvml.PSUInfo, nvml.Return)
- func (mock *Unit) GetPsuInfoCalls() []struct{}
- func (mock *Unit) GetTemperature(n int) (uint32, nvml.Return)
- func (mock *Unit) GetTemperatureCalls() []struct{ ... }
- func (mock *Unit) GetUnitInfo() (nvml.UnitInfo, nvml.Return)
- func (mock *Unit) GetUnitInfoCalls() []struct{}
- func (mock *Unit) SetLedState(ledColor nvml.LedColor) nvml.Return
- func (mock *Unit) SetLedStateCalls() []struct{ ... }
- type VgpuInstance
- func (mock *VgpuInstance) ClearAccountingPids() nvml.Return
- func (mock *VgpuInstance) ClearAccountingPidsCalls() []struct{}
- func (mock *VgpuInstance) GetAccountingMode() (nvml.EnableState, nvml.Return)
- func (mock *VgpuInstance) GetAccountingModeCalls() []struct{}
- func (mock *VgpuInstance) GetAccountingPids() ([]int, nvml.Return)
- func (mock *VgpuInstance) GetAccountingPidsCalls() []struct{}
- func (mock *VgpuInstance) GetAccountingStats(n int) (nvml.AccountingStats, nvml.Return)
- func (mock *VgpuInstance) GetAccountingStatsCalls() []struct{ ... }
- func (mock *VgpuInstance) GetEccMode() (nvml.EnableState, nvml.Return)
- func (mock *VgpuInstance) GetEccModeCalls() []struct{}
- func (mock *VgpuInstance) GetEncoderCapacity() (int, nvml.Return)
- func (mock *VgpuInstance) GetEncoderCapacityCalls() []struct{}
- func (mock *VgpuInstance) GetEncoderSessions() (int, nvml.EncoderSessionInfo, nvml.Return)
- func (mock *VgpuInstance) GetEncoderSessionsCalls() []struct{}
- func (mock *VgpuInstance) GetEncoderStats() (int, uint32, uint32, nvml.Return)
- func (mock *VgpuInstance) GetEncoderStatsCalls() []struct{}
- func (mock *VgpuInstance) GetFBCSessions() (int, nvml.FBCSessionInfo, nvml.Return)
- func (mock *VgpuInstance) GetFBCSessionsCalls() []struct{}
- func (mock *VgpuInstance) GetFBCStats() (nvml.FBCStats, nvml.Return)
- func (mock *VgpuInstance) GetFBCStatsCalls() []struct{}
- func (mock *VgpuInstance) GetFbUsage() (uint64, nvml.Return)
- func (mock *VgpuInstance) GetFbUsageCalls() []struct{}
- func (mock *VgpuInstance) GetFrameRateLimit() (uint32, nvml.Return)
- func (mock *VgpuInstance) GetFrameRateLimitCalls() []struct{}
- func (mock *VgpuInstance) GetGpuInstanceId() (int, nvml.Return)
- func (mock *VgpuInstance) GetGpuInstanceIdCalls() []struct{}
- func (mock *VgpuInstance) GetGpuPciId() (string, nvml.Return)
- func (mock *VgpuInstance) GetGpuPciIdCalls() []struct{}
- func (mock *VgpuInstance) GetLicenseInfo() (nvml.VgpuLicenseInfo, nvml.Return)
- func (mock *VgpuInstance) GetLicenseInfoCalls() []struct{}
- func (mock *VgpuInstance) GetLicenseStatus() (int, nvml.Return)
- func (mock *VgpuInstance) GetLicenseStatusCalls() []struct{}
- func (mock *VgpuInstance) GetMdevUUID() (string, nvml.Return)
- func (mock *VgpuInstance) GetMdevUUIDCalls() []struct{}
- func (mock *VgpuInstance) GetMetadata() (nvml.VgpuMetadata, nvml.Return)
- func (mock *VgpuInstance) GetMetadataCalls() []struct{}
- func (mock *VgpuInstance) GetType() (nvml.VgpuTypeId, nvml.Return)
- func (mock *VgpuInstance) GetTypeCalls() []struct{}
- func (mock *VgpuInstance) GetUUID() (string, nvml.Return)
- func (mock *VgpuInstance) GetUUIDCalls() []struct{}
- func (mock *VgpuInstance) GetVmDriverVersion() (string, nvml.Return)
- func (mock *VgpuInstance) GetVmDriverVersionCalls() []struct{}
- func (mock *VgpuInstance) GetVmID() (string, nvml.VgpuVmIdType, nvml.Return)
- func (mock *VgpuInstance) GetVmIDCalls() []struct{}
- func (mock *VgpuInstance) SetEncoderCapacity(n int) nvml.Return
- func (mock *VgpuInstance) SetEncoderCapacityCalls() []struct{ ... }
- type VgpuTypeId
- func (mock *VgpuTypeId) GetCapabilities(vgpuCapability nvml.VgpuCapability) (bool, nvml.Return)
- func (mock *VgpuTypeId) GetCapabilitiesCalls() []struct{ ... }
- func (mock *VgpuTypeId) GetClass() (string, nvml.Return)
- func (mock *VgpuTypeId) GetClassCalls() []struct{}
- func (mock *VgpuTypeId) GetCreatablePlacements(device nvml.Device) (nvml.VgpuPlacementList, nvml.Return)
- func (mock *VgpuTypeId) GetCreatablePlacementsCalls() []struct{ ... }
- func (mock *VgpuTypeId) GetDeviceID() (uint64, uint64, nvml.Return)
- func (mock *VgpuTypeId) GetDeviceIDCalls() []struct{}
- func (mock *VgpuTypeId) GetFrameRateLimit() (uint32, nvml.Return)
- func (mock *VgpuTypeId) GetFrameRateLimitCalls() []struct{}
- func (mock *VgpuTypeId) GetFramebufferSize() (uint64, nvml.Return)
- func (mock *VgpuTypeId) GetFramebufferSizeCalls() []struct{}
- func (mock *VgpuTypeId) GetGpuInstanceProfileId() (uint32, nvml.Return)
- func (mock *VgpuTypeId) GetGpuInstanceProfileIdCalls() []struct{}
- func (mock *VgpuTypeId) GetLicense() (string, nvml.Return)
- func (mock *VgpuTypeId) GetLicenseCalls() []struct{}
- func (mock *VgpuTypeId) GetMaxInstances(device nvml.Device) (int, nvml.Return)
- func (mock *VgpuTypeId) GetMaxInstancesCalls() []struct{ ... }
- func (mock *VgpuTypeId) GetMaxInstancesPerVm() (int, nvml.Return)
- func (mock *VgpuTypeId) GetMaxInstancesPerVmCalls() []struct{}
- func (mock *VgpuTypeId) GetName() (string, nvml.Return)
- func (mock *VgpuTypeId) GetNameCalls() []struct{}
- func (mock *VgpuTypeId) GetNumDisplayHeads() (int, nvml.Return)
- func (mock *VgpuTypeId) GetNumDisplayHeadsCalls() []struct{}
- func (mock *VgpuTypeId) GetResolution(n int) (uint32, uint32, nvml.Return)
- func (mock *VgpuTypeId) GetResolutionCalls() []struct{ ... }
- func (mock *VgpuTypeId) GetSupportedPlacements(device nvml.Device) (nvml.VgpuPlacementList, nvml.Return)
- func (mock *VgpuTypeId) GetSupportedPlacementsCalls() []struct{ ... }
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 { // 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) // GetC2cModeInfoVFunc mocks the GetC2cModeInfoV method. GetC2cModeInfoVFunc func() nvml.C2cModeInfoHandler // 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) // GetConfComputeGpuAttestationReportFunc mocks the GetConfComputeGpuAttestationReport method. GetConfComputeGpuAttestationReportFunc func() (nvml.ConfComputeGpuAttestationReport, nvml.Return) // GetConfComputeGpuCertificateFunc mocks the GetConfComputeGpuCertificate method. GetConfComputeGpuCertificateFunc func() (nvml.ConfComputeGpuCertificate, nvml.Return) // GetConfComputeMemSizeInfoFunc mocks the GetConfComputeMemSizeInfo method. GetConfComputeMemSizeInfoFunc func() (nvml.ConfComputeMemSizeInfo, nvml.Return) // GetConfComputeProtectedMemoryUsageFunc mocks the GetConfComputeProtectedMemoryUsage method. GetConfComputeProtectedMemoryUsageFunc func() (nvml.Memory, 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) // GetCurrentClocksEventReasonsFunc mocks the GetCurrentClocksEventReasons method. GetCurrentClocksEventReasonsFunc func() (uint64, 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) // GetGpuFabricInfoVFunc mocks the GetGpuFabricInfoV method. GetGpuFabricInfoVFunc func() nvml.GpuFabricInfoHandler // 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.GpuInstanceProfileInfoHandler // 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) // GetJpgUtilizationFunc mocks the GetJpgUtilization method. GetJpgUtilizationFunc func() (uint32, uint32, nvml.Return) // GetLastBBXFlushTimeFunc mocks the GetLastBBXFlushTime method. GetLastBBXFlushTimeFunc func() (uint64, uint, 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) // GetModuleIdFunc mocks the GetModuleId method. GetModuleIdFunc 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) // GetNumaNodeIdFunc mocks the GetNumaNodeId method. GetNumaNodeIdFunc 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) // GetOfaUtilizationFunc mocks the GetOfaUtilization method. GetOfaUtilizationFunc func() (uint32, 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) // GetPciInfoExtFunc mocks the GetPciInfoExt method. GetPciInfoExtFunc func() (nvml.PciInfoExt, 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) // GetProcessesUtilizationInfoFunc mocks the GetProcessesUtilizationInfo method. GetProcessesUtilizationInfoFunc func() (nvml.ProcessesUtilizationInfo, 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) // GetRunningProcessDetailListFunc mocks the GetRunningProcessDetailList method. GetRunningProcessDetailListFunc func() (nvml.ProcessDetailList, 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) // GetSramEccErrorStatusFunc mocks the GetSramEccErrorStatus method. GetSramEccErrorStatusFunc func() (nvml.EccSramErrorStatus, nvml.Return) // GetSupportedClocksEventReasonsFunc mocks the GetSupportedClocksEventReasons method. GetSupportedClocksEventReasonsFunc func() (uint64, 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) // GetVgpuHeterogeneousModeFunc mocks the GetVgpuHeterogeneousMode method. GetVgpuHeterogeneousModeFunc func() (nvml.VgpuHeterogeneousMode, nvml.Return) // GetVgpuInstancesUtilizationInfoFunc mocks the GetVgpuInstancesUtilizationInfo method. GetVgpuInstancesUtilizationInfoFunc func() (nvml.VgpuInstancesUtilizationInfo, 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) // GetVgpuProcessesUtilizationInfoFunc mocks the GetVgpuProcessesUtilizationInfo method. GetVgpuProcessesUtilizationInfoFunc func() (nvml.VgpuProcessesUtilizationInfo, 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) // GetVgpuTypeCreatablePlacementsFunc mocks the GetVgpuTypeCreatablePlacements method. GetVgpuTypeCreatablePlacementsFunc func(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return) // GetVgpuTypeSupportedPlacementsFunc mocks the GetVgpuTypeSupportedPlacements method. GetVgpuTypeSupportedPlacementsFunc func(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, 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 // GpmQueryIfStreamingEnabledFunc mocks the GpmQueryIfStreamingEnabled method. GpmQueryIfStreamingEnabledFunc func() (uint32, nvml.Return) // GpmSampleGetFunc mocks the GpmSampleGet method. GpmSampleGetFunc func(gpmSample nvml.GpmSample) nvml.Return // GpmSetStreamingEnabledFunc mocks the GpmSetStreamingEnabled method. GpmSetStreamingEnabledFunc func(v uint32) 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 // SetConfComputeUnprotectedMemSizeFunc mocks the SetConfComputeUnprotectedMemSize method. SetConfComputeUnprotectedMemSizeFunc func(v uint64) 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 // SetPowerManagementLimit_v2Func mocks the SetPowerManagementLimit_v2 method. SetPowerManagementLimit_v2Func func(powerValue_v2 *nvml.PowerValue_v2) nvml.Return // SetTemperatureThresholdFunc mocks the SetTemperatureThreshold method. SetTemperatureThresholdFunc func(temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return // SetVgpuCapabilitiesFunc mocks the SetVgpuCapabilities method. SetVgpuCapabilitiesFunc func(deviceVgpuCapability nvml.DeviceVgpuCapability, enableState nvml.EnableState) nvml.Return // SetVgpuHeterogeneousModeFunc mocks the SetVgpuHeterogeneousMode method. SetVgpuHeterogeneousModeFunc func(vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) 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{ 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") }, GetC2cModeInfoVFunc: func() nvml.C2cModeInfoHandler { panic("mock out the GetC2cModeInfoV 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") }, GetConfComputeGpuAttestationReportFunc: func() (nvml.ConfComputeGpuAttestationReport, nvml.Return) { panic("mock out the GetConfComputeGpuAttestationReport method") }, GetConfComputeGpuCertificateFunc: func() (nvml.ConfComputeGpuCertificate, nvml.Return) { panic("mock out the GetConfComputeGpuCertificate method") }, GetConfComputeMemSizeInfoFunc: func() (nvml.ConfComputeMemSizeInfo, nvml.Return) { panic("mock out the GetConfComputeMemSizeInfo method") }, GetConfComputeProtectedMemoryUsageFunc: func() (nvml.Memory, nvml.Return) { panic("mock out the GetConfComputeProtectedMemoryUsage 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") }, GetCurrentClocksEventReasonsFunc: func() (uint64, nvml.Return) { panic("mock out the GetCurrentClocksEventReasons 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") }, GetGpuFabricInfoVFunc: func() nvml.GpuFabricInfoHandler { panic("mock out the GetGpuFabricInfoV 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.GpuInstanceProfileInfoHandler { 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") }, GetJpgUtilizationFunc: func() (uint32, uint32, nvml.Return) { panic("mock out the GetJpgUtilization method") }, GetLastBBXFlushTimeFunc: func() (uint64, uint, nvml.Return) { panic("mock out the GetLastBBXFlushTime 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") }, GetModuleIdFunc: func() (int, nvml.Return) { panic("mock out the GetModuleId 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") }, GetNumaNodeIdFunc: func() (int, nvml.Return) { panic("mock out the GetNumaNodeId 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") }, GetOfaUtilizationFunc: func() (uint32, uint32, nvml.Return) { panic("mock out the GetOfaUtilization 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") }, GetPciInfoExtFunc: func() (nvml.PciInfoExt, nvml.Return) { panic("mock out the GetPciInfoExt 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") }, GetProcessesUtilizationInfoFunc: func() (nvml.ProcessesUtilizationInfo, nvml.Return) { panic("mock out the GetProcessesUtilizationInfo 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") }, GetRunningProcessDetailListFunc: func() (nvml.ProcessDetailList, nvml.Return) { panic("mock out the GetRunningProcessDetailList 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") }, GetSramEccErrorStatusFunc: func() (nvml.EccSramErrorStatus, nvml.Return) { panic("mock out the GetSramEccErrorStatus method") }, GetSupportedClocksEventReasonsFunc: func() (uint64, nvml.Return) { panic("mock out the GetSupportedClocksEventReasons 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") }, GetVgpuHeterogeneousModeFunc: func() (nvml.VgpuHeterogeneousMode, nvml.Return) { panic("mock out the GetVgpuHeterogeneousMode method") }, GetVgpuInstancesUtilizationInfoFunc: func() (nvml.VgpuInstancesUtilizationInfo, nvml.Return) { panic("mock out the GetVgpuInstancesUtilizationInfo 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") }, GetVgpuProcessesUtilizationInfoFunc: func() (nvml.VgpuProcessesUtilizationInfo, nvml.Return) { panic("mock out the GetVgpuProcessesUtilizationInfo 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") }, GetVgpuTypeCreatablePlacementsFunc: func(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return) { panic("mock out the GetVgpuTypeCreatablePlacements method") }, GetVgpuTypeSupportedPlacementsFunc: func(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return) { panic("mock out the GetVgpuTypeSupportedPlacements 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") }, GpmQueryIfStreamingEnabledFunc: func() (uint32, nvml.Return) { panic("mock out the GpmQueryIfStreamingEnabled method") }, GpmSampleGetFunc: func(gpmSample nvml.GpmSample) nvml.Return { panic("mock out the GpmSampleGet method") }, GpmSetStreamingEnabledFunc: func(v uint32) nvml.Return { panic("mock out the GpmSetStreamingEnabled 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") }, SetConfComputeUnprotectedMemSizeFunc: func(v uint64) nvml.Return { panic("mock out the SetConfComputeUnprotectedMemSize 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") }, SetPowerManagementLimit_v2Func: func(powerValue_v2 *nvml.PowerValue_v2) nvml.Return { panic("mock out the SetPowerManagementLimit_v2 method") }, SetTemperatureThresholdFunc: func(temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return { panic("mock out the SetTemperatureThreshold method") }, SetVgpuCapabilitiesFunc: func(deviceVgpuCapability nvml.DeviceVgpuCapability, enableState nvml.EnableState) nvml.Return { panic("mock out the SetVgpuCapabilities method") }, SetVgpuHeterogeneousModeFunc: func(vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) nvml.Return { panic("mock out the SetVgpuHeterogeneousMode 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) ClearAccountingPids ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetAccountingStats calls GetAccountingStatsFunc.
func (*Device) GetAccountingStatsCalls ¶
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 ¶
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 ¶
GetApplicationsClock calls GetApplicationsClockFunc.
func (*Device) GetApplicationsClockCalls ¶
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 ¶
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 ¶
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) 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 ¶
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) GetC2cModeInfoV ¶
func (mock *Device) GetC2cModeInfoV() nvml.C2cModeInfoHandler
GetC2cModeInfoV calls GetC2cModeInfoVFunc.
func (*Device) GetC2cModeInfoVCalls ¶
func (mock *Device) GetC2cModeInfoVCalls() []struct { }
GetC2cModeInfoVCalls gets all the calls that were made to GetC2cModeInfoV. Check the length with:
len(mockedDevice.GetC2cModeInfoVCalls())
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) GetClockCalls ¶
GetClockCalls gets all the calls that were made to GetClock. Check the length with:
len(mockedDevice.GetClockCalls())
func (*Device) GetClockInfo ¶
GetClockInfo calls GetClockInfoFunc.
func (*Device) GetClockInfoCalls ¶
GetClockInfoCalls gets all the calls that were made to GetClockInfo. Check the length with:
len(mockedDevice.GetClockInfoCalls())
func (*Device) GetComputeInstanceId ¶
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) GetConfComputeGpuAttestationReport ¶
func (mock *Device) GetConfComputeGpuAttestationReport() (nvml.ConfComputeGpuAttestationReport, nvml.Return)
GetConfComputeGpuAttestationReport calls GetConfComputeGpuAttestationReportFunc.
func (*Device) GetConfComputeGpuAttestationReportCalls ¶
func (mock *Device) GetConfComputeGpuAttestationReportCalls() []struct { }
GetConfComputeGpuAttestationReportCalls gets all the calls that were made to GetConfComputeGpuAttestationReport. Check the length with:
len(mockedDevice.GetConfComputeGpuAttestationReportCalls())
func (*Device) GetConfComputeGpuCertificate ¶
func (mock *Device) GetConfComputeGpuCertificate() (nvml.ConfComputeGpuCertificate, nvml.Return)
GetConfComputeGpuCertificate calls GetConfComputeGpuCertificateFunc.
func (*Device) GetConfComputeGpuCertificateCalls ¶
func (mock *Device) GetConfComputeGpuCertificateCalls() []struct { }
GetConfComputeGpuCertificateCalls gets all the calls that were made to GetConfComputeGpuCertificate. Check the length with:
len(mockedDevice.GetConfComputeGpuCertificateCalls())
func (*Device) GetConfComputeMemSizeInfo ¶
func (mock *Device) GetConfComputeMemSizeInfo() (nvml.ConfComputeMemSizeInfo, nvml.Return)
GetConfComputeMemSizeInfo calls GetConfComputeMemSizeInfoFunc.
func (*Device) GetConfComputeMemSizeInfoCalls ¶
func (mock *Device) GetConfComputeMemSizeInfoCalls() []struct { }
GetConfComputeMemSizeInfoCalls gets all the calls that were made to GetConfComputeMemSizeInfo. Check the length with:
len(mockedDevice.GetConfComputeMemSizeInfoCalls())
func (*Device) GetConfComputeProtectedMemoryUsage ¶
GetConfComputeProtectedMemoryUsage calls GetConfComputeProtectedMemoryUsageFunc.
func (*Device) GetConfComputeProtectedMemoryUsageCalls ¶
func (mock *Device) GetConfComputeProtectedMemoryUsageCalls() []struct { }
GetConfComputeProtectedMemoryUsageCalls gets all the calls that were made to GetConfComputeProtectedMemoryUsage. Check the length with:
len(mockedDevice.GetConfComputeProtectedMemoryUsageCalls())
func (*Device) GetCpuAffinity ¶
GetCpuAffinity calls GetCpuAffinityFunc.
func (*Device) GetCpuAffinityCalls ¶
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 ¶
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 ¶
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 ¶
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) GetCurrentClocksEventReasons ¶
GetCurrentClocksEventReasons calls GetCurrentClocksEventReasonsFunc.
func (*Device) GetCurrentClocksEventReasonsCalls ¶
func (mock *Device) GetCurrentClocksEventReasonsCalls() []struct { }
GetCurrentClocksEventReasonsCalls gets all the calls that were made to GetCurrentClocksEventReasons. Check the length with:
len(mockedDevice.GetCurrentClocksEventReasonsCalls())
func (*Device) GetCurrentClocksThrottleReasons ¶
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 ¶
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 ¶
GetDefaultApplicationsClock calls GetDefaultApplicationsClockFunc.
func (*Device) GetDefaultApplicationsClockCalls ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetFanControlPolicy_v2 calls GetFanControlPolicy_v2Func.
func (*Device) GetFanControlPolicy_v2Calls ¶
GetFanControlPolicy_v2Calls gets all the calls that were made to GetFanControlPolicy_v2. Check the length with:
len(mockedDevice.GetFanControlPolicy_v2Calls())
func (*Device) GetFanSpeed ¶
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 ¶
GetFanSpeed_v2 calls GetFanSpeed_v2Func.
func (*Device) GetFanSpeed_v2Calls ¶
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 ¶
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 ¶
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) GetGpuFabricInfoV ¶
func (mock *Device) GetGpuFabricInfoV() nvml.GpuFabricInfoHandler
GetGpuFabricInfoV calls GetGpuFabricInfoVFunc.
func (*Device) GetGpuFabricInfoVCalls ¶
func (mock *Device) GetGpuFabricInfoVCalls() []struct { }
GetGpuFabricInfoVCalls gets all the calls that were made to GetGpuFabricInfoV. Check the length with:
len(mockedDevice.GetGpuFabricInfoVCalls())
func (*Device) GetGpuInstanceById ¶
GetGpuInstanceById calls GetGpuInstanceByIdFunc.
func (*Device) GetGpuInstanceByIdCalls ¶
GetGpuInstanceByIdCalls gets all the calls that were made to GetGpuInstanceById. Check the length with:
len(mockedDevice.GetGpuInstanceByIdCalls())
func (*Device) GetGpuInstanceId ¶
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 ¶
GetGpuInstanceProfileInfo calls GetGpuInstanceProfileInfoFunc.
func (*Device) GetGpuInstanceProfileInfoCalls ¶
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.GpuInstanceProfileInfoHandler
GetGpuInstanceProfileInfoV calls GetGpuInstanceProfileInfoVFunc.
func (*Device) GetGpuInstanceProfileInfoVCalls ¶
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 ¶
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 ¶
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 ¶
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) 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 ¶
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 ¶
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 ¶
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) 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) GetJpgUtilization ¶
GetJpgUtilization calls GetJpgUtilizationFunc.
func (*Device) GetJpgUtilizationCalls ¶
func (mock *Device) GetJpgUtilizationCalls() []struct { }
GetJpgUtilizationCalls gets all the calls that were made to GetJpgUtilization. Check the length with:
len(mockedDevice.GetJpgUtilizationCalls())
func (*Device) GetLastBBXFlushTime ¶
GetLastBBXFlushTime calls GetLastBBXFlushTimeFunc.
func (*Device) GetLastBBXFlushTimeCalls ¶
func (mock *Device) GetLastBBXFlushTimeCalls() []struct { }
GetLastBBXFlushTimeCalls gets all the calls that were made to GetLastBBXFlushTime. Check the length with:
len(mockedDevice.GetLastBBXFlushTimeCalls())
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 ¶
GetMaxClockInfo calls GetMaxClockInfoFunc.
func (*Device) GetMaxClockInfoCalls ¶
GetMaxClockInfoCalls gets all the calls that were made to GetMaxClockInfo. Check the length with:
len(mockedDevice.GetMaxClockInfoCalls())
func (*Device) GetMaxCustomerBoostClock ¶
GetMaxCustomerBoostClock calls GetMaxCustomerBoostClockFunc.
func (*Device) GetMaxCustomerBoostClockCalls ¶
GetMaxCustomerBoostClockCalls gets all the calls that were made to GetMaxCustomerBoostClock. Check the length with:
len(mockedDevice.GetMaxCustomerBoostClockCalls())
func (*Device) GetMaxMigDeviceCount ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetMigDeviceHandleByIndex calls GetMigDeviceHandleByIndexFunc.
func (*Device) GetMigDeviceHandleByIndexCalls ¶
GetMigDeviceHandleByIndexCalls gets all the calls that were made to GetMigDeviceHandleByIndex. Check the length with:
len(mockedDevice.GetMigDeviceHandleByIndexCalls())
func (*Device) GetMigMode ¶
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 ¶
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 ¶
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) GetModuleId ¶
GetModuleId calls GetModuleIdFunc.
func (*Device) GetModuleIdCalls ¶
func (mock *Device) GetModuleIdCalls() []struct { }
GetModuleIdCalls gets all the calls that were made to GetModuleId. Check the length with:
len(mockedDevice.GetModuleIdCalls())
func (*Device) GetMultiGpuBoard ¶
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) 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 ¶
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 ¶
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) GetNumaNodeId ¶
GetNumaNodeId calls GetNumaNodeIdFunc.
func (*Device) GetNumaNodeIdCalls ¶
func (mock *Device) GetNumaNodeIdCalls() []struct { }
GetNumaNodeIdCalls gets all the calls that were made to GetNumaNodeId. Check the length with:
len(mockedDevice.GetNumaNodeIdCalls())
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 ¶
GetNvLinkRemoteDeviceType calls GetNvLinkRemoteDeviceTypeFunc.
func (*Device) GetNvLinkRemoteDeviceTypeCalls ¶
GetNvLinkRemoteDeviceTypeCalls gets all the calls that were made to GetNvLinkRemoteDeviceType. Check the length with:
len(mockedDevice.GetNvLinkRemoteDeviceTypeCalls())
func (*Device) GetNvLinkRemotePciInfo ¶
GetNvLinkRemotePciInfo calls GetNvLinkRemotePciInfoFunc.
func (*Device) GetNvLinkRemotePciInfoCalls ¶
GetNvLinkRemotePciInfoCalls gets all the calls that were made to GetNvLinkRemotePciInfo. Check the length with:
len(mockedDevice.GetNvLinkRemotePciInfoCalls())
func (*Device) GetNvLinkState ¶
GetNvLinkState calls GetNvLinkStateFunc.
func (*Device) GetNvLinkStateCalls ¶
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 ¶
GetNvLinkUtilizationControlCalls gets all the calls that were made to GetNvLinkUtilizationControl. Check the length with:
len(mockedDevice.GetNvLinkUtilizationControlCalls())
func (*Device) GetNvLinkUtilizationCounter ¶
GetNvLinkUtilizationCounter calls GetNvLinkUtilizationCounterFunc.
func (*Device) GetNvLinkUtilizationCounterCalls ¶
GetNvLinkUtilizationCounterCalls gets all the calls that were made to GetNvLinkUtilizationCounter. Check the length with:
len(mockedDevice.GetNvLinkUtilizationCounterCalls())
func (*Device) GetNvLinkVersion ¶
GetNvLinkVersion calls GetNvLinkVersionFunc.
func (*Device) GetNvLinkVersionCalls ¶
GetNvLinkVersionCalls gets all the calls that were made to GetNvLinkVersion. Check the length with:
len(mockedDevice.GetNvLinkVersionCalls())
func (*Device) GetOfaUtilization ¶
GetOfaUtilization calls GetOfaUtilizationFunc.
func (*Device) GetOfaUtilizationCalls ¶
func (mock *Device) GetOfaUtilizationCalls() []struct { }
GetOfaUtilizationCalls gets all the calls that were made to GetOfaUtilization. Check the length with:
len(mockedDevice.GetOfaUtilizationCalls())
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 ¶
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) GetPciInfoExt ¶
func (mock *Device) GetPciInfoExt() (nvml.PciInfoExt, nvml.Return)
GetPciInfoExt calls GetPciInfoExtFunc.
func (*Device) GetPciInfoExtCalls ¶
func (mock *Device) GetPciInfoExtCalls() []struct { }
GetPciInfoExtCalls gets all the calls that were made to GetPciInfoExt. Check the length with:
len(mockedDevice.GetPciInfoExtCalls())
func (*Device) GetPcieLinkMaxSpeed ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetProcessUtilization calls GetProcessUtilizationFunc.
func (*Device) GetProcessUtilizationCalls ¶
GetProcessUtilizationCalls gets all the calls that were made to GetProcessUtilization. Check the length with:
len(mockedDevice.GetProcessUtilizationCalls())
func (*Device) GetProcessesUtilizationInfo ¶
func (mock *Device) GetProcessesUtilizationInfo() (nvml.ProcessesUtilizationInfo, nvml.Return)
GetProcessesUtilizationInfo calls GetProcessesUtilizationInfoFunc.
func (*Device) GetProcessesUtilizationInfoCalls ¶
func (mock *Device) GetProcessesUtilizationInfoCalls() []struct { }
GetProcessesUtilizationInfoCalls gets all the calls that were made to GetProcessesUtilizationInfo. Check the length with:
len(mockedDevice.GetProcessesUtilizationInfoCalls())
func (*Device) GetRemappedRows ¶
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) GetRunningProcessDetailList ¶
func (mock *Device) GetRunningProcessDetailList() (nvml.ProcessDetailList, nvml.Return)
GetRunningProcessDetailList calls GetRunningProcessDetailListFunc.
func (*Device) GetRunningProcessDetailListCalls ¶
func (mock *Device) GetRunningProcessDetailListCalls() []struct { }
GetRunningProcessDetailListCalls gets all the calls that were made to GetRunningProcessDetailList. Check the length with:
len(mockedDevice.GetRunningProcessDetailListCalls())
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) 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) GetSramEccErrorStatus ¶
func (mock *Device) GetSramEccErrorStatus() (nvml.EccSramErrorStatus, nvml.Return)
GetSramEccErrorStatus calls GetSramEccErrorStatusFunc.
func (*Device) GetSramEccErrorStatusCalls ¶
func (mock *Device) GetSramEccErrorStatusCalls() []struct { }
GetSramEccErrorStatusCalls gets all the calls that were made to GetSramEccErrorStatus. Check the length with:
len(mockedDevice.GetSramEccErrorStatusCalls())
func (*Device) GetSupportedClocksEventReasons ¶
GetSupportedClocksEventReasons calls GetSupportedClocksEventReasonsFunc.
func (*Device) GetSupportedClocksEventReasonsCalls ¶
func (mock *Device) GetSupportedClocksEventReasonsCalls() []struct { }
GetSupportedClocksEventReasonsCalls gets all the calls that were made to GetSupportedClocksEventReasons. Check the length with:
len(mockedDevice.GetSupportedClocksEventReasonsCalls())
func (*Device) GetSupportedClocksThrottleReasons ¶
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 ¶
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 ¶
GetSupportedGraphicsClocks calls GetSupportedGraphicsClocksFunc.
func (*Device) GetSupportedGraphicsClocksCalls ¶
GetSupportedGraphicsClocksCalls gets all the calls that were made to GetSupportedGraphicsClocks. Check the length with:
len(mockedDevice.GetSupportedGraphicsClocksCalls())
func (*Device) GetSupportedMemoryClocks ¶
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 ¶
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 ¶
GetTargetFanSpeed calls GetTargetFanSpeedFunc.
func (*Device) GetTargetFanSpeedCalls ¶
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 ¶
GetThermalSettings calls GetThermalSettingsFunc.
func (*Device) GetThermalSettingsCalls ¶
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 ¶
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 ¶
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) 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 ¶
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) GetVgpuHeterogeneousMode ¶
func (mock *Device) GetVgpuHeterogeneousMode() (nvml.VgpuHeterogeneousMode, nvml.Return)
GetVgpuHeterogeneousMode calls GetVgpuHeterogeneousModeFunc.
func (*Device) GetVgpuHeterogeneousModeCalls ¶
func (mock *Device) GetVgpuHeterogeneousModeCalls() []struct { }
GetVgpuHeterogeneousModeCalls gets all the calls that were made to GetVgpuHeterogeneousMode. Check the length with:
len(mockedDevice.GetVgpuHeterogeneousModeCalls())
func (*Device) GetVgpuInstancesUtilizationInfo ¶
func (mock *Device) GetVgpuInstancesUtilizationInfo() (nvml.VgpuInstancesUtilizationInfo, nvml.Return)
GetVgpuInstancesUtilizationInfo calls GetVgpuInstancesUtilizationInfoFunc.
func (*Device) GetVgpuInstancesUtilizationInfoCalls ¶
func (mock *Device) GetVgpuInstancesUtilizationInfoCalls() []struct { }
GetVgpuInstancesUtilizationInfoCalls gets all the calls that were made to GetVgpuInstancesUtilizationInfo. Check the length with:
len(mockedDevice.GetVgpuInstancesUtilizationInfoCalls())
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 ¶
GetVgpuProcessUtilizationCalls gets all the calls that were made to GetVgpuProcessUtilization. Check the length with:
len(mockedDevice.GetVgpuProcessUtilizationCalls())
func (*Device) GetVgpuProcessesUtilizationInfo ¶
func (mock *Device) GetVgpuProcessesUtilizationInfo() (nvml.VgpuProcessesUtilizationInfo, nvml.Return)
GetVgpuProcessesUtilizationInfo calls GetVgpuProcessesUtilizationInfoFunc.
func (*Device) GetVgpuProcessesUtilizationInfoCalls ¶
func (mock *Device) GetVgpuProcessesUtilizationInfoCalls() []struct { }
GetVgpuProcessesUtilizationInfoCalls gets all the calls that were made to GetVgpuProcessesUtilizationInfo. Check the length with:
len(mockedDevice.GetVgpuProcessesUtilizationInfoCalls())
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) GetVgpuTypeCreatablePlacements ¶
func (mock *Device) GetVgpuTypeCreatablePlacements(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
GetVgpuTypeCreatablePlacements calls GetVgpuTypeCreatablePlacementsFunc.
func (*Device) GetVgpuTypeCreatablePlacementsCalls ¶
func (mock *Device) GetVgpuTypeCreatablePlacementsCalls() []struct { VgpuTypeId nvml.VgpuTypeId }
GetVgpuTypeCreatablePlacementsCalls gets all the calls that were made to GetVgpuTypeCreatablePlacements. Check the length with:
len(mockedDevice.GetVgpuTypeCreatablePlacementsCalls())
func (*Device) GetVgpuTypeSupportedPlacements ¶
func (mock *Device) GetVgpuTypeSupportedPlacements(vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
GetVgpuTypeSupportedPlacements calls GetVgpuTypeSupportedPlacementsFunc.
func (*Device) GetVgpuTypeSupportedPlacementsCalls ¶
func (mock *Device) GetVgpuTypeSupportedPlacementsCalls() []struct { VgpuTypeId nvml.VgpuTypeId }
GetVgpuTypeSupportedPlacementsCalls gets all the calls that were made to GetVgpuTypeSupportedPlacements. Check the length with:
len(mockedDevice.GetVgpuTypeSupportedPlacementsCalls())
func (*Device) GetVgpuUtilization ¶
func (mock *Device) GetVgpuUtilization(v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)
GetVgpuUtilization calls GetVgpuUtilizationFunc.
func (*Device) GetVgpuUtilizationCalls ¶
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 ¶
GpmMigSampleGet calls GpmMigSampleGetFunc.
func (*Device) GpmMigSampleGetCalls ¶
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) GpmQueryIfStreamingEnabled ¶
GpmQueryIfStreamingEnabled calls GpmQueryIfStreamingEnabledFunc.
func (*Device) GpmQueryIfStreamingEnabledCalls ¶
func (mock *Device) GpmQueryIfStreamingEnabledCalls() []struct { }
GpmQueryIfStreamingEnabledCalls gets all the calls that were made to GpmQueryIfStreamingEnabled. Check the length with:
len(mockedDevice.GpmQueryIfStreamingEnabledCalls())
func (*Device) GpmSampleGet ¶
GpmSampleGet calls GpmSampleGetFunc.
func (*Device) GpmSampleGetCalls ¶
GpmSampleGetCalls gets all the calls that were made to GpmSampleGet. Check the length with:
len(mockedDevice.GpmSampleGetCalls())
func (*Device) GpmSetStreamingEnabled ¶
GpmSetStreamingEnabled calls GpmSetStreamingEnabledFunc.
func (*Device) GpmSetStreamingEnabledCalls ¶
GpmSetStreamingEnabledCalls gets all the calls that were made to GpmSetStreamingEnabled. Check the length with:
len(mockedDevice.GpmSetStreamingEnabledCalls())
func (*Device) IsMigDeviceHandle ¶
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 ¶
OnSameBoard calls OnSameBoardFunc.
func (*Device) OnSameBoardCalls ¶
OnSameBoardCalls gets all the calls that were made to OnSameBoard. Check the length with:
len(mockedDevice.OnSameBoardCalls())
func (*Device) RegisterEvents ¶
RegisterEvents calls RegisterEventsFunc.
func (*Device) RegisterEventsCalls ¶
RegisterEventsCalls gets all the calls that were made to RegisterEvents. Check the length with:
len(mockedDevice.RegisterEventsCalls())
func (*Device) ResetApplicationsClocks ¶
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 ¶
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 ¶
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 ¶
ResetNvLinkErrorCounters calls ResetNvLinkErrorCountersFunc.
func (*Device) ResetNvLinkErrorCountersCalls ¶
ResetNvLinkErrorCountersCalls gets all the calls that were made to ResetNvLinkErrorCounters. Check the length with:
len(mockedDevice.ResetNvLinkErrorCountersCalls())
func (*Device) ResetNvLinkUtilizationCounter ¶
ResetNvLinkUtilizationCounter calls ResetNvLinkUtilizationCounterFunc.
func (*Device) ResetNvLinkUtilizationCounterCalls ¶
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 ¶
SetApplicationsClocks calls SetApplicationsClocksFunc.
func (*Device) SetApplicationsClocksCalls ¶
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) SetConfComputeUnprotectedMemSize ¶
SetConfComputeUnprotectedMemSize calls SetConfComputeUnprotectedMemSizeFunc.
func (*Device) SetConfComputeUnprotectedMemSizeCalls ¶
SetConfComputeUnprotectedMemSizeCalls gets all the calls that were made to SetConfComputeUnprotectedMemSize. Check the length with:
len(mockedDevice.SetConfComputeUnprotectedMemSizeCalls())
func (*Device) SetCpuAffinity ¶
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 ¶
SetDefaultFanSpeed_v2 calls SetDefaultFanSpeed_v2Func.
func (*Device) SetDefaultFanSpeed_v2Calls ¶
SetDefaultFanSpeed_v2Calls gets all the calls that were made to SetDefaultFanSpeed_v2. Check the length with:
len(mockedDevice.SetDefaultFanSpeed_v2Calls())
func (*Device) SetDriverModel ¶
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 ¶
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 ¶
SetFanSpeed_v2 calls SetFanSpeed_v2Func.
func (*Device) SetFanSpeed_v2Calls ¶
SetFanSpeed_v2Calls gets all the calls that were made to SetFanSpeed_v2. Check the length with:
len(mockedDevice.SetFanSpeed_v2Calls())
func (*Device) SetGpcClkVfOffset ¶
SetGpcClkVfOffset calls SetGpcClkVfOffsetFunc.
func (*Device) SetGpcClkVfOffsetCalls ¶
SetGpcClkVfOffsetCalls gets all the calls that were made to SetGpcClkVfOffset. Check the length with:
len(mockedDevice.SetGpcClkVfOffsetCalls())
func (*Device) SetGpuLockedClocks ¶
SetGpuLockedClocks calls SetGpuLockedClocksFunc.
func (*Device) SetGpuLockedClocksCalls ¶
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 ¶
SetMemClkVfOffset calls SetMemClkVfOffsetFunc.
func (*Device) SetMemClkVfOffsetCalls ¶
SetMemClkVfOffsetCalls gets all the calls that were made to SetMemClkVfOffset. Check the length with:
len(mockedDevice.SetMemClkVfOffsetCalls())
func (*Device) SetMemoryLockedClocks ¶
SetMemoryLockedClocks calls SetMemoryLockedClocksFunc.
func (*Device) SetMemoryLockedClocksCalls ¶
SetMemoryLockedClocksCalls gets all the calls that were made to SetMemoryLockedClocks. Check the length with:
len(mockedDevice.SetMemoryLockedClocksCalls())
func (*Device) SetMigMode ¶
SetMigMode calls SetMigModeFunc.
func (*Device) SetMigModeCalls ¶
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 ¶
SetPowerManagementLimit calls SetPowerManagementLimitFunc.
func (*Device) SetPowerManagementLimitCalls ¶
SetPowerManagementLimitCalls gets all the calls that were made to SetPowerManagementLimit. Check the length with:
len(mockedDevice.SetPowerManagementLimitCalls())
func (*Device) SetPowerManagementLimit_v2 ¶
func (mock *Device) SetPowerManagementLimit_v2(powerValue_v2 *nvml.PowerValue_v2) nvml.Return
SetPowerManagementLimit_v2 calls SetPowerManagementLimit_v2Func.
func (*Device) SetPowerManagementLimit_v2Calls ¶
func (mock *Device) SetPowerManagementLimit_v2Calls() []struct { PowerValue_v2 *nvml.PowerValue_v2 }
SetPowerManagementLimit_v2Calls gets all the calls that were made to SetPowerManagementLimit_v2. Check the length with:
len(mockedDevice.SetPowerManagementLimit_v2Calls())
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) SetVgpuCapabilities ¶
func (mock *Device) SetVgpuCapabilities(deviceVgpuCapability nvml.DeviceVgpuCapability, enableState nvml.EnableState) nvml.Return
SetVgpuCapabilities calls SetVgpuCapabilitiesFunc.
func (*Device) SetVgpuCapabilitiesCalls ¶
func (mock *Device) SetVgpuCapabilitiesCalls() []struct { DeviceVgpuCapability nvml.DeviceVgpuCapability EnableState nvml.EnableState }
SetVgpuCapabilitiesCalls gets all the calls that were made to SetVgpuCapabilities. Check the length with:
len(mockedDevice.SetVgpuCapabilitiesCalls())
func (*Device) SetVgpuHeterogeneousMode ¶
func (mock *Device) SetVgpuHeterogeneousMode(vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) nvml.Return
SetVgpuHeterogeneousMode calls SetVgpuHeterogeneousModeFunc.
func (*Device) SetVgpuHeterogeneousModeCalls ¶
func (mock *Device) SetVgpuHeterogeneousModeCalls() []struct { VgpuHeterogeneousMode nvml.VgpuHeterogeneousMode }
SetVgpuHeterogeneousModeCalls gets all the calls that were made to SetVgpuHeterogeneousMode. Check the length with:
len(mockedDevice.SetVgpuHeterogeneousModeCalls())
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 ¶
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 ¶
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) FreeCalls ¶
func (mock *EventSet) FreeCalls() []struct { }
FreeCalls gets all the calls that were made to Free. Check the length with:
len(mockedEventSet.FreeCalls())
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) 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) GetCalls ¶
GetCalls gets all the calls that were made to Get. Check the length with:
len(mockedGpmSample.GetCalls())
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.ComputeInstanceProfileInfoHandler // 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.ComputeInstanceProfileInfoHandler { 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.ComputeInstanceProfileInfoHandler
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) // 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) // DeviceGetC2cModeInfoVFunc mocks the DeviceGetC2cModeInfoV method. DeviceGetC2cModeInfoVFunc func(device nvml.Device) nvml.C2cModeInfoHandler // 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) // DeviceGetConfComputeGpuAttestationReportFunc mocks the DeviceGetConfComputeGpuAttestationReport method. DeviceGetConfComputeGpuAttestationReportFunc func(device nvml.Device) (nvml.ConfComputeGpuAttestationReport, nvml.Return) // DeviceGetConfComputeGpuCertificateFunc mocks the DeviceGetConfComputeGpuCertificate method. DeviceGetConfComputeGpuCertificateFunc func(device nvml.Device) (nvml.ConfComputeGpuCertificate, nvml.Return) // DeviceGetConfComputeMemSizeInfoFunc mocks the DeviceGetConfComputeMemSizeInfo method. DeviceGetConfComputeMemSizeInfoFunc func(device nvml.Device) (nvml.ConfComputeMemSizeInfo, nvml.Return) // DeviceGetConfComputeProtectedMemoryUsageFunc mocks the DeviceGetConfComputeProtectedMemoryUsage method. DeviceGetConfComputeProtectedMemoryUsageFunc func(device nvml.Device) (nvml.Memory, 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) // DeviceGetCurrentClocksEventReasonsFunc mocks the DeviceGetCurrentClocksEventReasons method. DeviceGetCurrentClocksEventReasonsFunc func(device nvml.Device) (uint64, 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) // DeviceGetGpuFabricInfoVFunc mocks the DeviceGetGpuFabricInfoV method. DeviceGetGpuFabricInfoVFunc func(device nvml.Device) nvml.GpuFabricInfoHandler // 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.GpuInstanceProfileInfoHandler // 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) // DeviceGetJpgUtilizationFunc mocks the DeviceGetJpgUtilization method. DeviceGetJpgUtilizationFunc func(device nvml.Device) (uint32, uint32, nvml.Return) // DeviceGetLastBBXFlushTimeFunc mocks the DeviceGetLastBBXFlushTime method. DeviceGetLastBBXFlushTimeFunc func(device nvml.Device) (uint64, uint, 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) // DeviceGetModuleIdFunc mocks the DeviceGetModuleId method. DeviceGetModuleIdFunc 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) // DeviceGetNumaNodeIdFunc mocks the DeviceGetNumaNodeId method. DeviceGetNumaNodeIdFunc 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) // DeviceGetOfaUtilizationFunc mocks the DeviceGetOfaUtilization method. DeviceGetOfaUtilizationFunc func(device nvml.Device) (uint32, 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) // DeviceGetPciInfoExtFunc mocks the DeviceGetPciInfoExt method. DeviceGetPciInfoExtFunc func(device nvml.Device) (nvml.PciInfoExt, 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) // DeviceGetProcessesUtilizationInfoFunc mocks the DeviceGetProcessesUtilizationInfo method. DeviceGetProcessesUtilizationInfoFunc func(device nvml.Device) (nvml.ProcessesUtilizationInfo, 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) // DeviceGetRunningProcessDetailListFunc mocks the DeviceGetRunningProcessDetailList method. DeviceGetRunningProcessDetailListFunc func(device nvml.Device) (nvml.ProcessDetailList, 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) // DeviceGetSramEccErrorStatusFunc mocks the DeviceGetSramEccErrorStatus method. DeviceGetSramEccErrorStatusFunc func(device nvml.Device) (nvml.EccSramErrorStatus, nvml.Return) // DeviceGetSupportedClocksEventReasonsFunc mocks the DeviceGetSupportedClocksEventReasons method. DeviceGetSupportedClocksEventReasonsFunc func(device nvml.Device) (uint64, 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) // DeviceGetVgpuHeterogeneousModeFunc mocks the DeviceGetVgpuHeterogeneousMode method. DeviceGetVgpuHeterogeneousModeFunc func(device nvml.Device) (nvml.VgpuHeterogeneousMode, nvml.Return) // DeviceGetVgpuInstancesUtilizationInfoFunc mocks the DeviceGetVgpuInstancesUtilizationInfo method. DeviceGetVgpuInstancesUtilizationInfoFunc func(device nvml.Device) (nvml.VgpuInstancesUtilizationInfo, 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) // DeviceGetVgpuProcessesUtilizationInfoFunc mocks the DeviceGetVgpuProcessesUtilizationInfo method. DeviceGetVgpuProcessesUtilizationInfoFunc func(device nvml.Device) (nvml.VgpuProcessesUtilizationInfo, 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) // DeviceGetVgpuTypeCreatablePlacementsFunc mocks the DeviceGetVgpuTypeCreatablePlacements method. DeviceGetVgpuTypeCreatablePlacementsFunc func(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return) // DeviceGetVgpuTypeSupportedPlacementsFunc mocks the DeviceGetVgpuTypeSupportedPlacements method. DeviceGetVgpuTypeSupportedPlacementsFunc func(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, 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 // DeviceSetConfComputeUnprotectedMemSizeFunc mocks the DeviceSetConfComputeUnprotectedMemSize method. DeviceSetConfComputeUnprotectedMemSizeFunc func(device nvml.Device, v uint64) 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 // DeviceSetPowerManagementLimit_v2Func mocks the DeviceSetPowerManagementLimit_v2 method. DeviceSetPowerManagementLimit_v2Func func(device nvml.Device, powerValue_v2 *nvml.PowerValue_v2) nvml.Return // DeviceSetTemperatureThresholdFunc mocks the DeviceSetTemperatureThreshold method. DeviceSetTemperatureThresholdFunc func(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return // DeviceSetVgpuCapabilitiesFunc mocks the DeviceSetVgpuCapabilities method. DeviceSetVgpuCapabilitiesFunc func(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability, enableState nvml.EnableState) nvml.Return // DeviceSetVgpuHeterogeneousModeFunc mocks the DeviceSetVgpuHeterogeneousMode method. DeviceSetVgpuHeterogeneousModeFunc func(device nvml.Device, vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) 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 // GpmQueryIfStreamingEnabledFunc mocks the GpmQueryIfStreamingEnabled method. GpmQueryIfStreamingEnabledFunc func(device nvml.Device) (uint32, nvml.Return) // 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 // GpmSetStreamingEnabledFunc mocks the GpmSetStreamingEnabled method. GpmSetStreamingEnabledFunc func(device nvml.Device, v uint32) 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.ComputeInstanceProfileInfoHandler // 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 // SystemGetConfComputeCapabilitiesFunc mocks the SystemGetConfComputeCapabilities method. SystemGetConfComputeCapabilitiesFunc func() (nvml.ConfComputeSystemCaps, nvml.Return) // SystemGetConfComputeKeyRotationThresholdInfoFunc mocks the SystemGetConfComputeKeyRotationThresholdInfo method. SystemGetConfComputeKeyRotationThresholdInfoFunc func() (nvml.ConfComputeGetKeyRotationThresholdInfo, nvml.Return) // SystemGetConfComputeSettingsFunc mocks the SystemGetConfComputeSettings method. SystemGetConfComputeSettingsFunc func() (nvml.SystemConfComputeSettings, 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) // SystemSetConfComputeKeyRotationThresholdInfoFunc mocks the SystemSetConfComputeKeyRotationThresholdInfo method. SystemSetConfComputeKeyRotationThresholdInfoFunc func(confComputeSetKeyRotationThresholdInfo nvml.ConfComputeSetKeyRotationThresholdInfo) 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") }, 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") }, DeviceGetC2cModeInfoVFunc: func(device nvml.Device) nvml.C2cModeInfoHandler { panic("mock out the DeviceGetC2cModeInfoV 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") }, DeviceGetConfComputeGpuAttestationReportFunc: func(device nvml.Device) (nvml.ConfComputeGpuAttestationReport, nvml.Return) { panic("mock out the DeviceGetConfComputeGpuAttestationReport method") }, DeviceGetConfComputeGpuCertificateFunc: func(device nvml.Device) (nvml.ConfComputeGpuCertificate, nvml.Return) { panic("mock out the DeviceGetConfComputeGpuCertificate method") }, DeviceGetConfComputeMemSizeInfoFunc: func(device nvml.Device) (nvml.ConfComputeMemSizeInfo, nvml.Return) { panic("mock out the DeviceGetConfComputeMemSizeInfo method") }, DeviceGetConfComputeProtectedMemoryUsageFunc: func(device nvml.Device) (nvml.Memory, nvml.Return) { panic("mock out the DeviceGetConfComputeProtectedMemoryUsage 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") }, DeviceGetCurrentClocksEventReasonsFunc: func(device nvml.Device) (uint64, nvml.Return) { panic("mock out the DeviceGetCurrentClocksEventReasons 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") }, DeviceGetGpuFabricInfoVFunc: func(device nvml.Device) nvml.GpuFabricInfoHandler { panic("mock out the DeviceGetGpuFabricInfoV 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.GpuInstanceProfileInfoHandler { 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") }, DeviceGetJpgUtilizationFunc: func(device nvml.Device) (uint32, uint32, nvml.Return) { panic("mock out the DeviceGetJpgUtilization method") }, DeviceGetLastBBXFlushTimeFunc: func(device nvml.Device) (uint64, uint, nvml.Return) { panic("mock out the DeviceGetLastBBXFlushTime 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") }, DeviceGetModuleIdFunc: func(device nvml.Device) (int, nvml.Return) { panic("mock out the DeviceGetModuleId 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") }, DeviceGetNumaNodeIdFunc: func(device nvml.Device) (int, nvml.Return) { panic("mock out the DeviceGetNumaNodeId 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") }, DeviceGetOfaUtilizationFunc: func(device nvml.Device) (uint32, uint32, nvml.Return) { panic("mock out the DeviceGetOfaUtilization 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") }, DeviceGetPciInfoExtFunc: func(device nvml.Device) (nvml.PciInfoExt, nvml.Return) { panic("mock out the DeviceGetPciInfoExt 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") }, DeviceGetProcessesUtilizationInfoFunc: func(device nvml.Device) (nvml.ProcessesUtilizationInfo, nvml.Return) { panic("mock out the DeviceGetProcessesUtilizationInfo 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") }, DeviceGetRunningProcessDetailListFunc: func(device nvml.Device) (nvml.ProcessDetailList, nvml.Return) { panic("mock out the DeviceGetRunningProcessDetailList 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") }, DeviceGetSramEccErrorStatusFunc: func(device nvml.Device) (nvml.EccSramErrorStatus, nvml.Return) { panic("mock out the DeviceGetSramEccErrorStatus method") }, DeviceGetSupportedClocksEventReasonsFunc: func(device nvml.Device) (uint64, nvml.Return) { panic("mock out the DeviceGetSupportedClocksEventReasons 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") }, DeviceGetVgpuHeterogeneousModeFunc: func(device nvml.Device) (nvml.VgpuHeterogeneousMode, nvml.Return) { panic("mock out the DeviceGetVgpuHeterogeneousMode method") }, DeviceGetVgpuInstancesUtilizationInfoFunc: func(device nvml.Device) (nvml.VgpuInstancesUtilizationInfo, nvml.Return) { panic("mock out the DeviceGetVgpuInstancesUtilizationInfo 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") }, DeviceGetVgpuProcessesUtilizationInfoFunc: func(device nvml.Device) (nvml.VgpuProcessesUtilizationInfo, nvml.Return) { panic("mock out the DeviceGetVgpuProcessesUtilizationInfo 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") }, DeviceGetVgpuTypeCreatablePlacementsFunc: func(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return) { panic("mock out the DeviceGetVgpuTypeCreatablePlacements method") }, DeviceGetVgpuTypeSupportedPlacementsFunc: func(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return) { panic("mock out the DeviceGetVgpuTypeSupportedPlacements 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") }, DeviceSetConfComputeUnprotectedMemSizeFunc: func(device nvml.Device, v uint64) nvml.Return { panic("mock out the DeviceSetConfComputeUnprotectedMemSize 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") }, DeviceSetPowerManagementLimit_v2Func: func(device nvml.Device, powerValue_v2 *nvml.PowerValue_v2) nvml.Return { panic("mock out the DeviceSetPowerManagementLimit_v2 method") }, DeviceSetTemperatureThresholdFunc: func(device nvml.Device, temperatureThresholds nvml.TemperatureThresholds, n int) nvml.Return { panic("mock out the DeviceSetTemperatureThreshold method") }, DeviceSetVgpuCapabilitiesFunc: func(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability, enableState nvml.EnableState) nvml.Return { panic("mock out the DeviceSetVgpuCapabilities method") }, DeviceSetVgpuHeterogeneousModeFunc: func(device nvml.Device, vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) nvml.Return { panic("mock out the DeviceSetVgpuHeterogeneousMode 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") }, GpmQueryIfStreamingEnabledFunc: func(device nvml.Device) (uint32, nvml.Return) { panic("mock out the GpmQueryIfStreamingEnabled 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") }, GpmSetStreamingEnabledFunc: func(device nvml.Device, v uint32) nvml.Return { panic("mock out the GpmSetStreamingEnabled 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.ComputeInstanceProfileInfoHandler { 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") }, SystemGetConfComputeCapabilitiesFunc: func() (nvml.ConfComputeSystemCaps, nvml.Return) { panic("mock out the SystemGetConfComputeCapabilities method") }, SystemGetConfComputeKeyRotationThresholdInfoFunc: func() (nvml.ConfComputeGetKeyRotationThresholdInfo, nvml.Return) { panic("mock out the SystemGetConfComputeKeyRotationThresholdInfo method") }, SystemGetConfComputeSettingsFunc: func() (nvml.SystemConfComputeSettings, nvml.Return) { panic("mock out the SystemGetConfComputeSettings 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") }, SystemSetConfComputeKeyRotationThresholdInfoFunc: func(confComputeSetKeyRotationThresholdInfo nvml.ConfComputeSetKeyRotationThresholdInfo) nvml.Return { panic("mock out the SystemSetConfComputeKeyRotationThresholdInfo 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) DeviceClearAccountingPids ¶
DeviceClearAccountingPids calls DeviceClearAccountingPidsFunc.
func (*Interface) DeviceClearAccountingPidsCalls ¶
DeviceClearAccountingPidsCalls gets all the calls that were made to DeviceClearAccountingPids. Check the length with:
len(mockedInterface.DeviceClearAccountingPidsCalls())
func (*Interface) DeviceClearCpuAffinity ¶
DeviceClearCpuAffinity calls DeviceClearCpuAffinityFunc.
func (*Interface) DeviceClearCpuAffinityCalls ¶
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 ¶
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 ¶
DeviceGetAccountingBufferSize calls DeviceGetAccountingBufferSizeFunc.
func (*Interface) DeviceGetAccountingBufferSizeCalls ¶
DeviceGetAccountingBufferSizeCalls gets all the calls that were made to DeviceGetAccountingBufferSize. Check the length with:
len(mockedInterface.DeviceGetAccountingBufferSizeCalls())
func (*Interface) DeviceGetAccountingMode ¶
DeviceGetAccountingMode calls DeviceGetAccountingModeFunc.
func (*Interface) DeviceGetAccountingModeCalls ¶
DeviceGetAccountingModeCalls gets all the calls that were made to DeviceGetAccountingMode. Check the length with:
len(mockedInterface.DeviceGetAccountingModeCalls())
func (*Interface) DeviceGetAccountingPids ¶
DeviceGetAccountingPids calls DeviceGetAccountingPidsFunc.
func (*Interface) DeviceGetAccountingPidsCalls ¶
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 ¶
DeviceGetAccountingStatsCalls gets all the calls that were made to DeviceGetAccountingStats. Check the length with:
len(mockedInterface.DeviceGetAccountingStatsCalls())
func (*Interface) DeviceGetActiveVgpus ¶
DeviceGetActiveVgpus calls DeviceGetActiveVgpusFunc.
func (*Interface) DeviceGetActiveVgpusCalls ¶
DeviceGetActiveVgpusCalls gets all the calls that were made to DeviceGetActiveVgpus. Check the length with:
len(mockedInterface.DeviceGetActiveVgpusCalls())
func (*Interface) DeviceGetAdaptiveClockInfoStatus ¶
DeviceGetAdaptiveClockInfoStatus calls DeviceGetAdaptiveClockInfoStatusFunc.
func (*Interface) DeviceGetAdaptiveClockInfoStatusCalls ¶
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 ¶
DeviceGetArchitectureCalls gets all the calls that were made to DeviceGetArchitecture. Check the length with:
len(mockedInterface.DeviceGetArchitectureCalls())
func (*Interface) DeviceGetAttributes ¶
DeviceGetAttributes calls DeviceGetAttributesFunc.
func (*Interface) DeviceGetAttributesCalls ¶
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 ¶
DeviceGetAutoBoostedClocksEnabledCalls gets all the calls that were made to DeviceGetAutoBoostedClocksEnabled. Check the length with:
len(mockedInterface.DeviceGetAutoBoostedClocksEnabledCalls())
func (*Interface) DeviceGetBAR1MemoryInfo ¶
DeviceGetBAR1MemoryInfo calls DeviceGetBAR1MemoryInfoFunc.
func (*Interface) DeviceGetBAR1MemoryInfoCalls ¶
DeviceGetBAR1MemoryInfoCalls gets all the calls that were made to DeviceGetBAR1MemoryInfo. Check the length with:
len(mockedInterface.DeviceGetBAR1MemoryInfoCalls())
func (*Interface) DeviceGetBoardId ¶
DeviceGetBoardId calls DeviceGetBoardIdFunc.
func (*Interface) DeviceGetBoardIdCalls ¶
DeviceGetBoardIdCalls gets all the calls that were made to DeviceGetBoardId. Check the length with:
len(mockedInterface.DeviceGetBoardIdCalls())
func (*Interface) DeviceGetBoardPartNumber ¶
DeviceGetBoardPartNumber calls DeviceGetBoardPartNumberFunc.
func (*Interface) DeviceGetBoardPartNumberCalls ¶
DeviceGetBoardPartNumberCalls gets all the calls that were made to DeviceGetBoardPartNumber. Check the length with:
len(mockedInterface.DeviceGetBoardPartNumberCalls())
func (*Interface) DeviceGetBrand ¶
DeviceGetBrand calls DeviceGetBrandFunc.
func (*Interface) DeviceGetBrandCalls ¶
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 ¶
DeviceGetBridgeChipInfoCalls gets all the calls that were made to DeviceGetBridgeChipInfo. Check the length with:
len(mockedInterface.DeviceGetBridgeChipInfoCalls())
func (*Interface) DeviceGetBusType ¶
DeviceGetBusType calls DeviceGetBusTypeFunc.
func (*Interface) DeviceGetBusTypeCalls ¶
DeviceGetBusTypeCalls gets all the calls that were made to DeviceGetBusType. Check the length with:
len(mockedInterface.DeviceGetBusTypeCalls())
func (*Interface) DeviceGetC2cModeInfoV ¶
func (mock *Interface) DeviceGetC2cModeInfoV(device nvml.Device) nvml.C2cModeInfoHandler
DeviceGetC2cModeInfoV calls DeviceGetC2cModeInfoVFunc.
func (*Interface) DeviceGetC2cModeInfoVCalls ¶
DeviceGetC2cModeInfoVCalls gets all the calls that were made to DeviceGetC2cModeInfoV. Check the length with:
len(mockedInterface.DeviceGetC2cModeInfoVCalls())
func (*Interface) DeviceGetClkMonStatus ¶
DeviceGetClkMonStatus calls DeviceGetClkMonStatusFunc.
func (*Interface) DeviceGetClkMonStatusCalls ¶
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 ¶
DeviceGetComputeInstanceId calls DeviceGetComputeInstanceIdFunc.
func (*Interface) DeviceGetComputeInstanceIdCalls ¶
DeviceGetComputeInstanceIdCalls gets all the calls that were made to DeviceGetComputeInstanceId. Check the length with:
len(mockedInterface.DeviceGetComputeInstanceIdCalls())
func (*Interface) DeviceGetComputeMode ¶
DeviceGetComputeMode calls DeviceGetComputeModeFunc.
func (*Interface) DeviceGetComputeModeCalls ¶
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 ¶
DeviceGetComputeRunningProcessesCalls gets all the calls that were made to DeviceGetComputeRunningProcesses. Check the length with:
len(mockedInterface.DeviceGetComputeRunningProcessesCalls())
func (*Interface) DeviceGetConfComputeGpuAttestationReport ¶
func (mock *Interface) DeviceGetConfComputeGpuAttestationReport(device nvml.Device) (nvml.ConfComputeGpuAttestationReport, nvml.Return)
DeviceGetConfComputeGpuAttestationReport calls DeviceGetConfComputeGpuAttestationReportFunc.
func (*Interface) DeviceGetConfComputeGpuAttestationReportCalls ¶
func (mock *Interface) DeviceGetConfComputeGpuAttestationReportCalls() []struct { Device nvml.Device }
DeviceGetConfComputeGpuAttestationReportCalls gets all the calls that were made to DeviceGetConfComputeGpuAttestationReport. Check the length with:
len(mockedInterface.DeviceGetConfComputeGpuAttestationReportCalls())
func (*Interface) DeviceGetConfComputeGpuCertificate ¶
func (mock *Interface) DeviceGetConfComputeGpuCertificate(device nvml.Device) (nvml.ConfComputeGpuCertificate, nvml.Return)
DeviceGetConfComputeGpuCertificate calls DeviceGetConfComputeGpuCertificateFunc.
func (*Interface) DeviceGetConfComputeGpuCertificateCalls ¶
DeviceGetConfComputeGpuCertificateCalls gets all the calls that were made to DeviceGetConfComputeGpuCertificate. Check the length with:
len(mockedInterface.DeviceGetConfComputeGpuCertificateCalls())
func (*Interface) DeviceGetConfComputeMemSizeInfo ¶
func (mock *Interface) DeviceGetConfComputeMemSizeInfo(device nvml.Device) (nvml.ConfComputeMemSizeInfo, nvml.Return)
DeviceGetConfComputeMemSizeInfo calls DeviceGetConfComputeMemSizeInfoFunc.
func (*Interface) DeviceGetConfComputeMemSizeInfoCalls ¶
DeviceGetConfComputeMemSizeInfoCalls gets all the calls that were made to DeviceGetConfComputeMemSizeInfo. Check the length with:
len(mockedInterface.DeviceGetConfComputeMemSizeInfoCalls())
func (*Interface) DeviceGetConfComputeProtectedMemoryUsage ¶
func (mock *Interface) DeviceGetConfComputeProtectedMemoryUsage(device nvml.Device) (nvml.Memory, nvml.Return)
DeviceGetConfComputeProtectedMemoryUsage calls DeviceGetConfComputeProtectedMemoryUsageFunc.
func (*Interface) DeviceGetConfComputeProtectedMemoryUsageCalls ¶
func (mock *Interface) DeviceGetConfComputeProtectedMemoryUsageCalls() []struct { Device nvml.Device }
DeviceGetConfComputeProtectedMemoryUsageCalls gets all the calls that were made to DeviceGetConfComputeProtectedMemoryUsage. Check the length with:
len(mockedInterface.DeviceGetConfComputeProtectedMemoryUsageCalls())
func (*Interface) DeviceGetCount ¶
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 ¶
DeviceGetCpuAffinity calls DeviceGetCpuAffinityFunc.
func (*Interface) DeviceGetCpuAffinityCalls ¶
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 ¶
DeviceGetCreatableVgpus calls DeviceGetCreatableVgpusFunc.
func (*Interface) DeviceGetCreatableVgpusCalls ¶
DeviceGetCreatableVgpusCalls gets all the calls that were made to DeviceGetCreatableVgpus. Check the length with:
len(mockedInterface.DeviceGetCreatableVgpusCalls())
func (*Interface) DeviceGetCudaComputeCapability ¶
DeviceGetCudaComputeCapability calls DeviceGetCudaComputeCapabilityFunc.
func (*Interface) DeviceGetCudaComputeCapabilityCalls ¶
DeviceGetCudaComputeCapabilityCalls gets all the calls that were made to DeviceGetCudaComputeCapability. Check the length with:
len(mockedInterface.DeviceGetCudaComputeCapabilityCalls())
func (*Interface) DeviceGetCurrPcieLinkGeneration ¶
DeviceGetCurrPcieLinkGeneration calls DeviceGetCurrPcieLinkGenerationFunc.
func (*Interface) DeviceGetCurrPcieLinkGenerationCalls ¶
DeviceGetCurrPcieLinkGenerationCalls gets all the calls that were made to DeviceGetCurrPcieLinkGeneration. Check the length with:
len(mockedInterface.DeviceGetCurrPcieLinkGenerationCalls())
func (*Interface) DeviceGetCurrPcieLinkWidth ¶
DeviceGetCurrPcieLinkWidth calls DeviceGetCurrPcieLinkWidthFunc.
func (*Interface) DeviceGetCurrPcieLinkWidthCalls ¶
DeviceGetCurrPcieLinkWidthCalls gets all the calls that were made to DeviceGetCurrPcieLinkWidth. Check the length with:
len(mockedInterface.DeviceGetCurrPcieLinkWidthCalls())
func (*Interface) DeviceGetCurrentClocksEventReasons ¶
DeviceGetCurrentClocksEventReasons calls DeviceGetCurrentClocksEventReasonsFunc.
func (*Interface) DeviceGetCurrentClocksEventReasonsCalls ¶
DeviceGetCurrentClocksEventReasonsCalls gets all the calls that were made to DeviceGetCurrentClocksEventReasons. Check the length with:
len(mockedInterface.DeviceGetCurrentClocksEventReasonsCalls())
func (*Interface) DeviceGetCurrentClocksThrottleReasons ¶
func (mock *Interface) DeviceGetCurrentClocksThrottleReasons(device nvml.Device) (uint64, nvml.Return)
DeviceGetCurrentClocksThrottleReasons calls DeviceGetCurrentClocksThrottleReasonsFunc.
func (*Interface) DeviceGetCurrentClocksThrottleReasonsCalls ¶
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 ¶
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 ¶
DeviceGetDefaultEccMode calls DeviceGetDefaultEccModeFunc.
func (*Interface) DeviceGetDefaultEccModeCalls ¶
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 ¶
DeviceGetDisplayActive calls DeviceGetDisplayActiveFunc.
func (*Interface) DeviceGetDisplayActiveCalls ¶
DeviceGetDisplayActiveCalls gets all the calls that were made to DeviceGetDisplayActive. Check the length with:
len(mockedInterface.DeviceGetDisplayActiveCalls())
func (*Interface) DeviceGetDisplayMode ¶
DeviceGetDisplayMode calls DeviceGetDisplayModeFunc.
func (*Interface) DeviceGetDisplayModeCalls ¶
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 ¶
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 ¶
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 ¶
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 ¶
DeviceGetEncoderSessionsCalls gets all the calls that were made to DeviceGetEncoderSessions. Check the length with:
len(mockedInterface.DeviceGetEncoderSessionsCalls())
func (*Interface) DeviceGetEncoderStats ¶
DeviceGetEncoderStats calls DeviceGetEncoderStatsFunc.
func (*Interface) DeviceGetEncoderStatsCalls ¶
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 ¶
DeviceGetEncoderUtilizationCalls gets all the calls that were made to DeviceGetEncoderUtilization. Check the length with:
len(mockedInterface.DeviceGetEncoderUtilizationCalls())
func (*Interface) DeviceGetEnforcedPowerLimit ¶
DeviceGetEnforcedPowerLimit calls DeviceGetEnforcedPowerLimitFunc.
func (*Interface) DeviceGetEnforcedPowerLimitCalls ¶
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 ¶
DeviceGetFBCSessionsCalls gets all the calls that were made to DeviceGetFBCSessions. Check the length with:
len(mockedInterface.DeviceGetFBCSessionsCalls())
func (*Interface) DeviceGetFBCStats ¶
DeviceGetFBCStats calls DeviceGetFBCStatsFunc.
func (*Interface) DeviceGetFBCStatsCalls ¶
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 ¶
DeviceGetFanControlPolicy_v2Calls gets all the calls that were made to DeviceGetFanControlPolicy_v2. Check the length with:
len(mockedInterface.DeviceGetFanControlPolicy_v2Calls())
func (*Interface) DeviceGetFanSpeed ¶
DeviceGetFanSpeed calls DeviceGetFanSpeedFunc.
func (*Interface) DeviceGetFanSpeedCalls ¶
DeviceGetFanSpeedCalls gets all the calls that were made to DeviceGetFanSpeed. Check the length with:
len(mockedInterface.DeviceGetFanSpeedCalls())
func (*Interface) DeviceGetFanSpeed_v2 ¶
DeviceGetFanSpeed_v2 calls DeviceGetFanSpeed_v2Func.
func (*Interface) DeviceGetFanSpeed_v2Calls ¶
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 ¶
DeviceGetGpcClkMinMaxVfOffset calls DeviceGetGpcClkMinMaxVfOffsetFunc.
func (*Interface) DeviceGetGpcClkMinMaxVfOffsetCalls ¶
DeviceGetGpcClkMinMaxVfOffsetCalls gets all the calls that were made to DeviceGetGpcClkMinMaxVfOffset. Check the length with:
len(mockedInterface.DeviceGetGpcClkMinMaxVfOffsetCalls())
func (*Interface) DeviceGetGpcClkVfOffset ¶
DeviceGetGpcClkVfOffset calls DeviceGetGpcClkVfOffsetFunc.
func (*Interface) DeviceGetGpcClkVfOffsetCalls ¶
DeviceGetGpcClkVfOffsetCalls gets all the calls that were made to DeviceGetGpcClkVfOffset. Check the length with:
len(mockedInterface.DeviceGetGpcClkVfOffsetCalls())
func (*Interface) DeviceGetGpuFabricInfo ¶
DeviceGetGpuFabricInfo calls DeviceGetGpuFabricInfoFunc.
func (*Interface) DeviceGetGpuFabricInfoCalls ¶
DeviceGetGpuFabricInfoCalls gets all the calls that were made to DeviceGetGpuFabricInfo. Check the length with:
len(mockedInterface.DeviceGetGpuFabricInfoCalls())
func (*Interface) DeviceGetGpuFabricInfoV ¶
func (mock *Interface) DeviceGetGpuFabricInfoV(device nvml.Device) nvml.GpuFabricInfoHandler
DeviceGetGpuFabricInfoV calls DeviceGetGpuFabricInfoVFunc.
func (*Interface) DeviceGetGpuFabricInfoVCalls ¶
DeviceGetGpuFabricInfoVCalls gets all the calls that were made to DeviceGetGpuFabricInfoV. Check the length with:
len(mockedInterface.DeviceGetGpuFabricInfoVCalls())
func (*Interface) DeviceGetGpuInstanceById ¶
func (mock *Interface) DeviceGetGpuInstanceById(device nvml.Device, n int) (nvml.GpuInstance, nvml.Return)
DeviceGetGpuInstanceById calls DeviceGetGpuInstanceByIdFunc.
func (*Interface) DeviceGetGpuInstanceByIdCalls ¶
DeviceGetGpuInstanceByIdCalls gets all the calls that were made to DeviceGetGpuInstanceById. Check the length with:
len(mockedInterface.DeviceGetGpuInstanceByIdCalls())
func (*Interface) DeviceGetGpuInstanceId ¶
DeviceGetGpuInstanceId calls DeviceGetGpuInstanceIdFunc.
func (*Interface) DeviceGetGpuInstanceIdCalls ¶
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 ¶
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.GpuInstanceProfileInfoHandler
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 ¶
DeviceGetGpuMaxPcieLinkGeneration calls DeviceGetGpuMaxPcieLinkGenerationFunc.
func (*Interface) DeviceGetGpuMaxPcieLinkGenerationCalls ¶
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 ¶
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 ¶
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 ¶
DeviceGetGridLicensableFeaturesCalls gets all the calls that were made to DeviceGetGridLicensableFeatures. Check the length with:
len(mockedInterface.DeviceGetGridLicensableFeaturesCalls())
func (*Interface) DeviceGetGspFirmwareMode ¶
DeviceGetGspFirmwareMode calls DeviceGetGspFirmwareModeFunc.
func (*Interface) DeviceGetGspFirmwareModeCalls ¶
DeviceGetGspFirmwareModeCalls gets all the calls that were made to DeviceGetGspFirmwareMode. Check the length with:
len(mockedInterface.DeviceGetGspFirmwareModeCalls())
func (*Interface) DeviceGetGspFirmwareVersion ¶
DeviceGetGspFirmwareVersion calls DeviceGetGspFirmwareVersionFunc.
func (*Interface) DeviceGetGspFirmwareVersionCalls ¶
DeviceGetGspFirmwareVersionCalls gets all the calls that were made to DeviceGetGspFirmwareVersion. Check the length with:
len(mockedInterface.DeviceGetGspFirmwareVersionCalls())
func (*Interface) DeviceGetHandleByIndex ¶
DeviceGetHandleByIndex calls DeviceGetHandleByIndexFunc.
func (*Interface) DeviceGetHandleByIndexCalls ¶
DeviceGetHandleByIndexCalls gets all the calls that were made to DeviceGetHandleByIndex. Check the length with:
len(mockedInterface.DeviceGetHandleByIndexCalls())
func (*Interface) DeviceGetHandleByPciBusId ¶
DeviceGetHandleByPciBusId calls DeviceGetHandleByPciBusIdFunc.
func (*Interface) DeviceGetHandleByPciBusIdCalls ¶
DeviceGetHandleByPciBusIdCalls gets all the calls that were made to DeviceGetHandleByPciBusId. Check the length with:
len(mockedInterface.DeviceGetHandleByPciBusIdCalls())
func (*Interface) DeviceGetHandleBySerial ¶
DeviceGetHandleBySerial calls DeviceGetHandleBySerialFunc.
func (*Interface) DeviceGetHandleBySerialCalls ¶
DeviceGetHandleBySerialCalls gets all the calls that were made to DeviceGetHandleBySerial. Check the length with:
len(mockedInterface.DeviceGetHandleBySerialCalls())
func (*Interface) DeviceGetHandleByUUID ¶
DeviceGetHandleByUUID calls DeviceGetHandleByUUIDFunc.
func (*Interface) DeviceGetHandleByUUIDCalls ¶
DeviceGetHandleByUUIDCalls gets all the calls that were made to DeviceGetHandleByUUID. Check the length with:
len(mockedInterface.DeviceGetHandleByUUIDCalls())
func (*Interface) DeviceGetHostVgpuMode ¶
DeviceGetHostVgpuMode calls DeviceGetHostVgpuModeFunc.
func (*Interface) DeviceGetHostVgpuModeCalls ¶
DeviceGetHostVgpuModeCalls gets all the calls that were made to DeviceGetHostVgpuMode. Check the length with:
len(mockedInterface.DeviceGetHostVgpuModeCalls())
func (*Interface) DeviceGetIndex ¶
DeviceGetIndex calls DeviceGetIndexFunc.
func (*Interface) DeviceGetIndexCalls ¶
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 ¶
DeviceGetInforomConfigurationChecksumCalls gets all the calls that were made to DeviceGetInforomConfigurationChecksum. Check the length with:
len(mockedInterface.DeviceGetInforomConfigurationChecksumCalls())
func (*Interface) DeviceGetInforomImageVersion ¶
DeviceGetInforomImageVersion calls DeviceGetInforomImageVersionFunc.
func (*Interface) DeviceGetInforomImageVersionCalls ¶
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 ¶
DeviceGetIrqNum calls DeviceGetIrqNumFunc.
func (*Interface) DeviceGetIrqNumCalls ¶
DeviceGetIrqNumCalls gets all the calls that were made to DeviceGetIrqNum. Check the length with:
len(mockedInterface.DeviceGetIrqNumCalls())
func (*Interface) DeviceGetJpgUtilization ¶
DeviceGetJpgUtilization calls DeviceGetJpgUtilizationFunc.
func (*Interface) DeviceGetJpgUtilizationCalls ¶
DeviceGetJpgUtilizationCalls gets all the calls that were made to DeviceGetJpgUtilization. Check the length with:
len(mockedInterface.DeviceGetJpgUtilizationCalls())
func (*Interface) DeviceGetLastBBXFlushTime ¶
DeviceGetLastBBXFlushTime calls DeviceGetLastBBXFlushTimeFunc.
func (*Interface) DeviceGetLastBBXFlushTimeCalls ¶
DeviceGetLastBBXFlushTimeCalls gets all the calls that were made to DeviceGetLastBBXFlushTime. Check the length with:
len(mockedInterface.DeviceGetLastBBXFlushTimeCalls())
func (*Interface) DeviceGetMPSComputeRunningProcesses ¶
func (mock *Interface) DeviceGetMPSComputeRunningProcesses(device nvml.Device) ([]nvml.ProcessInfo, nvml.Return)
DeviceGetMPSComputeRunningProcesses calls DeviceGetMPSComputeRunningProcessesFunc.
func (*Interface) DeviceGetMPSComputeRunningProcessesCalls ¶
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 ¶
DeviceGetMaxMigDeviceCount calls DeviceGetMaxMigDeviceCountFunc.
func (*Interface) DeviceGetMaxMigDeviceCountCalls ¶
DeviceGetMaxMigDeviceCountCalls gets all the calls that were made to DeviceGetMaxMigDeviceCount. Check the length with:
len(mockedInterface.DeviceGetMaxMigDeviceCountCalls())
func (*Interface) DeviceGetMaxPcieLinkGeneration ¶
DeviceGetMaxPcieLinkGeneration calls DeviceGetMaxPcieLinkGenerationFunc.
func (*Interface) DeviceGetMaxPcieLinkGenerationCalls ¶
DeviceGetMaxPcieLinkGenerationCalls gets all the calls that were made to DeviceGetMaxPcieLinkGeneration. Check the length with:
len(mockedInterface.DeviceGetMaxPcieLinkGenerationCalls())
func (*Interface) DeviceGetMaxPcieLinkWidth ¶
DeviceGetMaxPcieLinkWidth calls DeviceGetMaxPcieLinkWidthFunc.
func (*Interface) DeviceGetMaxPcieLinkWidthCalls ¶
DeviceGetMaxPcieLinkWidthCalls gets all the calls that were made to DeviceGetMaxPcieLinkWidth. Check the length with:
len(mockedInterface.DeviceGetMaxPcieLinkWidthCalls())
func (*Interface) DeviceGetMemClkMinMaxVfOffset ¶
DeviceGetMemClkMinMaxVfOffset calls DeviceGetMemClkMinMaxVfOffsetFunc.
func (*Interface) DeviceGetMemClkMinMaxVfOffsetCalls ¶
DeviceGetMemClkMinMaxVfOffsetCalls gets all the calls that were made to DeviceGetMemClkMinMaxVfOffset. Check the length with:
len(mockedInterface.DeviceGetMemClkMinMaxVfOffsetCalls())
func (*Interface) DeviceGetMemClkVfOffset ¶
DeviceGetMemClkVfOffset calls DeviceGetMemClkVfOffsetFunc.
func (*Interface) DeviceGetMemClkVfOffsetCalls ¶
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 ¶
DeviceGetMemoryBusWidth calls DeviceGetMemoryBusWidthFunc.
func (*Interface) DeviceGetMemoryBusWidthCalls ¶
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 ¶
DeviceGetMemoryInfo calls DeviceGetMemoryInfoFunc.
func (*Interface) DeviceGetMemoryInfoCalls ¶
DeviceGetMemoryInfoCalls gets all the calls that were made to DeviceGetMemoryInfo. Check the length with:
len(mockedInterface.DeviceGetMemoryInfoCalls())
func (*Interface) DeviceGetMemoryInfo_v2 ¶
DeviceGetMemoryInfo_v2 calls DeviceGetMemoryInfo_v2Func.
func (*Interface) DeviceGetMemoryInfo_v2Calls ¶
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 ¶
DeviceGetMigDeviceHandleByIndexCalls gets all the calls that were made to DeviceGetMigDeviceHandleByIndex. Check the length with:
len(mockedInterface.DeviceGetMigDeviceHandleByIndexCalls())
func (*Interface) DeviceGetMigMode ¶
DeviceGetMigMode calls DeviceGetMigModeFunc.
func (*Interface) DeviceGetMigModeCalls ¶
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 ¶
DeviceGetMinMaxFanSpeed calls DeviceGetMinMaxFanSpeedFunc.
func (*Interface) DeviceGetMinMaxFanSpeedCalls ¶
DeviceGetMinMaxFanSpeedCalls gets all the calls that were made to DeviceGetMinMaxFanSpeed. Check the length with:
len(mockedInterface.DeviceGetMinMaxFanSpeedCalls())
func (*Interface) DeviceGetMinorNumber ¶
DeviceGetMinorNumber calls DeviceGetMinorNumberFunc.
func (*Interface) DeviceGetMinorNumberCalls ¶
DeviceGetMinorNumberCalls gets all the calls that were made to DeviceGetMinorNumber. Check the length with:
len(mockedInterface.DeviceGetMinorNumberCalls())
func (*Interface) DeviceGetModuleId ¶
DeviceGetModuleId calls DeviceGetModuleIdFunc.
func (*Interface) DeviceGetModuleIdCalls ¶
DeviceGetModuleIdCalls gets all the calls that were made to DeviceGetModuleId. Check the length with:
len(mockedInterface.DeviceGetModuleIdCalls())
func (*Interface) DeviceGetMultiGpuBoard ¶
DeviceGetMultiGpuBoard calls DeviceGetMultiGpuBoardFunc.
func (*Interface) DeviceGetMultiGpuBoardCalls ¶
DeviceGetMultiGpuBoardCalls gets all the calls that were made to DeviceGetMultiGpuBoard. Check the length with:
len(mockedInterface.DeviceGetMultiGpuBoardCalls())
func (*Interface) DeviceGetName ¶
DeviceGetName calls DeviceGetNameFunc.
func (*Interface) DeviceGetNameCalls ¶
DeviceGetNameCalls gets all the calls that were made to DeviceGetName. Check the length with:
len(mockedInterface.DeviceGetNameCalls())
func (*Interface) DeviceGetNumFans ¶
DeviceGetNumFans calls DeviceGetNumFansFunc.
func (*Interface) DeviceGetNumFansCalls ¶
DeviceGetNumFansCalls gets all the calls that were made to DeviceGetNumFans. Check the length with:
len(mockedInterface.DeviceGetNumFansCalls())
func (*Interface) DeviceGetNumGpuCores ¶
DeviceGetNumGpuCores calls DeviceGetNumGpuCoresFunc.
func (*Interface) DeviceGetNumGpuCoresCalls ¶
DeviceGetNumGpuCoresCalls gets all the calls that were made to DeviceGetNumGpuCores. Check the length with:
len(mockedInterface.DeviceGetNumGpuCoresCalls())
func (*Interface) DeviceGetNumaNodeId ¶
DeviceGetNumaNodeId calls DeviceGetNumaNodeIdFunc.
func (*Interface) DeviceGetNumaNodeIdCalls ¶
DeviceGetNumaNodeIdCalls gets all the calls that were made to DeviceGetNumaNodeId. Check the length with:
len(mockedInterface.DeviceGetNumaNodeIdCalls())
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 ¶
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 ¶
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 ¶
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 ¶
DeviceGetNvLinkVersion calls DeviceGetNvLinkVersionFunc.
func (*Interface) DeviceGetNvLinkVersionCalls ¶
DeviceGetNvLinkVersionCalls gets all the calls that were made to DeviceGetNvLinkVersion. Check the length with:
len(mockedInterface.DeviceGetNvLinkVersionCalls())
func (*Interface) DeviceGetOfaUtilization ¶
DeviceGetOfaUtilization calls DeviceGetOfaUtilizationFunc.
func (*Interface) DeviceGetOfaUtilizationCalls ¶
DeviceGetOfaUtilizationCalls gets all the calls that were made to DeviceGetOfaUtilization. Check the length with:
len(mockedInterface.DeviceGetOfaUtilizationCalls())
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 ¶
DeviceGetPciInfo calls DeviceGetPciInfoFunc.
func (*Interface) DeviceGetPciInfoCalls ¶
DeviceGetPciInfoCalls gets all the calls that were made to DeviceGetPciInfo. Check the length with:
len(mockedInterface.DeviceGetPciInfoCalls())
func (*Interface) DeviceGetPciInfoExt ¶
DeviceGetPciInfoExt calls DeviceGetPciInfoExtFunc.
func (*Interface) DeviceGetPciInfoExtCalls ¶
DeviceGetPciInfoExtCalls gets all the calls that were made to DeviceGetPciInfoExt. Check the length with:
len(mockedInterface.DeviceGetPciInfoExtCalls())
func (*Interface) DeviceGetPcieLinkMaxSpeed ¶
DeviceGetPcieLinkMaxSpeed calls DeviceGetPcieLinkMaxSpeedFunc.
func (*Interface) DeviceGetPcieLinkMaxSpeedCalls ¶
DeviceGetPcieLinkMaxSpeedCalls gets all the calls that were made to DeviceGetPcieLinkMaxSpeed. Check the length with:
len(mockedInterface.DeviceGetPcieLinkMaxSpeedCalls())
func (*Interface) DeviceGetPcieReplayCounter ¶
DeviceGetPcieReplayCounter calls DeviceGetPcieReplayCounterFunc.
func (*Interface) DeviceGetPcieReplayCounterCalls ¶
DeviceGetPcieReplayCounterCalls gets all the calls that were made to DeviceGetPcieReplayCounter. Check the length with:
len(mockedInterface.DeviceGetPcieReplayCounterCalls())
func (*Interface) DeviceGetPcieSpeed ¶
DeviceGetPcieSpeed calls DeviceGetPcieSpeedFunc.
func (*Interface) DeviceGetPcieSpeedCalls ¶
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 ¶
DeviceGetPerformanceState calls DeviceGetPerformanceStateFunc.
func (*Interface) DeviceGetPerformanceStateCalls ¶
DeviceGetPerformanceStateCalls gets all the calls that were made to DeviceGetPerformanceState. Check the length with:
len(mockedInterface.DeviceGetPerformanceStateCalls())
func (*Interface) DeviceGetPersistenceMode ¶
DeviceGetPersistenceMode calls DeviceGetPersistenceModeFunc.
func (*Interface) DeviceGetPersistenceModeCalls ¶
DeviceGetPersistenceModeCalls gets all the calls that were made to DeviceGetPersistenceMode. Check the length with:
len(mockedInterface.DeviceGetPersistenceModeCalls())
func (*Interface) DeviceGetPgpuMetadataString ¶
DeviceGetPgpuMetadataString calls DeviceGetPgpuMetadataStringFunc.
func (*Interface) DeviceGetPgpuMetadataStringCalls ¶
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 ¶
DeviceGetPowerManagementDefaultLimitCalls gets all the calls that were made to DeviceGetPowerManagementDefaultLimit. Check the length with:
len(mockedInterface.DeviceGetPowerManagementDefaultLimitCalls())
func (*Interface) DeviceGetPowerManagementLimit ¶
DeviceGetPowerManagementLimit calls DeviceGetPowerManagementLimitFunc.
func (*Interface) DeviceGetPowerManagementLimitCalls ¶
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 ¶
DeviceGetPowerManagementModeCalls gets all the calls that were made to DeviceGetPowerManagementMode. Check the length with:
len(mockedInterface.DeviceGetPowerManagementModeCalls())
func (*Interface) DeviceGetPowerSource ¶
DeviceGetPowerSource calls DeviceGetPowerSourceFunc.
func (*Interface) DeviceGetPowerSourceCalls ¶
DeviceGetPowerSourceCalls gets all the calls that were made to DeviceGetPowerSource. Check the length with:
len(mockedInterface.DeviceGetPowerSourceCalls())
func (*Interface) DeviceGetPowerState ¶
DeviceGetPowerState calls DeviceGetPowerStateFunc.
func (*Interface) DeviceGetPowerStateCalls ¶
DeviceGetPowerStateCalls gets all the calls that were made to DeviceGetPowerState. Check the length with:
len(mockedInterface.DeviceGetPowerStateCalls())
func (*Interface) DeviceGetPowerUsage ¶
DeviceGetPowerUsage calls DeviceGetPowerUsageFunc.
func (*Interface) DeviceGetPowerUsageCalls ¶
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 ¶
DeviceGetProcessUtilizationCalls gets all the calls that were made to DeviceGetProcessUtilization. Check the length with:
len(mockedInterface.DeviceGetProcessUtilizationCalls())
func (*Interface) DeviceGetProcessesUtilizationInfo ¶
func (mock *Interface) DeviceGetProcessesUtilizationInfo(device nvml.Device) (nvml.ProcessesUtilizationInfo, nvml.Return)
DeviceGetProcessesUtilizationInfo calls DeviceGetProcessesUtilizationInfoFunc.
func (*Interface) DeviceGetProcessesUtilizationInfoCalls ¶
DeviceGetProcessesUtilizationInfoCalls gets all the calls that were made to DeviceGetProcessesUtilizationInfo. Check the length with:
len(mockedInterface.DeviceGetProcessesUtilizationInfoCalls())
func (*Interface) DeviceGetRemappedRows ¶
func (mock *Interface) DeviceGetRemappedRows(device nvml.Device) (int, int, bool, bool, nvml.Return)
DeviceGetRemappedRows calls DeviceGetRemappedRowsFunc.
func (*Interface) DeviceGetRemappedRowsCalls ¶
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 ¶
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 ¶
DeviceGetRowRemapperHistogramCalls gets all the calls that were made to DeviceGetRowRemapperHistogram. Check the length with:
len(mockedInterface.DeviceGetRowRemapperHistogramCalls())
func (*Interface) DeviceGetRunningProcessDetailList ¶
func (mock *Interface) DeviceGetRunningProcessDetailList(device nvml.Device) (nvml.ProcessDetailList, nvml.Return)
DeviceGetRunningProcessDetailList calls DeviceGetRunningProcessDetailListFunc.
func (*Interface) DeviceGetRunningProcessDetailListCalls ¶
DeviceGetRunningProcessDetailListCalls gets all the calls that were made to DeviceGetRunningProcessDetailList. Check the length with:
len(mockedInterface.DeviceGetRunningProcessDetailListCalls())
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 ¶
DeviceGetSerial calls DeviceGetSerialFunc.
func (*Interface) DeviceGetSerialCalls ¶
DeviceGetSerialCalls gets all the calls that were made to DeviceGetSerial. Check the length with:
len(mockedInterface.DeviceGetSerialCalls())
func (*Interface) DeviceGetSramEccErrorStatus ¶
func (mock *Interface) DeviceGetSramEccErrorStatus(device nvml.Device) (nvml.EccSramErrorStatus, nvml.Return)
DeviceGetSramEccErrorStatus calls DeviceGetSramEccErrorStatusFunc.
func (*Interface) DeviceGetSramEccErrorStatusCalls ¶
DeviceGetSramEccErrorStatusCalls gets all the calls that were made to DeviceGetSramEccErrorStatus. Check the length with:
len(mockedInterface.DeviceGetSramEccErrorStatusCalls())
func (*Interface) DeviceGetSupportedClocksEventReasons ¶
func (mock *Interface) DeviceGetSupportedClocksEventReasons(device nvml.Device) (uint64, nvml.Return)
DeviceGetSupportedClocksEventReasons calls DeviceGetSupportedClocksEventReasonsFunc.
func (*Interface) DeviceGetSupportedClocksEventReasonsCalls ¶
DeviceGetSupportedClocksEventReasonsCalls gets all the calls that were made to DeviceGetSupportedClocksEventReasons. Check the length with:
len(mockedInterface.DeviceGetSupportedClocksEventReasonsCalls())
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 ¶
DeviceGetSupportedEventTypes calls DeviceGetSupportedEventTypesFunc.
func (*Interface) DeviceGetSupportedEventTypesCalls ¶
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 ¶
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 ¶
DeviceGetSupportedPerformanceStatesCalls gets all the calls that were made to DeviceGetSupportedPerformanceStates. Check the length with:
len(mockedInterface.DeviceGetSupportedPerformanceStatesCalls())
func (*Interface) DeviceGetSupportedVgpus ¶
DeviceGetSupportedVgpus calls DeviceGetSupportedVgpusFunc.
func (*Interface) DeviceGetSupportedVgpusCalls ¶
DeviceGetSupportedVgpusCalls gets all the calls that were made to DeviceGetSupportedVgpus. Check the length with:
len(mockedInterface.DeviceGetSupportedVgpusCalls())
func (*Interface) DeviceGetTargetFanSpeed ¶
DeviceGetTargetFanSpeed calls DeviceGetTargetFanSpeedFunc.
func (*Interface) DeviceGetTargetFanSpeedCalls ¶
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 ¶
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 ¶
DeviceGetTotalEnergyConsumption calls DeviceGetTotalEnergyConsumptionFunc.
func (*Interface) DeviceGetTotalEnergyConsumptionCalls ¶
DeviceGetTotalEnergyConsumptionCalls gets all the calls that were made to DeviceGetTotalEnergyConsumption. Check the length with:
len(mockedInterface.DeviceGetTotalEnergyConsumptionCalls())
func (*Interface) DeviceGetUUID ¶
DeviceGetUUID calls DeviceGetUUIDFunc.
func (*Interface) DeviceGetUUIDCalls ¶
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 ¶
DeviceGetUtilizationRatesCalls gets all the calls that were made to DeviceGetUtilizationRates. Check the length with:
len(mockedInterface.DeviceGetUtilizationRatesCalls())
func (*Interface) DeviceGetVbiosVersion ¶
DeviceGetVbiosVersion calls DeviceGetVbiosVersionFunc.
func (*Interface) DeviceGetVbiosVersionCalls ¶
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) DeviceGetVgpuHeterogeneousMode ¶
func (mock *Interface) DeviceGetVgpuHeterogeneousMode(device nvml.Device) (nvml.VgpuHeterogeneousMode, nvml.Return)
DeviceGetVgpuHeterogeneousMode calls DeviceGetVgpuHeterogeneousModeFunc.
func (*Interface) DeviceGetVgpuHeterogeneousModeCalls ¶
DeviceGetVgpuHeterogeneousModeCalls gets all the calls that were made to DeviceGetVgpuHeterogeneousMode. Check the length with:
len(mockedInterface.DeviceGetVgpuHeterogeneousModeCalls())
func (*Interface) DeviceGetVgpuInstancesUtilizationInfo ¶
func (mock *Interface) DeviceGetVgpuInstancesUtilizationInfo(device nvml.Device) (nvml.VgpuInstancesUtilizationInfo, nvml.Return)
DeviceGetVgpuInstancesUtilizationInfo calls DeviceGetVgpuInstancesUtilizationInfoFunc.
func (*Interface) DeviceGetVgpuInstancesUtilizationInfoCalls ¶
DeviceGetVgpuInstancesUtilizationInfoCalls gets all the calls that were made to DeviceGetVgpuInstancesUtilizationInfo. Check the length with:
len(mockedInterface.DeviceGetVgpuInstancesUtilizationInfoCalls())
func (*Interface) DeviceGetVgpuMetadata ¶
func (mock *Interface) DeviceGetVgpuMetadata(device nvml.Device) (nvml.VgpuPgpuMetadata, nvml.Return)
DeviceGetVgpuMetadata calls DeviceGetVgpuMetadataFunc.
func (*Interface) DeviceGetVgpuMetadataCalls ¶
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) DeviceGetVgpuProcessesUtilizationInfo ¶
func (mock *Interface) DeviceGetVgpuProcessesUtilizationInfo(device nvml.Device) (nvml.VgpuProcessesUtilizationInfo, nvml.Return)
DeviceGetVgpuProcessesUtilizationInfo calls DeviceGetVgpuProcessesUtilizationInfoFunc.
func (*Interface) DeviceGetVgpuProcessesUtilizationInfoCalls ¶
DeviceGetVgpuProcessesUtilizationInfoCalls gets all the calls that were made to DeviceGetVgpuProcessesUtilizationInfo. Check the length with:
len(mockedInterface.DeviceGetVgpuProcessesUtilizationInfoCalls())
func (*Interface) DeviceGetVgpuSchedulerCapabilities ¶
func (mock *Interface) DeviceGetVgpuSchedulerCapabilities(device nvml.Device) (nvml.VgpuSchedulerCapabilities, nvml.Return)
DeviceGetVgpuSchedulerCapabilities calls DeviceGetVgpuSchedulerCapabilitiesFunc.
func (*Interface) DeviceGetVgpuSchedulerCapabilitiesCalls ¶
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 ¶
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 ¶
DeviceGetVgpuSchedulerStateCalls gets all the calls that were made to DeviceGetVgpuSchedulerState. Check the length with:
len(mockedInterface.DeviceGetVgpuSchedulerStateCalls())
func (*Interface) DeviceGetVgpuTypeCreatablePlacements ¶
func (mock *Interface) DeviceGetVgpuTypeCreatablePlacements(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
DeviceGetVgpuTypeCreatablePlacements calls DeviceGetVgpuTypeCreatablePlacementsFunc.
func (*Interface) DeviceGetVgpuTypeCreatablePlacementsCalls ¶
func (mock *Interface) DeviceGetVgpuTypeCreatablePlacementsCalls() []struct { Device nvml.Device VgpuTypeId nvml.VgpuTypeId }
DeviceGetVgpuTypeCreatablePlacementsCalls gets all the calls that were made to DeviceGetVgpuTypeCreatablePlacements. Check the length with:
len(mockedInterface.DeviceGetVgpuTypeCreatablePlacementsCalls())
func (*Interface) DeviceGetVgpuTypeSupportedPlacements ¶
func (mock *Interface) DeviceGetVgpuTypeSupportedPlacements(device nvml.Device, vgpuTypeId nvml.VgpuTypeId) (nvml.VgpuPlacementList, nvml.Return)
DeviceGetVgpuTypeSupportedPlacements calls DeviceGetVgpuTypeSupportedPlacementsFunc.
func (*Interface) DeviceGetVgpuTypeSupportedPlacementsCalls ¶
func (mock *Interface) DeviceGetVgpuTypeSupportedPlacementsCalls() []struct { Device nvml.Device VgpuTypeId nvml.VgpuTypeId }
DeviceGetVgpuTypeSupportedPlacementsCalls gets all the calls that were made to DeviceGetVgpuTypeSupportedPlacements. Check the length with:
len(mockedInterface.DeviceGetVgpuTypeSupportedPlacementsCalls())
func (*Interface) DeviceGetVgpuUtilization ¶
func (mock *Interface) DeviceGetVgpuUtilization(device nvml.Device, v uint64) (nvml.ValueType, []nvml.VgpuInstanceUtilizationSample, nvml.Return)
DeviceGetVgpuUtilization calls DeviceGetVgpuUtilizationFunc.
func (*Interface) DeviceGetVgpuUtilizationCalls ¶
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 ¶
DeviceGetVirtualizationModeCalls gets all the calls that were made to DeviceGetVirtualizationMode. Check the length with:
len(mockedInterface.DeviceGetVirtualizationModeCalls())
func (*Interface) DeviceIsMigDeviceHandle ¶
DeviceIsMigDeviceHandle calls DeviceIsMigDeviceHandleFunc.
func (*Interface) DeviceIsMigDeviceHandleCalls ¶
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 ¶
DeviceQueryDrainState calls DeviceQueryDrainStateFunc.
func (*Interface) DeviceQueryDrainStateCalls ¶
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 ¶
DeviceRemoveGpu calls DeviceRemoveGpuFunc.
func (*Interface) DeviceRemoveGpuCalls ¶
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 ¶
DeviceResetApplicationsClocks calls DeviceResetApplicationsClocksFunc.
func (*Interface) DeviceResetApplicationsClocksCalls ¶
DeviceResetApplicationsClocksCalls gets all the calls that were made to DeviceResetApplicationsClocks. Check the length with:
len(mockedInterface.DeviceResetApplicationsClocksCalls())
func (*Interface) DeviceResetGpuLockedClocks ¶
DeviceResetGpuLockedClocks calls DeviceResetGpuLockedClocksFunc.
func (*Interface) DeviceResetGpuLockedClocksCalls ¶
DeviceResetGpuLockedClocksCalls gets all the calls that were made to DeviceResetGpuLockedClocks. Check the length with:
len(mockedInterface.DeviceResetGpuLockedClocksCalls())
func (*Interface) DeviceResetMemoryLockedClocks ¶
DeviceResetMemoryLockedClocks calls DeviceResetMemoryLockedClocksFunc.
func (*Interface) DeviceResetMemoryLockedClocksCalls ¶
DeviceResetMemoryLockedClocksCalls gets all the calls that were made to DeviceResetMemoryLockedClocks. Check the length with:
len(mockedInterface.DeviceResetMemoryLockedClocksCalls())
func (*Interface) DeviceResetNvLinkErrorCounters ¶
DeviceResetNvLinkErrorCounters calls DeviceResetNvLinkErrorCountersFunc.
func (*Interface) DeviceResetNvLinkErrorCountersCalls ¶
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) DeviceSetConfComputeUnprotectedMemSize ¶
func (mock *Interface) DeviceSetConfComputeUnprotectedMemSize(device nvml.Device, v uint64) nvml.Return
DeviceSetConfComputeUnprotectedMemSize calls DeviceSetConfComputeUnprotectedMemSizeFunc.
func (*Interface) DeviceSetConfComputeUnprotectedMemSizeCalls ¶
func (mock *Interface) DeviceSetConfComputeUnprotectedMemSizeCalls() []struct { Device nvml.Device V uint64 }
DeviceSetConfComputeUnprotectedMemSizeCalls gets all the calls that were made to DeviceSetConfComputeUnprotectedMemSize. Check the length with:
len(mockedInterface.DeviceSetConfComputeUnprotectedMemSizeCalls())
func (*Interface) DeviceSetCpuAffinity ¶
DeviceSetCpuAffinity calls DeviceSetCpuAffinityFunc.
func (*Interface) DeviceSetCpuAffinityCalls ¶
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 ¶
DeviceSetDefaultFanSpeed_v2 calls DeviceSetDefaultFanSpeed_v2Func.
func (*Interface) DeviceSetDefaultFanSpeed_v2Calls ¶
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 ¶
DeviceSetFanSpeed_v2 calls DeviceSetFanSpeed_v2Func.
func (*Interface) DeviceSetFanSpeed_v2Calls ¶
DeviceSetFanSpeed_v2Calls gets all the calls that were made to DeviceSetFanSpeed_v2. Check the length with:
len(mockedInterface.DeviceSetFanSpeed_v2Calls())
func (*Interface) DeviceSetGpcClkVfOffset ¶
DeviceSetGpcClkVfOffset calls DeviceSetGpcClkVfOffsetFunc.
func (*Interface) DeviceSetGpcClkVfOffsetCalls ¶
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 ¶
DeviceSetMemClkVfOffset calls DeviceSetMemClkVfOffsetFunc.
func (*Interface) DeviceSetMemClkVfOffsetCalls ¶
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 ¶
DeviceSetMigMode calls DeviceSetMigModeFunc.
func (*Interface) DeviceSetMigModeCalls ¶
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 ¶
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) DeviceSetPowerManagementLimit_v2 ¶
func (mock *Interface) DeviceSetPowerManagementLimit_v2(device nvml.Device, powerValue_v2 *nvml.PowerValue_v2) nvml.Return
DeviceSetPowerManagementLimit_v2 calls DeviceSetPowerManagementLimit_v2Func.
func (*Interface) DeviceSetPowerManagementLimit_v2Calls ¶
func (mock *Interface) DeviceSetPowerManagementLimit_v2Calls() []struct { Device nvml.Device PowerValue_v2 *nvml.PowerValue_v2 }
DeviceSetPowerManagementLimit_v2Calls gets all the calls that were made to DeviceSetPowerManagementLimit_v2. Check the length with:
len(mockedInterface.DeviceSetPowerManagementLimit_v2Calls())
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) DeviceSetVgpuCapabilities ¶
func (mock *Interface) DeviceSetVgpuCapabilities(device nvml.Device, deviceVgpuCapability nvml.DeviceVgpuCapability, enableState nvml.EnableState) nvml.Return
DeviceSetVgpuCapabilities calls DeviceSetVgpuCapabilitiesFunc.
func (*Interface) DeviceSetVgpuCapabilitiesCalls ¶
func (mock *Interface) DeviceSetVgpuCapabilitiesCalls() []struct { Device nvml.Device DeviceVgpuCapability nvml.DeviceVgpuCapability EnableState nvml.EnableState }
DeviceSetVgpuCapabilitiesCalls gets all the calls that were made to DeviceSetVgpuCapabilities. Check the length with:
len(mockedInterface.DeviceSetVgpuCapabilitiesCalls())
func (*Interface) DeviceSetVgpuHeterogeneousMode ¶
func (mock *Interface) DeviceSetVgpuHeterogeneousMode(device nvml.Device, vgpuHeterogeneousMode nvml.VgpuHeterogeneousMode) nvml.Return
DeviceSetVgpuHeterogeneousMode calls DeviceSetVgpuHeterogeneousModeFunc.
func (*Interface) DeviceSetVgpuHeterogeneousModeCalls ¶
func (mock *Interface) DeviceSetVgpuHeterogeneousModeCalls() []struct { Device nvml.Device VgpuHeterogeneousMode nvml.VgpuHeterogeneousMode }
DeviceSetVgpuHeterogeneousModeCalls gets all the calls that were made to DeviceSetVgpuHeterogeneousMode. Check the length with:
len(mockedInterface.DeviceSetVgpuHeterogeneousModeCalls())
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 ¶
DeviceValidateInforom calls DeviceValidateInforomFunc.
func (*Interface) DeviceValidateInforomCalls ¶
DeviceValidateInforomCalls gets all the calls that were made to DeviceValidateInforom. Check the length with:
len(mockedInterface.DeviceValidateInforomCalls())
func (*Interface) ErrorString ¶
ErrorString calls ErrorStringFunc.
func (*Interface) ErrorStringCalls ¶
ErrorStringCalls gets all the calls that were made to ErrorString. Check the length with:
len(mockedInterface.ErrorStringCalls())
func (*Interface) EventSetCreate ¶
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 ¶
EventSetFree calls EventSetFreeFunc.
func (*Interface) EventSetFreeCalls ¶
EventSetFreeCalls gets all the calls that were made to EventSetFree. Check the length with:
len(mockedInterface.EventSetFreeCalls())
func (*Interface) EventSetWait ¶
EventSetWait calls EventSetWaitFunc.
func (*Interface) EventSetWaitCalls ¶
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 ¶
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 ¶
GetExcludedDeviceInfoByIndex calls GetExcludedDeviceInfoByIndexFunc.
func (*Interface) GetExcludedDeviceInfoByIndexCalls ¶
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 ¶
GpmQueryDeviceSupport calls GpmQueryDeviceSupportFunc.
func (*Interface) GpmQueryDeviceSupportCalls ¶
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 ¶
GpmQueryDeviceSupportVCalls gets all the calls that were made to GpmQueryDeviceSupportV. Check the length with:
len(mockedInterface.GpmQueryDeviceSupportVCalls())
func (*Interface) GpmQueryIfStreamingEnabled ¶
GpmQueryIfStreamingEnabled calls GpmQueryIfStreamingEnabledFunc.
func (*Interface) GpmQueryIfStreamingEnabledCalls ¶
GpmQueryIfStreamingEnabledCalls gets all the calls that were made to GpmQueryIfStreamingEnabled. Check the length with:
len(mockedInterface.GpmQueryIfStreamingEnabledCalls())
func (*Interface) GpmSampleAlloc ¶
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 ¶
GpmSampleFree calls GpmSampleFreeFunc.
func (*Interface) GpmSampleFreeCalls ¶
GpmSampleFreeCalls gets all the calls that were made to GpmSampleFree. Check the length with:
len(mockedInterface.GpmSampleFreeCalls())
func (*Interface) GpmSampleGet ¶
GpmSampleGet calls GpmSampleGetFunc.
func (*Interface) GpmSampleGetCalls ¶
GpmSampleGetCalls gets all the calls that were made to GpmSampleGet. Check the length with:
len(mockedInterface.GpmSampleGetCalls())
func (*Interface) GpmSetStreamingEnabled ¶
GpmSetStreamingEnabled calls GpmSetStreamingEnabledFunc.
func (*Interface) GpmSetStreamingEnabledCalls ¶
GpmSetStreamingEnabledCalls gets all the calls that were made to GpmSetStreamingEnabled. Check the length with:
len(mockedInterface.GpmSetStreamingEnabledCalls())
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.ComputeInstanceProfileInfoHandler
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) 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 ¶
InitWithFlags calls InitWithFlagsFunc.
func (*Interface) InitWithFlagsCalls ¶
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) 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) SystemGetConfComputeCapabilities ¶
func (mock *Interface) SystemGetConfComputeCapabilities() (nvml.ConfComputeSystemCaps, nvml.Return)
SystemGetConfComputeCapabilities calls SystemGetConfComputeCapabilitiesFunc.
func (*Interface) SystemGetConfComputeCapabilitiesCalls ¶
func (mock *Interface) SystemGetConfComputeCapabilitiesCalls() []struct { }
SystemGetConfComputeCapabilitiesCalls gets all the calls that were made to SystemGetConfComputeCapabilities. Check the length with:
len(mockedInterface.SystemGetConfComputeCapabilitiesCalls())
func (*Interface) SystemGetConfComputeKeyRotationThresholdInfo ¶
func (mock *Interface) SystemGetConfComputeKeyRotationThresholdInfo() (nvml.ConfComputeGetKeyRotationThresholdInfo, nvml.Return)
SystemGetConfComputeKeyRotationThresholdInfo calls SystemGetConfComputeKeyRotationThresholdInfoFunc.
func (*Interface) SystemGetConfComputeKeyRotationThresholdInfoCalls ¶
func (mock *Interface) SystemGetConfComputeKeyRotationThresholdInfoCalls() []struct { }
SystemGetConfComputeKeyRotationThresholdInfoCalls gets all the calls that were made to SystemGetConfComputeKeyRotationThresholdInfo. Check the length with:
len(mockedInterface.SystemGetConfComputeKeyRotationThresholdInfoCalls())
func (*Interface) SystemGetConfComputeSettings ¶
func (mock *Interface) SystemGetConfComputeSettings() (nvml.SystemConfComputeSettings, nvml.Return)
SystemGetConfComputeSettings calls SystemGetConfComputeSettingsFunc.
func (*Interface) SystemGetConfComputeSettingsCalls ¶
func (mock *Interface) SystemGetConfComputeSettingsCalls() []struct { }
SystemGetConfComputeSettingsCalls gets all the calls that were made to SystemGetConfComputeSettings. Check the length with:
len(mockedInterface.SystemGetConfComputeSettingsCalls())
func (*Interface) SystemGetCudaDriverVersion ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
SystemGetProcessName calls SystemGetProcessNameFunc.
func (*Interface) SystemGetProcessNameCalls ¶
SystemGetProcessNameCalls gets all the calls that were made to SystemGetProcessName. Check the length with:
len(mockedInterface.SystemGetProcessNameCalls())
func (*Interface) SystemGetTopologyGpuSet ¶
SystemGetTopologyGpuSet calls SystemGetTopologyGpuSetFunc.
func (*Interface) SystemGetTopologyGpuSetCalls ¶
SystemGetTopologyGpuSetCalls gets all the calls that were made to SystemGetTopologyGpuSet. Check the length with:
len(mockedInterface.SystemGetTopologyGpuSetCalls())
func (*Interface) SystemSetConfComputeKeyRotationThresholdInfo ¶
func (mock *Interface) SystemSetConfComputeKeyRotationThresholdInfo(confComputeSetKeyRotationThresholdInfo nvml.ConfComputeSetKeyRotationThresholdInfo) nvml.Return
SystemSetConfComputeKeyRotationThresholdInfo calls SystemSetConfComputeKeyRotationThresholdInfoFunc.
func (*Interface) SystemSetConfComputeKeyRotationThresholdInfoCalls ¶
func (mock *Interface) SystemSetConfComputeKeyRotationThresholdInfoCalls() []struct { ConfComputeSetKeyRotationThresholdInfo nvml.ConfComputeSetKeyRotationThresholdInfo }
SystemSetConfComputeKeyRotationThresholdInfoCalls gets all the calls that were made to SystemSetConfComputeKeyRotationThresholdInfo. Check the length with:
len(mockedInterface.SystemSetConfComputeKeyRotationThresholdInfoCalls())
func (*Interface) UnitGetCount ¶
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 ¶
UnitGetDevices calls UnitGetDevicesFunc.
func (*Interface) UnitGetDevicesCalls ¶
UnitGetDevicesCalls gets all the calls that were made to UnitGetDevices. Check the length with:
len(mockedInterface.UnitGetDevicesCalls())
func (*Interface) UnitGetFanSpeedInfo ¶
UnitGetFanSpeedInfo calls UnitGetFanSpeedInfoFunc.
func (*Interface) UnitGetFanSpeedInfoCalls ¶
UnitGetFanSpeedInfoCalls gets all the calls that were made to UnitGetFanSpeedInfo. Check the length with:
len(mockedInterface.UnitGetFanSpeedInfoCalls())
func (*Interface) UnitGetHandleByIndex ¶
UnitGetHandleByIndex calls UnitGetHandleByIndexFunc.
func (*Interface) UnitGetHandleByIndexCalls ¶
UnitGetHandleByIndexCalls gets all the calls that were made to UnitGetHandleByIndex. Check the length with:
len(mockedInterface.UnitGetHandleByIndexCalls())
func (*Interface) UnitGetLedState ¶
UnitGetLedState calls UnitGetLedStateFunc.
func (*Interface) UnitGetLedStateCalls ¶
UnitGetLedStateCalls gets all the calls that were made to UnitGetLedState. Check the length with:
len(mockedInterface.UnitGetLedStateCalls())
func (*Interface) UnitGetPsuInfo ¶
UnitGetPsuInfo calls UnitGetPsuInfoFunc.
func (*Interface) UnitGetPsuInfoCalls ¶
UnitGetPsuInfoCalls gets all the calls that were made to UnitGetPsuInfo. Check the length with:
len(mockedInterface.UnitGetPsuInfoCalls())
func (*Interface) UnitGetTemperature ¶
UnitGetTemperature calls UnitGetTemperatureFunc.
func (*Interface) UnitGetTemperatureCalls ¶
UnitGetTemperatureCalls gets all the calls that were made to UnitGetTemperature. Check the length with:
len(mockedInterface.UnitGetTemperatureCalls())
func (*Interface) UnitGetUnitInfo ¶
UnitGetUnitInfo calls UnitGetUnitInfoFunc.
func (*Interface) UnitGetUnitInfoCalls ¶
UnitGetUnitInfoCalls gets all the calls that were made to UnitGetUnitInfo. Check the length with:
len(mockedInterface.UnitGetUnitInfoCalls())
func (*Interface) UnitSetLedState ¶
UnitSetLedState calls UnitSetLedStateFunc.
func (*Interface) UnitSetLedStateCalls ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetTemperature calls GetTemperatureFunc.
func (*Unit) GetTemperatureCalls ¶
GetTemperatureCalls gets all the calls that were made to GetTemperature. Check the length with:
len(mockedUnit.GetTemperatureCalls())
func (*Unit) GetUnitInfo ¶
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 ¶
SetLedState calls SetLedStateFunc.
func (*Unit) SetLedStateCalls ¶
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 ¶
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) // GetCreatablePlacementsFunc mocks the GetCreatablePlacements method. GetCreatablePlacementsFunc func(device nvml.Device) (nvml.VgpuPlacementList, 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) // GetSupportedPlacementsFunc mocks the GetSupportedPlacements method. GetSupportedPlacementsFunc func(device nvml.Device) (nvml.VgpuPlacementList, 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") }, GetCreatablePlacementsFunc: func(device nvml.Device) (nvml.VgpuPlacementList, nvml.Return) { panic("mock out the GetCreatablePlacements 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") }, GetSupportedPlacementsFunc: func(device nvml.Device) (nvml.VgpuPlacementList, nvml.Return) { panic("mock out the GetSupportedPlacements 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) GetCreatablePlacements ¶
func (mock *VgpuTypeId) GetCreatablePlacements(device nvml.Device) (nvml.VgpuPlacementList, nvml.Return)
GetCreatablePlacements calls GetCreatablePlacementsFunc.
func (*VgpuTypeId) GetCreatablePlacementsCalls ¶
func (mock *VgpuTypeId) GetCreatablePlacementsCalls() []struct { Device nvml.Device }
GetCreatablePlacementsCalls gets all the calls that were made to GetCreatablePlacements. Check the length with:
len(mockedVgpuTypeId.GetCreatablePlacementsCalls())
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 ¶
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 ¶
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())
func (*VgpuTypeId) GetSupportedPlacements ¶
func (mock *VgpuTypeId) GetSupportedPlacements(device nvml.Device) (nvml.VgpuPlacementList, nvml.Return)
GetSupportedPlacements calls GetSupportedPlacementsFunc.
func (*VgpuTypeId) GetSupportedPlacementsCalls ¶
func (mock *VgpuTypeId) GetSupportedPlacementsCalls() []struct { Device nvml.Device }
GetSupportedPlacementsCalls gets all the calls that were made to GetSupportedPlacements. Check the length with:
len(mockedVgpuTypeId.GetSupportedPlacementsCalls())