nvproxy

package
v0.0.0-...-e4c45ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: Apache-2.0, MIT Imports: 32 Imported by: 0

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

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

func CreateIndexDevtmpfsFile(ctx context.Context, dev *devtmpfs.Accessor, minor uint32) error

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.

func Init

func Init()

Init initializes abis global map.

func Register

func Register(vfsObj *vfs.VirtualFilesystem, uvmDevMajor uint32) error

Register registers all devices implemented by this package in vfsObj.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL