github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/devices/gpu/nvidia/nvml/driver_default.go (about) 1 // +build !linux 2 3 package nvml 4 5 // Initialize nvml library by locating nvml shared object file and calling ldopen 6 func (n *nvmlDriver) Initialize() error { 7 return UnavailableLib 8 } 9 10 // Shutdown stops any further interaction with nvml 11 func (n *nvmlDriver) Shutdown() error { 12 return UnavailableLib 13 } 14 15 // SystemDriverVersion returns installed driver version 16 func (n *nvmlDriver) SystemDriverVersion() (string, error) { 17 return "", UnavailableLib 18 } 19 20 // DeviceCount reports number of available GPU devices 21 func (n *nvmlDriver) DeviceCount() (uint, error) { 22 return 0, UnavailableLib 23 } 24 25 // DeviceInfoByIndex returns DeviceInfo for index GPU in system device list 26 func (n *nvmlDriver) DeviceInfoByIndex(index uint) (*DeviceInfo, error) { 27 return nil, UnavailableLib 28 } 29 30 // DeviceInfoByIndex returns DeviceInfo and DeviceStatus for index GPU in system device list 31 func (n *nvmlDriver) DeviceInfoAndStatusByIndex(index uint) (*DeviceInfo, *DeviceStatus, error) { 32 return nil, nil, UnavailableLib 33 }