@@ -48,16 +48,16 @@ const (
48
48
)
49
49
50
50
type CDIHandler struct {
51
- logger * logrus.Logger
52
- nvml nvml.Interface
53
- nvdevice nvdevice.Interface
54
- nvcdiDevice nvcdi.Interface
55
- nvcdiClaim nvcdi.Interface
56
- cache * cdiapi.Cache
57
- driverRoot string
58
- devRoot string
59
- targetDriverRoot string
60
- nvidiaCTKPath string
51
+ logger * logrus.Logger
52
+ nvml nvml.Interface
53
+ nvdevice nvdevice.Interface
54
+ nvcdiDevice nvcdi.Interface
55
+ nvcdiClaim nvcdi.Interface
56
+ cache * cdiapi.Cache
57
+ driverRoot string
58
+ devRoot string
59
+ targetDriverRoot string
60
+ nvidiaCDIHookPath string
61
61
62
62
cdiRoot string
63
63
vendor string
@@ -103,7 +103,7 @@ func NewCDIHandler(opts ...cdiOption) (*CDIHandler, error) {
103
103
nvcdi .WithMode ("nvml" ),
104
104
nvcdi .WithVendor (h .vendor ),
105
105
nvcdi .WithClass (h .deviceClass ),
106
- nvcdi .WithNVIDIACDIHookPath (h .nvidiaCTKPath ),
106
+ nvcdi .WithNVIDIACDIHookPath (h .nvidiaCDIHookPath ),
107
107
)
108
108
if err != nil {
109
109
return nil , fmt .Errorf ("unable to create CDI library for devices: %w" , err )
@@ -120,7 +120,7 @@ func NewCDIHandler(opts ...cdiOption) (*CDIHandler, error) {
120
120
nvcdi .WithMode ("nvml" ),
121
121
nvcdi .WithVendor (h .vendor ),
122
122
nvcdi .WithClass (h .claimClass ),
123
- nvcdi .WithNVIDIACDIHookPath (h .nvidiaCTKPath ),
123
+ nvcdi .WithNVIDIACDIHookPath (h .nvidiaCDIHookPath ),
124
124
)
125
125
if err != nil {
126
126
return nil , fmt .Errorf ("unable to create CDI library for claims: %w" , err )
0 commit comments