Documentation
¶
Index ¶
- type Driver
- func (r *Driver) Configs() lookup.Locator
- func (r *Driver) DriverLibraryLocator(additionalDirs ...string) (lookup.Locator, error)
- func (r *Driver) Files(opts ...lookup.Option) lookup.Locator
- func (r *Driver) GetLibcudaParentDir() (string, error)
- func (r *Driver) GetLibcudasoPath() (string, error)
- func (r *Driver) Libraries() lookup.Locator
- func (r *Driver) RelativeToRoot(path string) string
- func (r *Driver) Version() (string, error)
- type Option
- type Versioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
sync.Mutex
// Root represents the root from the perspective of the driver libraries and binaries.
Root string
// contains filtered or unexported fields
}
Driver represents a filesystem in which a set of drivers or devices is defined.
func (*Driver) Configs ¶
Configs returns a locator for driver configs. If configSearchPaths is specified, these paths are used as absolute paths, otherwise, /etc and /usr/share are searched.
func (*Driver) DriverLibraryLocator ¶ added in v1.18.0
func (*Driver) GetLibcudaParentDir ¶ added in v1.18.0
func (*Driver) GetLibcudasoPath ¶ added in v1.18.0
GetLibcudaParentDir returns the cached libcuda.so path if possible. If this has not yet been initialized, the path is first detected and then returned.
func (*Driver) RelativeToRoot ¶ added in v1.16.0
RelativeToRoot returns the specified path relative to the driver root.
type Option ¶
type Option func(*options)
func WithConfigSearchPaths ¶
func WithDriverRoot ¶
func WithLibrarySearchPaths ¶
func WithLogger ¶
func WithVersioner ¶ added in v1.18.0
Click to show internal directories.
Click to hide internal directories.