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
