[Openmp-commits] [openmp] r277618 - Disable KMP_CANCEL_THREADS on Android

Pirama Arumuga Nainar via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 3 11:08:58 PDT 2016


Author: pirama
Date: Wed Aug  3 13:08:57 2016
New Revision: 277618

URL: http://llvm.org/viewvc/llvm-project?rev=277618&view=rev
Log:
Disable KMP_CANCEL_THREADS on Android

Summary:
Android does not have pthread_cancel.  Disable KMP_CANCEL_THREADS if
__ANDROID__ is defined.

Subscribers: tberghammer, srhines, openmp-commits, danalbert

Differential Revision: https://reviews.llvm.org/D23029

Modified:
    openmp/trunk/runtime/src/kmp.h

Modified: openmp/trunk/runtime/src/kmp.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp.h?rev=277618&r1=277617&r2=277618&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp.h (original)
+++ openmp/trunk/runtime/src/kmp.h Wed Aug  3 13:08:57 2016
@@ -55,6 +55,12 @@
 #define KMP_CANCEL_THREADS
 #define KMP_THREAD_ATTR
 
+// Android does not have pthread_cancel.  Undefine KMP_CANCEL_THREADS if being
+// built on Android
+#if defined(__ANDROID__)
+#undef KMP_CANCEL_THREADS
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>




More information about the Openmp-commits mailing list