Categorygithub.com/CyberChainXyz/go-opencl
repository
0.0.0-20241128114544-32128930ded4
Repository: https://github.com/cyberchainxyz/go-opencl.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

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/CyberChainXyz/go-opencl/cmd/cl-info@latest

OpenCL runner

import cl "github.com/CyberChainXyz/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/