Documentation ¶
Index ¶
- Constants
- 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 ¶
This section is empty.
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 ¶
type VolumeMap ¶
func LookupVolumes ¶
func LookupVolumes(prefix, ver string, vi []VolumeInfo) (vols VolumeMap, err error)
Click to show internal directories.
Click to hide internal directories.