gpu

package
v0.0.0-...-e62a7ec Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BestFitMemory

type BestFitMemory struct{}

BestFitMemory struct for bestfit memory policy

func (*BestFitMemory) OnChooseGPU

func (s *BestFitMemory) OnChooseGPU(gpuMemReq uint32, gpuNodes []*models.GPUNode, numWorkerPerGPU uint32) (string, uint32, int, *models.GPUNode)

OnChooseGPU implements best fit policy regarding memory

type FirstFitMemory

type FirstFitMemory struct{}

FirstFitMemory struct for first fit memory policy

func (*FirstFitMemory) OnChooseGPU

func (s *FirstFitMemory) OnChooseGPU(gpuMemReq uint32, gpuNodes []*models.GPUNode, numWorkerPerGPU uint32) (string, uint32, int, *models.GPUNode)

OnChooseGPU implements first fit policy regarding memory

type GPUSelection

type GPUSelection interface {
	OnChooseGPU(gpuMemReq uint32, gpuNodes []*models.GPUNode, numWorkerPerGPU uint32) (string, uint32, *models.GPUNode)
}

GPUSelection is the GPU scheduling policy interface

Jump to

Keyboard shortcuts

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