Documentation ¶
Index ¶
- Constants
- Variables
- func Copy(src, dst string) error
- func GetCUDAVersion() (string, error)
- func GetControlDevicePaths() ([]string, error)
- func GetDriverVersion() (string, error)
- func Init() error
- func LoadUVM() error
- func Shutdown() error
- type CUDADevice
- type Device
- type DeviceStatus
- type FileCloneStrategy
- type LinkOrCopyStrategy
- type LinkStrategy
- type LookupStrategy
- type NVMLDevice
- type NVMLDeviceStatus
- type Volume
- type VolumeInfo
- type VolumeMap
Constants ¶
View Source
const ( DockerPlugin = "nvidia-docker" DeviceCtl = "/dev/nvidiactl" DeviceUVM = "/dev/nvidia-uvm" DeviceUVMTools = "/dev/nvidia-uvm-tools" )
Variables ¶
View Source
var Volumes = []VolumeInfo{
{
"nvidia_driver",
"/usr/local/nvidia",
"ro",
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 GetCUDAVersion ¶
func GetControlDevicePaths ¶
func GetDriverVersion ¶
Types ¶
type CUDADevice ¶
type Device ¶
type Device struct { *NVMLDevice *CUDADevice }
func LookupDevices ¶
func LookupDevices(s ...LookupStrategy) (devs []Device, err error)
func (*Device) Status ¶
func (d *Device) Status() (*DeviceStatus, error)
type DeviceStatus ¶
type DeviceStatus struct {
*NVMLDeviceStatus
}
type FileCloneStrategy ¶
type LinkOrCopyStrategy ¶
type LinkOrCopyStrategy struct{}
func (LinkOrCopyStrategy) Clone ¶
func (s LinkOrCopyStrategy) Clone(src, dst string) error
type LinkStrategy ¶
type LinkStrategy struct{}
func (LinkStrategy) Clone ¶
func (s LinkStrategy) Clone(src, dst string) error
type NVMLDevice ¶
type NVMLDeviceStatus ¶
type NVMLDeviceStatus nvml.DeviceStatus
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.