2015-12-04 14:47:52 +00:00
|
|
|
/**
|
|
|
|
* Author......: Jens Steube <jens.steube@gmail.com>
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2015-12-15 11:04:22 +00:00
|
|
|
#pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
|
|
|
|
|
2015-12-04 14:47:52 +00:00
|
|
|
/**
|
|
|
|
* vendor specific
|
|
|
|
*/
|
|
|
|
|
2015-12-16 09:00:33 +00:00
|
|
|
#if VENDOR_ID == 4098
|
2015-12-04 14:47:52 +00:00
|
|
|
#define IS_AMD
|
|
|
|
#endif
|
|
|
|
|
2015-12-15 11:04:22 +00:00
|
|
|
#if VENDOR_ID == 4318
|
2015-12-04 14:47:52 +00:00
|
|
|
#define IS_NV
|
|
|
|
#endif
|
|
|
|
|
2016-01-04 12:17:20 +00:00
|
|
|
#if VENDOR_ID == 9998 // temporary for dev
|
|
|
|
#define IS_UNKNOWN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if VENDOR_ID == 9999
|
|
|
|
#define IS_UNKNOWN
|
|
|
|
#endif
|
|
|
|
|
2015-12-04 14:47:52 +00:00
|
|
|
/**
|
|
|
|
* AMD specific
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef IS_AMD
|
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
|
|
|
|
|
2015-12-15 11:04:22 +00:00
|
|
|
/**
|
|
|
|
* NV specific
|
|
|
|
*/
|
2015-12-04 14:47:52 +00:00
|
|
|
|
|
|
|
#ifdef IS_NV
|
|
|
|
#endif
|