This repository was archived by the owner on Jan 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Go wrapper library for OpenCL 2.2
2
2
3
+ This library provides a complete wrapper for the OpenCL 2.2 API.
4
+ If you require a different API level, refer to [ the opencl-go project] [ opencl-go ] to see which versions are available.
5
+
3
6
** This is work-in-progress. The wrapper is not yet in a state to provide useful functionality**
4
7
8
+ ## Usage
9
+
10
+ To build and work with this library, you need an OpenCL SDK installed on your system.
11
+ Refer to [ the documentation on opencl-go] [ opencl-go ] on how to do this.
12
+
13
+ The API requires knowledge of the [ OpenCL API] [ opencl-api ] . While the wrapper hides some low-level C-API details,
14
+ there is still heavy use of ` unsafe.Pointer ` and the potential for memory access-violations if used wrong.
15
+
16
+ [ opencl-api ] :[https://registry.khronos.org/OpenCL/sdk/2.2/docs/man/html/]
17
+ [ opencl-go ] :[https://opencl-go.github.com]
18
+
5
19
## License
6
20
7
21
This project is based on the MIT License. See ` LICENSE ` file.
Original file line number Diff line number Diff line change 1
1
// Package cl22 provides a wrapper API to OpenCL 2.2.
2
2
//
3
+ // If you require a different API level, refer to the opencl-go project (https://opencl-go.github.com) to see which
4
+ // versions are available.
5
+ //
6
+ // To build and work with this library, you need an OpenCL SDK installed on your system.
7
+ // Refer to the documentation on opencl-go (https://opencl-go.github.com) on how to do this.
8
+ //
9
+ // The API requires knowledge of the OpenCL API. While the wrapper hides some low-level C-API details,
10
+ // there is still heavy use of `unsafe.Pointer` and the potential for memory access-violations if used wrong.
11
+ //
3
12
// This library wraps/represents constants, types, and functions as closely to the original API as possible -
4
13
// while applying Go idioms.
5
14
// It also provides convenience functions where practical. For example: PlatformInfoString().
You can’t perform that action at this time.
0 commit comments