gpuisolation

package
v0.0.0-...-46ef9cd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: GPL-3.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package gpuisolation provides the exclusive GPU-device lease boundary used in front of a reviewed container backend. Device aliases are fixed by the operator and never selected by a remote request. The backend remains responsible for translating aliases into an audited OCI device injection.

Index

Constants

View Source
const MaxDevices = 64

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	RunIsolatedOnDevices(context.Context, executor.ContainerRequest, []byte, []string) (executor.Result, error)
}

type Client

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

func New

func New(aliases []string, backend Backend) (*Client, error)

func (*Client) Available

func (c *Client) Available() int

func (*Client) RunIsolated

func (c *Client) RunIsolated(ctx context.Context, request executor.ContainerRequest, input []byte) (result executor.Result, resultErr error)

Jump to

Keyboard shortcuts

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