commit | b04034a17e214322772c19e7ccd2adf0cd306920 | [log] [tgz] |
---|---|---|
author | Ben Ashbaugh <ben.ashbaugh@intel.com> | Tue Jun 09 10:49:23 2020 -0700 |
committer | GitHub <noreply@github.com> | Tue Jun 09 10:49:23 2020 -0700 |
tree | b04a12243819779c9f076f3aae1e197d4f32cd93 | |
parent | dbb17cd93e338de29d5dc43e3c4bb74bf5db7e36 [diff] |
add APIs and enums for cl_intel_unified_shared_memory (#65) * add APIs and enums for cl_intel_unified_shared_memory * remove CL_MEM_ALLOC_DEFAULT_INTEL This value is not in the latest rev of the spec. * add aliases for cl_mem_migration_flags Fixes compilation pre-OpenCL 1.2, where cl_mem_migration_flags is not defined. * for now, remove aliases to cl_mem_migration_flags Instead of adding aliases to cl_mem_migration_flags and associated enums, restrict the clEnqueueMigrateMemINTEL API to OpenCL 1.2 or newer, which satisfies all current use-cases. If needed, the aliases can be re-introduced at a later date, since adding them does not change the ABI.
This repository contains C language headers for the OpenCL API.
The authoritative public repository for these headers is located at:
https://github.com/KhronosGroup/OpenCL-Headers
Issues, proposed fixes for issues, and other suggested changes should be created using Github.
The OpenCL API headers in this repository are Unified headers and are designed to work with all released OpenCL versions. This differs from previous OpenCL API headers, where version-specific API headers either existed in separate branches, or in separate folders in a branch.
By default, the OpenCL API headers in this repository are for the latest OpenCL version (currently OpenCL 2.2). To use these API headers to target a different OpenCL version, an application may #define
the preprocessor value CL_TARGET_OPENCL_VERSION
before including the OpenCL API headers. The CL_TARGET_OPENCL_VERSION
is a three digit decimal value representing the OpenCL API version.
For example, to enforce usage of no more than the OpenCL 1.2 APIs, you may include the OpenCL API headers as follows:
#define CL_TARGET_OPENCL_VERSION 120 #include <CL/opencl.h>
README.md This file LICENSE Source license for the OpenCL API headers CL/ Unified OpenCL API headers tree
See LICENSE.
OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission by Khronos.