[Beignet] [PATCH] [PATCH]Fix compile error for ICC compiler
Yang, Rong R
rong.r.yang at intel.com
Mon Aug 11 23:54:48 PDT 2014
LGTM, pushed, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Song, Ruiling
> Sent: Tuesday, August 12, 2014 10:51 AM
> To: Lv, Meng; beignet at lists.freedesktop.org
> Cc: Lv, Meng
> Subject: Re: [Beignet] [PATCH] [PATCH]Fix compile error for ICC compiler
>
> LGTM
>
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Lv
> Meng
> Sent: Friday, August 08, 2014 4:08 PM
> To: beignet at lists.freedesktop.org
> Cc: Lv, Meng
> Subject: [Beignet] [PATCH] [PATCH]Fix compile error for ICC compiler
>
> fix the pthread_mutex_t undefine compile error and some undefined error
> would occur when using math.h in C++ file.for C++ file,it is better using cmath
> instead off math.h
> Signed-off-by: Lv Meng <meng.lv at intel.com>
> ---
> src/cl_mem.h | 1 +
> utests/utest_generator.py | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/cl_mem.h b/src/cl_mem.h index 4477240..57f38f1 100644
> --- a/src/cl_mem.h
> +++ b/src/cl_mem.h
> @@ -25,6 +25,7 @@
> #include "CL/cl.h"
> #include "cl_khr_icd.h"
> #include <assert.h>
> +#include <pthread.h>
>
> #ifndef CL_VERSION_1_2
> #define CL_MEM_OBJECT_IMAGE1D 0x10F4
> diff --git a/utests/utest_generator.py b/utests/utest_generator.py index
> 7522001..5da2752 100644
> --- a/utests/utest_generator.py
> +++ b/utests/utest_generator.py
> @@ -135,7 +135,7 @@ which can print more values and information to assist
> debuging the issue.
>
> #include "utest_helper.hpp"
> #include <stdio.h>
> -#include <math.h>
> +#include <cmath>
> #include <algorithm>
> #include <string.h>
>
> --
> 1.8.3.2
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list