CL: back port ICD support to 1.1 branch.
authorZhigang Gong <zhigang.gong@intel.com>
Wed, 8 Jan 2014 11:10:53 +0000 (19:10 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 10 Jan 2014 09:27:55 +0000 (17:27 +0800)
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
src/cl_khr_icd.c

index d601134..cb5f5cd 100644 (file)
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
-
+#include <CL/cl.h>
+#ifndef CL_VERSION_1_2
+#include <cl_mem.h>
+typedef cl_uint             cl_kernel_arg_info;
+typedef cl_bitfield         cl_mem_migration_flags;
+#define cl_device_partition_property cl_device_partition_property_ext
+#define CL_API_SUFFIX__VERSION_1_2
+#endif
 #include <ocl_icd.h>
 
 #include "cl_platform_id.h"