gpu

package
v0.0.0-...-6a277b3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct{}

Device describes a GPU computing node.

func NewDevice

func NewDevice() *Device

NewDevice returns a new GPU-backed device instance.

func (*Device) Square

func (*Device) Square(in []float32) []float32

Square implements the compute.DeviceDevice interface.

func (*Device) Sum

func (*Device) Sum(in []float32) float32

Sum implements the compute.DeviceDevice interface.

Jump to

Keyboard shortcuts

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