2015-12-04 14:47:52 +00:00
|
|
|
/**
|
|
|
|
* Author......: Jens Steube <jens.steube@gmail.com>
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-04-20 19:19:15 +00:00
|
|
|
#ifdef cl_khr_byte_addressable_store
|
2015-12-15 11:04:22 +00:00
|
|
|
#pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
|
2016-04-20 19:19:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef cl_clang_storage_class_specifiers
|
2016-04-19 21:09:27 +00:00
|
|
|
#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
|
2016-04-20 19:19:15 +00:00
|
|
|
#endif
|
2015-12-15 11:04:22 +00:00
|
|
|
|
2015-12-04 14:47:52 +00:00
|
|
|
/**
|
|
|
|
* vendor specific
|
|
|
|
*/
|
|
|
|
|
2016-04-26 11:59:14 +00:00
|
|
|
#if VENDOR_ID == (1 << 0)
|
2015-12-04 14:47:52 +00:00
|
|
|
#define IS_AMD
|
2016-04-26 11:59:14 +00:00
|
|
|
#elif VENDOR_ID == (1 << 6)
|
2015-12-04 14:47:52 +00:00
|
|
|
#define IS_NV
|
2016-01-13 16:10:40 +00:00
|
|
|
#else
|
2016-01-07 19:14:34 +00:00
|
|
|
#define IS_GENERIC
|
2016-01-04 12:17:20 +00:00
|
|
|
#endif
|
|
|
|
|
2015-12-04 14:47:52 +00:00
|
|
|
/**
|
|
|
|
* AMD specific
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef IS_AMD
|
2016-04-21 02:27:26 +00:00
|
|
|
#ifndef cl_clang_storage_class_specifiers
|
2016-01-04 12:17:20 +00:00
|
|
|
#pragma OPENCL EXTENSION cl_amd_media_ops : enable
|
2015-12-04 14:47:52 +00:00
|
|
|
#pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
|
|
|
|
#endif
|
2016-04-21 02:27:26 +00:00
|
|
|
#endif
|
2015-12-04 14:47:52 +00:00
|
|
|
|
2015-12-15 11:04:22 +00:00
|
|
|
/**
|
|
|
|
* NV specific
|
|
|
|
*/
|
2015-12-04 14:47:52 +00:00
|
|
|
|
|
|
|
#ifdef IS_NV
|
|
|
|
#endif
|
2016-01-23 14:32:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Generic
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef IS_GENERIC
|
2016-04-19 21:09:27 +00:00
|
|
|
#endif
|