opencl-clhpp-headers
« Back to VersTracker
Description:
C++ language header files for the OpenCL API
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @KhronosGroup  |  formulae.brew.sh
Category: Developer tools
Tags: opencl gpu compute headers c++
Install: brew install opencl-clhpp-headers
About:
The OpenCL C++ headers (opencl-clhpp) provide modern C++ bindings for the OpenCL API, offering a safer and more intuitive interface than the traditional C headers. They leverage C++ features like templates, constructors/destructors, and exceptions to simplify resource management and reduce boilerplate code. This package installs the official Khronos Group C++ header files for developers building OpenCL applications.
Key Features:
  • Modern C++ bindings for OpenCL C API
  • Automatic resource management via RAII
  • Type-safe object wrappers and enums
  • Header-only library, no linking required
Use Cases:
  • Developing high-performance compute applications
  • Interfacing with GPUs and accelerators from C++
  • Simplifying OpenCL context and memory management
Alternatives:
  • opencl-headers – Provides the standard C API headers; clhpp adds C++ abstractions on top.
Version History
Detected Version Rev Change Commit
Nov 3, 2024 2:38pm 1 VERSION_BUMP 2bef4599