Documentation
¶
Overview ¶
Package nvproxy implements proxying for the Nvidia GPU Linux kernel driver: https://github.com/NVIDIA/open-gpu-kernel-modules.
Supported Nvidia GPUs: T4, L4, A100, A10G and H100.
Index ¶
- func CreateDriverDevtmpfsFiles(ctx context.Context, dev *devtmpfs.Accessor, uvmDevMajor uint32) error
- func CreateIndexDevtmpfsFile(ctx context.Context, dev *devtmpfs.Accessor, minor uint32) error
- func Filters() seccomp.SyscallRules
- func GetSupportedDriversAndChecksums() map[DriverVersion]string
- func Init()
- func Register(vfsObj *vfs.VirtualFilesystem, uvmDevMajor uint32) error
- type DriverVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDriverDevtmpfsFiles ¶
func CreateDriverDevtmpfsFiles(ctx context.Context, dev *devtmpfs.Accessor, uvmDevMajor uint32) error
CreateDriverDevtmpfsFiles creates device special files in dev that should always exist when this package is enabled. It does not create per-device files in dev; see CreateIndexDevtmpfsFile.
func CreateIndexDevtmpfsFile ¶
CreateIndexDevtmpfsFile creates the device special file in dev for the device with the given index.
func Filters ¶
func Filters() seccomp.SyscallRules
Filters returns seccomp-bpf filters for this package.
func GetSupportedDriversAndChecksums ¶
func GetSupportedDriversAndChecksums() map[DriverVersion]string
GetSupportedDriversAndChecksums returns supported driver ABIs.
Types ¶
type DriverVersion ¶
type DriverVersion struct {
// contains filtered or unexported fields
}
DriverVersion represents a NVIDIA driver version patch release.
func DriverVersionFrom ¶
func DriverVersionFrom(version string) (DriverVersion, error)
DriverVersionFrom returns a DriverVersion from a string.
func NewDriverVersion ¶
func NewDriverVersion(major, minor, patch int) DriverVersion
NewDriverVersion returns a new driver version.
func (DriverVersion) Equals ¶
func (v DriverVersion) Equals(other DriverVersion) bool
Equals returns true if the two driver versions are equal.
func (DriverVersion) IsGreaterThan ¶
func (v DriverVersion) IsGreaterThan(other DriverVersion) DriverVersion
IsGreaterThan returns the "greater" driver version. IsGreaterThan returns true if v is more recent than other, assuming v and other are on the same dev branch.
func (DriverVersion) String ¶
func (v DriverVersion) String() string