cl

package
v1.25.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cl was borrowed from the go-opencl library which is more complex and doesn't compile well for our needs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

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

func (*Device) GlobalMemSize

func (d *Device) GlobalMemSize() int64

Size of global device memory in bytes.

type DeviceType

type DeviceType uint
const (
	DeviceTypeAll DeviceType = C.CL_DEVICE_TYPE_ALL
)

type ErrOther

type ErrOther int

func (ErrOther) Error

func (e ErrOther) Error() string

type Platform

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

func GetPlatforms

func GetPlatforms() ([]*Platform, error)

Obtain the list of platforms available.

func (*Platform) GetAllDevices

func (p *Platform) GetAllDevices() ([]*Device, error)

Jump to

Keyboard shortcuts

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