diff options
author | Yang Rong <rong.r.yang@intel.com> | 2016-05-25 13:03:42 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-05-27 10:10:45 +0800 |
commit | 9e1402c42d8f3fd1881f32dbf735bfad2a21f1f0 (patch) | |
tree | 8b4ab70c3885b217c807a9de1ff238c132046b45 /utests/utest_helper.hpp | |
parent | bb4425d24ab9c7f9f934532a986ebfdeb53d335b (diff) | |
download | beignet-9e1402c42d8f3fd1881f32dbf735bfad2a21f1f0.tar.gz |
Android: fix __thread keyword issue in android.
Android doesn't support __thread keyword, so use pthread instead in
cl_thread.c and disable multithread in the utest.
V2: remove __thread in the scr/cl_thread.
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r-- | utests/utest_helper.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 95c32d12..a89f197f 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -35,6 +35,10 @@ #include <cstdio> #include <cstdlib> +#if defined(__ANDROID__) +#define __thread +#endif + #ifdef HAS_EGL #define EGL_WINDOW_WIDTH 256 #define EGL_WINDOW_HEIGHT 256 |