summaryrefslogtreecommitdiff
path: root/utests/utest_run.cpp
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2016-05-25 13:03:42 +0800
committerYang Rong <rong.r.yang@intel.com>2016-05-27 10:10:45 +0800
commit9e1402c42d8f3fd1881f32dbf735bfad2a21f1f0 (patch)
tree8b4ab70c3885b217c807a9de1ff238c132046b45 /utests/utest_run.cpp
parentbb4425d24ab9c7f9f934532a986ebfdeb53d335b (diff)
downloadbeignet-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_run.cpp')
-rw-r--r--utests/utest_run.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utests/utest_run.cpp b/utests/utest_run.cpp
index b303527e..380d738a 100644
--- a/utests/utest_run.cpp
+++ b/utests/utest_run.cpp
@@ -89,7 +89,12 @@ int main(int argc, char *argv[])
case 'j':
try {
+#if defined(__ANDROID__)
+ std::cout << "Do not support multithread in android, use single thread instead." << std::endl;
+ UTest::run(optarg);
+#else
UTest::runMultiThread(optarg);
+#endif
}
catch (Exception e){
std::cout << " " << e.what() << " [SUCCESS]" << std::endl;