@@ -85,7 +85,7 @@ func (d nvmlDevice) GetPaths() ([]string, error) {
8585
8686// GetComputeCapability returns the CUDA Compute Capability for the device.
8787func (d nvmlDevice ) GetComputeCapability () (string , error ) {
88- major , minor , ret := d .Device . GetCudaComputeCapability ()
88+ major , minor , ret := d .GetCudaComputeCapability ()
8989 if ret != nvml .SUCCESS {
9090 return "" , ret
9191 }
@@ -94,7 +94,7 @@ func (d nvmlDevice) GetComputeCapability() (string, error) {
9494
9595// GetComputeCapability returns the CUDA Compute Capability for the device.
9696func (d nvmlMigDevice ) GetComputeCapability () (string , error ) {
97- parent , ret := d .Device . GetDeviceHandleFromMigDeviceHandle ()
97+ parent , ret := d .GetDeviceHandleFromMigDeviceHandle ()
9898 if ret != nvml .SUCCESS {
9999 return "" , fmt .Errorf ("failed to get parent device: %w" , ret )
100100 }
@@ -186,7 +186,7 @@ func (d nvmlMigDevice) GetNumaNode() (bool, int, error) {
186186
187187// GetTotalMemory returns the total memory available on the device.
188188func (d nvmlDevice ) GetTotalMemory () (uint64 , error ) {
189- info , ret := d .Device . GetMemoryInfo ()
189+ info , ret := d .GetMemoryInfo ()
190190 if ret != nvml .SUCCESS {
191191 return 0 , ret
192192 }
@@ -195,7 +195,7 @@ func (d nvmlDevice) GetTotalMemory() (uint64, error) {
195195
196196// GetTotalMemory returns the total memory available on the device.
197197func (d nvmlMigDevice ) GetTotalMemory () (uint64 , error ) {
198- info , ret := d .Device . GetMemoryInfo ()
198+ info , ret := d .GetMemoryInfo ()
199199 if ret != nvml .SUCCESS {
200200 return 0 , ret
201201 }
0 commit comments