gpu

package
v0.0.0-...-958ef34 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gpu

type Gpu struct {
	restapi.Gpu
	// contains filtered or unexported fields
}

type GpuSet

type GpuSet struct {
	// contains filtered or unexported fields
}

func NewGpuSet

func NewGpuSet(apiGpus []restapi.Gpu) *GpuSet

func NewGpuSetFromJson

func NewGpuSetFromJson(data []byte) (*GpuSet, error)

func (*GpuSet) Count

func (gpuSet *GpuSet) Count() int

func (*GpuSet) Find

func (gpuSet *GpuSet) Find(requirements []restapi.GpuRequirements) (*SelectedGpuSet, error)

func (*GpuSet) GetGpus

func (gpuSet *GpuSet) GetGpus() []restapi.Gpu

func (*GpuSet) GetPciBusString

func (gpuSet *GpuSet) GetPciBusString() string

func (*GpuSet) Select

func (gpuSet *GpuSet) Select(chosenGpus []restapi.SessionGpu) (*SelectedGpuSet, error)

type PCIAddress

type PCIAddress struct {
	Domain   int32
	Bus      int32
	Device   int32
	Function int32
}

func NewPCIAddressFromString

func NewPCIAddressFromString(pciIdentifier string) PCIAddress

type SelectedGpu

type SelectedGpu struct {
	// contains filtered or unexported fields
}

type SelectedGpuSet

type SelectedGpuSet struct {
	// contains filtered or unexported fields
}

func (*SelectedGpuSet) Count

func (gpuSet *SelectedGpuSet) Count() int

func (*SelectedGpuSet) GetGpus

func (gpuSet *SelectedGpuSet) GetGpus() []restapi.SessionGpu

func (*SelectedGpuSet) GetPciBusString

func (gpuSet *SelectedGpuSet) GetPciBusString() string

func (*SelectedGpuSet) Release

func (gpuSet *SelectedGpuSet) Release()

Jump to

Keyboard shortcuts

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