Skip to content

Commit

Permalink
Merge pull request #85 from elezar/fix-bug-in-vgpu
Browse files Browse the repository at this point in the history
Fix infinite recursion in SetVgpuVersion
  • Loading branch information
elezar authored Oct 16, 2023
2 parents cda5413 + 1979f4c commit 2c8aa45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gen/nvml/vgpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func GetVgpuVersion() (VgpuVersion, VgpuVersion, Return) {

// nvml.SetVgpuVersion()
func SetVgpuVersion(VgpuVersion *VgpuVersion) Return {
return SetVgpuVersion(VgpuVersion)
return nvmlSetVgpuVersion(VgpuVersion)
}

// nvml.VgpuInstanceClearAccountingPids()
Expand Down
2 changes: 1 addition & 1 deletion pkg/nvml/vgpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func GetVgpuVersion() (VgpuVersion, VgpuVersion, Return) {

// nvml.SetVgpuVersion()
func SetVgpuVersion(VgpuVersion *VgpuVersion) Return {
return SetVgpuVersion(VgpuVersion)
return nvmlSetVgpuVersion(VgpuVersion)
}

// nvml.VgpuInstanceClearAccountingPids()
Expand Down

0 comments on commit 2c8aa45

Please sign in to comment.