3
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2008-2009 The Khronos Group Inc.
|
|
3 *
|
|
4 * Permission is hereby granted, free of charge, to any person obtaining a
|
|
5 * copy of this software and/or associated documentation files (the
|
|
6 * "Materials"), to deal in the Materials without restriction, including
|
|
7 * without limitation the rights to use, copy, modify, merge, publish,
|
|
8 * distribute, sublicense, and/or sell copies of the Materials, and to
|
|
9 * permit persons to whom the Materials are furnished to do so, subject to
|
|
10 * the following conditions:
|
|
11 *
|
|
12 * The above copyright notice and this permission notice shall be included
|
|
13 * in all copies or substantial portions of the Materials.
|
|
14 *
|
|
15 * THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
21 * MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
|
22 ******************************************************************************/
|
|
23
|
|
24 /* $Revision: 10424 $ on $Date: 2010-02-17 14:34:49 -0800 (Wed, 17 Feb 2010) $ */
|
|
25
|
|
26 #ifndef __CL_EXT_H
|
|
27 #define __CL_EXT_H
|
|
28
|
|
29 #ifdef __cplusplus
|
|
30 extern "C" {
|
|
31 #endif
|
|
32
|
|
33 /* cl_khr_fp64 extension - no extension #define since it has no functions */
|
|
34 #define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
|
|
35
|
|
36
|
|
37 /* cl_khr_fp16 extension - no extension #define since it has no functions */
|
|
38 #define CL_DEVICE_HALF_FP_CONFIG 0x1033
|
|
39
|
|
40
|
|
41 /* cl_khr_icd extension */
|
|
42 #define cl_khr_icd 1
|
|
43
|
|
44 /* cl_platform_info */
|
|
45 #define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920
|
|
46
|
|
47 /* Additional Error Codes */
|
|
48 #define CL_PLATFORM_NOT_FOUND_KHR -1001
|
|
49
|
|
50 extern CL_API_ENTRY cl_int CL_API_CALL
|
|
51 clIcdGetPlatformIDsKHR(cl_uint /* num_entries */,
|
|
52 cl_platform_id * /* platforms */,
|
|
53 cl_uint * /* num_platforms */);
|
|
54
|
|
55 #ifdef __cplusplus
|
|
56 }
|
|
57 #endif
|
|
58
|
|
59
|
|
60 #endif /* __CL_EXT_H */
|