cl_ext.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. /* $Revision: 10424 $ on $Date: 2010-02-17 14:34:49 -0800 (Wed, 17 Feb 2010) $ */
  24. #ifndef __CL_EXT_H
  25. #define __CL_EXT_H
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /* cl_khr_fp64 extension - no extension #define since it has no functions */
  30. #define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
  31. /* cl_khr_fp16 extension - no extension #define since it has no functions */
  32. #define CL_DEVICE_HALF_FP_CONFIG 0x1033
  33. /* cl_khr_icd extension */
  34. #define cl_khr_icd 1
  35. /* cl_platform_info */
  36. #define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920
  37. /* Additional Error Codes */
  38. #define CL_PLATFORM_NOT_FOUND_KHR -1001
  39. extern CL_API_ENTRY cl_int CL_API_CALL
  40. clIcdGetPlatformIDsKHR(cl_uint /* num_entries */,
  41. cl_platform_id * /* platforms */,
  42. cl_uint * /* num_platforms */);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif /* __CL_EXT_H */