@@ -51,14 +51,6 @@ const (
5151 procNvCapsPath = "/proc/driver/nvidia/capabilities"
5252)
5353
54- func getTalosLibrarySearchPaths () []string {
55- return []string {
56- "/driver-root/usr/local/glibc/usr/lib" ,
57- "/driver-root/usr/local/glibc/lib" ,
58- "/driver-root/usr/local/glibc/lib64" ,
59- }
60- }
61-
6254type CDIHandler struct {
6355 logger * logrus.Logger
6456 nvml nvml.Interface
@@ -116,7 +108,6 @@ func NewCDIHandler(opts ...cdiOption) (*CDIHandler, error) {
116108 nvcdi .WithVendor (h .vendor ),
117109 nvcdi .WithClass (h .deviceClass ),
118110 nvcdi .WithNVIDIACDIHookPath (h .nvidiaCDIHookPath ),
119- nvcdi .WithLibrarySearchPaths (getTalosLibrarySearchPaths ()),
120111 )
121112 if err != nil {
122113 return nil , fmt .Errorf ("unable to create CDI library for devices: %w" , err )
@@ -134,7 +125,6 @@ func NewCDIHandler(opts ...cdiOption) (*CDIHandler, error) {
134125 nvcdi .WithVendor (h .vendor ),
135126 nvcdi .WithClass (h .claimClass ),
136127 nvcdi .WithNVIDIACDIHookPath (h .nvidiaCDIHookPath ),
137- nvcdi .WithLibrarySearchPaths (getTalosLibrarySearchPaths ()),
138128 )
139129 if err != nil {
140130 return nil , fmt .Errorf ("unable to create CDI library for claims: %w" , err )
0 commit comments