I tested the patchset, with this patchset, it is easy to run opencv's cl program. Thanks!
Thanks! Ruiling -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Zhigang Gong Sent: Tuesday, January 14, 2014 9:45 AM To: [email protected] Cc: Gong, Zhigang Subject: [Beignet] [Patch v2 1/4] CL: back port ICD support to 1.1 branch. Signed-off-by: Zhigang Gong <[email protected]> --- 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 [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
