utils

package
v0.0.0-...-c2d566d Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build_program

func Build_program(context cl.CL_context, device []cl.CL_device_id,
	filename string, options []byte) *cl.CL_program

Create program from a file and compile it

func CHECK_STATUS

func CHECK_STATUS(status cl.CL_int, reference cl.CL_int, cmd string)

func Create_device

func Create_device() []cl.CL_device_id

Find a GPU or CPU associated with the first available platform

func Load_programsource

func Load_programsource(filename string) ([][]byte, []cl.CL_size_t)

Create program from a file and compile it

func Read_image_data

func Read_image_data(filename string) (data []uint16, w, h cl.CL_size_t, err error)

func Write_image_data

func Write_image_data(filename string, data []uint16, w, h cl.CL_size_t) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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