cuda

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: NCSA Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeviceCtl      = "/dev/nvidiactl"
	DeviceUVM      = "/dev/nvidia-uvm"
	DeviceUVMTools = "/dev/nvidia-uvm-tools"
)

Variables

View Source
var (
	VolumeMap   volumeMap
	VolumesPath = "/var/lib/rai-cuda/volumes"
	Volumes     = []VolumeInfo{
		{
			Name:         "rai-cuda",
			Mountpoint:   "/usr/local/nvidia",
			MountOptions: "ro",
			Components: components{
				"binaries": {

					"nvidia-cuda-mps-control",
					"nvidia-cuda-mps-server",
					"nvidia-debugdump",
					"nvidia-persistenced",
					"nvidia-smi",
				},
				"libraries": {

					"libnvidia-ml.so",
					"libcuda.so",
					"libnvidia-ptxjitcompiler.so",
					"libnvidia-fatbinaryloader.so",
					"libnvidia-opencl.so",
					"libnvidia-compiler.so",

					"libvdpau_nvidia.so",
					"libnvidia-encode.so",
					"libnvcuvid.so",
					"libnvidia-fbc.so",
					"libnvidia-ifr.so",

					"libGL.so",
					"libGLX.so",
					"libOpenGL.so",
					"libGLESv1_CM.so",
					"libGLESv2.so",
					"libEGL.so",
					"libGLdispatch.so",

					"libGLX_nvidia.so",
					"libEGL_nvidia.so",
					"libGLESv2_nvidia.so",
					"libGLESv1_CM_nvidia.so",
					"libnvidia-eglcore.so",
					"libnvidia-egl-wayland.so",
					"libnvidia-glcore.so",
					"libnvidia-tls.so",
					"libnvidia-glsi.so",
				},
			},
		},
	}
)

Functions

func LookupVolumes

func LookupVolumes(prefix string) (vols volumeMap, err error)

func Serve

func Serve()

Types

type CUDADriver

type CUDADriver struct{}

func (CUDADriver) Capabilities

func (CUDADriver) Capabilities() *volume.CapabilitiesResponse

func (CUDADriver) Create

func (CUDADriver) Create(req *volume.CreateRequest) error

func (CUDADriver) Get

func (CUDADriver) List

func (CUDADriver) List() (*volume.ListResponse, error)

func (CUDADriver) Mount

func (CUDADriver) Path

func (CUDADriver) Remove

func (CUDADriver) Remove(req *volume.RemoveRequest) error

func (CUDADriver) Unmount

func (CUDADriver) Unmount(req *volume.UnmountRequest) error

type FileCloneStrategy

type FileCloneStrategy interface {
	Clone(src, dst string) error
}

type LinkStrategy

type LinkStrategy struct{}

func (LinkStrategy) Clone

func (s LinkStrategy) Clone(src, dst string) error

type Volume

type Volume struct {
	*VolumeInfo

	Path    string
	Version string
	// contains filtered or unexported fields
}

func (*Volume) Create

func (v *Volume) Create(s FileCloneStrategy) (err error)

func (*Volume) Exists

func (v *Volume) Exists(version ...string) (bool, error)

func (*Volume) ListVersions

func (v *Volume) ListVersions() ([]string, error)

func (*Volume) Remove

func (v *Volume) Remove(version ...string) error

type VolumeInfo

type VolumeInfo struct {
	Name         string
	Mountpoint   string
	MountOptions string
	Components   components
}

Jump to

Keyboard shortcuts

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