Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

741 B
Raw Blame
//go:build !linux && !windows

package intel

import (
	"fmt"
	"log/slog"
	"runtime"

	"github.com/openlit/openlit/opentelemetry-gpu-collector/internal/gpu"
)

type Device struct {
	info gpu.DeviceInfo
}

func (d *Device) Info() gpu.DeviceInfo            { return d.info }
func (d *Device) Collect() (*gpu.Snapshot, error) { return nil, errUnsupported() }
func (d *Device) CollectProcesses() ([]gpu.ProcessUsage, error) {
	return nil, errUnsupported()
}
func (d *Device) Close() {}

func DiscoverDevices(_ []string, _ int, _ *slog.Logger) ([]*Device, error) {
	return nil, errUnsupported()
}

func errUnsupported() error {
	return fmt.Errorf("Intel GPU monitoring requires linux or windows (current: %s/%s)", runtime.GOOS, runtime.GOARCH)
}