aboutsummaryrefslogtreecommitdiffstats
path: root/resources/includes/CL_orig/cl_ext.h
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-21 00:02:28 +0100
committerMichael Bien <[email protected]>2010-02-21 00:02:28 +0100
commitca5cc5ab7ce9ccd0351ae4d936cab85f8cdcc889 (patch)
tree2cef7ce1dcdd663fc37f081fc71a7ff92b353045 /resources/includes/CL_orig/cl_ext.h
parent8aed6c7f84eea5403422ded1cbb9b90073463d70 (diff)
updated OpenCL headers to newest version (Wed, 17 Feb 2010).
Diffstat (limited to 'resources/includes/CL_orig/cl_ext.h')
-rw-r--r--resources/includes/CL_orig/cl_ext.h48
1 files changed, 15 insertions, 33 deletions
diff --git a/resources/includes/CL_orig/cl_ext.h b/resources/includes/CL_orig/cl_ext.h
index e94be2a4..dbe8424d 100644
--- a/resources/includes/CL_orig/cl_ext.h
+++ b/resources/includes/CL_orig/cl_ext.h
@@ -21,6 +21,8 @@
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
******************************************************************************/
+/* $Revision: 10424 $ on $Date: 2010-02-17 14:34:49 -0800 (Wed, 17 Feb 2010) $ */
+
#ifndef __CL_EXT_H
#define __CL_EXT_H
@@ -28,47 +30,27 @@
extern "C" {
#endif
-// enum can be used if cl_khr_fp64 extension is supported by the OpenCL implementation.
+/* cl_khr_fp64 extension - no extension #define since it has no functions */
#define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
-// enum can be used if cl_khr_fp16 extension is supported by the OpenCL implementation.
-#define CL_DEVICE_HALF_FP_CONFIG 0x1033
-
-
-#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000
-#define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001
-#define CL_DEVICE_REGISTERS_PER_BLOCK_NV 0x4002
-#define CL_DEVICE_WARP_SIZE_NV 0x4003
-#define CL_DEVICE_GPU_OVERLAP_NV 0x4004
-#define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005
-#define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006
+/* cl_khr_fp16 extension - no extension #define since it has no functions */
+#define CL_DEVICE_HALF_FP_CONFIG 0x1033
-typedef cl_uint cl_gl_context_info;
-/* cl_khr_gl_sharing */
-typedef cl_int (CL_API_CALL * clGetGLContextInfoKHR_fn)
- (const cl_context_properties *properties,
- cl_gl_context_info param_name,
- size_t param_value_size,
- void *param_value,
- size_t *param_value_size_ret);
+/* cl_khr_icd extension */
+#define cl_khr_icd 1
-cl_int CL_API_CALL clGetGLContextInfoKHR(const cl_context_properties *properties,
- cl_gl_context_info param_name,
- size_t param_value_size,
- void *param_value,
- size_t *param_value_size_ret);
+/* cl_platform_info */
+#define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920
-#define CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR -63
-#define CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR 0x2006
-#define CL_DEVICES_FOR_GL_CONTEXT_KHR 0x2007
-#define CL_GL_CONTEXT_KHR 0x2008
-#define CL_EGL_DISPLAY_KHR 0x2009
-#define CL_GLX_DISPLAY_KHR 0x200A
-#define CL_WGL_HDC_KHR 0x200B
-#define CL_CGL_SHAREGROUP_KHR 0x200C
+/* Additional Error Codes */
+#define CL_PLATFORM_NOT_FOUND_KHR -1001
+extern CL_API_ENTRY cl_int CL_API_CALL
+clIcdGetPlatformIDsKHR(cl_uint /* num_entries */,
+ cl_platform_id * /* platforms */,
+ cl_uint * /* num_platforms */);
#ifdef __cplusplus
}