Fix compile error for ICC compiler
authorLv Meng <meng.lv@intel.com>
Fri, 8 Aug 2014 08:08:16 +0000 (16:08 +0800)
committerYang Rong <rong.r.yang@intel.com>
Tue, 12 Aug 2014 06:48:12 +0000 (14:48 +0800)
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@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
src/cl_mem.h
utests/utest_generator.py

index 4477240..57f38f1 100644 (file)
@@ -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
index 7522001..5da2752 100644 (file)
@@ -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>