Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robbepop/clpp
A thin header-only wrapper around OpenCL 2.0+ for modern and highlevel C++.
https://github.com/robbepop/clpp
cplusplus cpp modern open-cl opencl wrapper
Last synced: 1 day ago
JSON representation
A thin header-only wrapper around OpenCL 2.0+ for modern and highlevel C++.
- Host: GitHub
- URL: https://github.com/robbepop/clpp
- Owner: Robbepop
- License: mit
- Created: 2015-05-30T23:13:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-11T15:14:37.000Z (about 9 years ago)
- Last Synced: 2024-12-16T04:33:08.941Z (7 days ago)
- Topics: cplusplus, cpp, modern, open-cl, opencl, wrapper
- Language: C++
- Homepage:
- Size: 318 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clpp
A thin header-only wrapper around OpenCL 2.0+ for modern and highlevel C++.Note
----Supports OpenCL 1.1, 1.2 and 2.0.
This does not include vendor specific extensions!How can I use this in my projects?
----------------------------------- Clone this repo and only include the top-level "clpp.hpp" file into your project.
- Set correct include paths of this header-only library while compiling.
- Requires a C++14 standard conform compiler!Dependencies
------------The only depencendies so far are some header-only libraries from boost, namely:
- boost/algorithm/string/split.hpp
- boost/algorithm/string/classification.hpp
- boost/optional.hppThese dependencies might get removed in the future!
Error Handling
--------------- This wrapper has a built-in exception type for every possible OpenCL error code
and works entirely via C++ exception handling.
- It is possible to catch any exception thrown by this library via cl::error::AnyError.
- There is currently no other way of handling errors - this might change in the future!