[Beignet] [Patch v2 1/4] CL: back port ICD support to 1.1 branch.
Song, Ruiling
ruiling.song at intel.com
Tue Jan 14 00:57:24 PST 2014
I tested the patchset, with this patchset, it is easy to run opencv's cl program. Thanks!
Thanks!
Ruiling
-----Original Message-----
From: beignet-bounces+ruiling.song=intel.com at lists.freedesktop.org [mailto:beignet-bounces+ruiling.song=intel.com at lists.freedesktop.org] On Behalf Of Zhigang Gong
Sent: Tuesday, January 14, 2014 9:45 AM
To: beignet at lists.freedesktop.org
Cc: Gong, Zhigang
Subject: [Beignet] [Patch v2 1/4] CL: back port ICD support to 1.1 branch.
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
src/cl_khr_icd.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/cl_khr_icd.c b/src/cl_khr_icd.c index d601134..cb5f5cd 100644
--- a/src/cl_khr_icd.c
+++ b/src/cl_khr_icd.c
@@ -14,7 +14,14 @@
* 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"
--
1.7.9.5
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list