go-opencl

module
v0.0.0-...-3f86547 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: BSD-3-Clause

README

OpenCL bindings for Go

Documentation at http://godoc.org/github.com/jgillich/go-opencl/cl.

See the test for usage examples.

By default, the OpenCL 1.2 API is exported. To get OpenCL 1.0, set the build tag cl10.

Modifications of this fork (Qendolin)

Changed data []byte to a length int, data unsafe.Pointer for CreateImage, CreateImageSimple, CreateBuffer, EnqueueReadImage and EnqueueWriteImage. unsafe.Pointer allows for any data type and is more useful than forcing a []byte. Because of this change CreateBufferFloat32 has been removed.

Updated ByteSlice to use the new unsafe.Slice.

Applied zadeck's patch

Defined CL_TARGET_OPENCL_VERSION in cl.h

Created go.mod and updated build directives

Added CreateSampler and related types

Directories

Path Synopsis
Package cl provides a binding to the OpenCL api.
Package cl provides a binding to the OpenCL api.

Jump to

Keyboard shortcuts

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