Skip to content

nathanccxv/go-opencl

Repository files navigation

Test Go Reference

go-opencl

go-opencl provides a high-level interface for OpenCL devices to run OpenCL programs in Go programs conveniently without delving into the annoying details of OpenCL.

Development Status

WARNING: This project is currently under development and has not been fully tested. Use it at your own risk. We welcome any feedback and contributions.

Requirements

linux

sudo apt install ocl-icd-opencl-dev opencl-headers

windows

This project incorporates OpenCL-Headers and OpenCL-ICD-Loader, which are included in the include-3.0.13 and lib-windows-3.0.13-x64 directories respectively for Windows.

The sources for these components are as follows:

cl-info command

The cl-info command provides information about the OpenCL platforms and devices on your system.

To install cl-info, run the following command:

go install github.com/nathanccxv/go-opencl/cmd/cl-info@latest

OpenCL runner

import cl "github.com/nathanccxv/go-opencl"

Refer to the runner_test.go file or examples for usage examples of the OpenCL runner.

Other resources

OPENCL 3.0 Reference: https://registry.khronos.org/OpenCL/sdk/3.0/docs/man/html/

About

Run OpenCL programs in Go programs easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published