Documentation ¶
Index ¶
- Constants
- Variables
- func LookupVolumes(prefix string) (vols volumeMap, err error)
- func Serve()
- type CUDADriver
- func (CUDADriver) Capabilities() *volume.CapabilitiesResponse
- func (CUDADriver) Create(req *volume.CreateRequest) error
- func (CUDADriver) Get(req *volume.GetRequest) (*volume.GetResponse, error)
- func (CUDADriver) List() (*volume.ListResponse, error)
- func (c CUDADriver) Mount(req *volume.MountRequest) (*volume.MountResponse, error)
- func (c CUDADriver) Path(req *volume.PathRequest) (*volume.PathResponse, error)
- func (CUDADriver) Remove(req *volume.RemoveRequest) error
- func (CUDADriver) Unmount(req *volume.UnmountRequest) error
- type FileCloneStrategy
- type LinkStrategy
- type Volume
- type VolumeInfo
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 ¶
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) Get(req *volume.GetRequest) (*volume.GetResponse, error)
func (CUDADriver) List ¶
func (CUDADriver) List() (*volume.ListResponse, error)
func (CUDADriver) Mount ¶
func (c CUDADriver) Mount(req *volume.MountRequest) (*volume.MountResponse, error)
func (CUDADriver) Path ¶
func (c CUDADriver) Path(req *volume.PathRequest) (*volume.PathResponse, error)
func (CUDADriver) Remove ¶
func (CUDADriver) Remove(req *volume.RemoveRequest) error
func (CUDADriver) Unmount ¶
func (CUDADriver) Unmount(req *volume.UnmountRequest) error
type FileCloneStrategy ¶
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) ListVersions ¶
type VolumeInfo ¶
Click to show internal directories.
Click to hide internal directories.