nvidia

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2016 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DockerPlugin = "nvidia-docker"

Variables

View Source
var Volumes = []VolumeInfo{
	{
		"nvidia_driver",
		"/usr/local/nvidia",
		components{
			"binaries": {

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

				"libnvidia-ml.so",
				"libcuda.so",

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

				"libnvidia-fbc.so",
				"libnvidia-ifr.so",

				"libnvidia-opencl.so",
				"libnvidia-compiler.so",

				"libGL.so",
				"libnvidia-glcore.so",
				"libnvidia-tls.so",

				"libEGL_nvidia.so",
				"libGLESv1_CM.so",
				"libGLESv2.so",
				"libnvidia-eglcore.so",
				"libnvidia-glsi.so",
			},
		},
	},
}

Functions

func GetCUDAVersion

func GetCUDAVersion() (string, error)

func GetDriverVersion

func GetDriverVersion() (string, error)

func Init

func Init() error

func LoadUVM

func LoadUVM() error

func LookupDevicePaths

func LookupDevicePaths() ([]string, error)

func Shutdown

func Shutdown() error

Types

type CUDADev

type CUDADev cuda.Device

type Device

type Device struct {
	*NVMLDev
	*CUDADev
}

func LookupDevices

func LookupDevices() (devs []Device, err error)

func (*Device) Status

func (d *Device) Status() (*DeviceStatus, error)

type DeviceStatus

type DeviceStatus struct {
	*NVMLDevStatus
}

type NVMLDev

type NVMLDev nvml.Device

type NVMLDevStatus

type NVMLDevStatus nvml.DeviceStatus

type Volume

type Volume struct {
	*VolumeInfo

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

func (*Volume) Create

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

func (*Volume) CreateAt

func (v *Volume) CreateAt(path string) error

func (*Volume) Exists

func (v *Volume) Exists() (bool, error)

func (*Volume) Remove

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

type VolumeInfo

type VolumeInfo struct {
	Name       string
	Mountpoint string
	Components components
}

type VolumeMap

type VolumeMap map[string]*Volume

func LookupVolumes

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

Jump to

Keyboard shortcuts

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