Skip to content

Instantly share code, notes, and snippets.

@mdoube
mdoube / OpenCLKernel.hpp
Created September 13, 2024 11:35 — forked from rjeschke/OpenCLKernel.hpp
OpenCL C language feature emulation include file for Eclipse CDT. This header allows OpenCL kernels to be edited in Eclipse using C++ mode with syntax highlighting and auto-completion. The header contains all basic types and functions for OpenCL 1.2. 'Half' support and extensions are not yet implemented.
/*
* Copyright (C) 2013 René Jeschke <rene_jeschke@yahoo.de>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software