fpgastrategies

package
v0.0.0-...-64df793 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FPGAManager

type FPGAManager struct {
	FPGASpecsList  []FPGASpecs
	FPGASpecsMutex sync.Mutex
	Vendor         string
	Ctx            context.Context
}

func (*FPGAManager) Assign

func (a *FPGAManager) Assign(UUID string, containerID string) error

func (*FPGAManager) Check

func (a *FPGAManager) Check() error

func (*FPGAManager) Discover

func (a *FPGAManager) Discover() error

Discover implements the Discover function of the FPGAManager interface

func (*FPGAManager) Dump

func (a *FPGAManager) Dump() error

dump the FPGASpecsList into a JSON file

func (*FPGAManager) GetAndAssignAvailableFPGAs

func (a *FPGAManager) GetAndAssignAvailableFPGAs(numFPGAs int, containerID string) ([]FPGASpecs, error)

func (*FPGAManager) GetAvailableFPGAs

func (a *FPGAManager) GetAvailableFPGAs(numFPGAs int) ([]FPGASpecs, error)

func (*FPGAManager) GetFPGASpecsList

func (a *FPGAManager) GetFPGASpecsList() []FPGASpecs

func (*FPGAManager) Init

func (a *FPGAManager) Init() error

func (*FPGAManager) Release

func (a *FPGAManager) Release(containerID string) error

func (*FPGAManager) Shutdown

func (a *FPGAManager) Shutdown() error

type FPGAManagerInterface

type FPGAManagerInterface interface {
	Init() error
	Shutdown() error
	GetFPGASpecsList() []FPGASpecs
	Dump() error
	Discover() error
	Check() error
	GetAvailableFPGAs(numFPGAs int) ([]FPGASpecs, error)
	Assign(UUID string, containerID string) error
	Release(UUID string) error
	GetAndAssignAvailableFPGAs(numFPGAs int, containerID string) ([]FPGASpecs, error)
}

type FPGASpecs

type FPGASpecs struct {
	BDF       string
	Shell     string
	LogicUUID string

	ContainerID   string
	DeviceReady   string
	DeviceToMount string
	Available     bool
	Index         int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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