[Openmp-commits] [openmp] [OpenMP][VE] Limit the number of threads to create (PR #66729)

Kazushi Marukawa via Openmp-commits openmp-commits at lists.llvm.org
Tue Sep 19 03:21:30 PDT 2023


================
@@ -1153,8 +1153,15 @@ extern void __kmp_init_target_task();
 #if defined(PTHREAD_THREADS_MAX) && PTHREAD_THREADS_MAX < INT_MAX
 #define KMP_MAX_NTH PTHREAD_THREADS_MAX
 #else
+#ifdef __ve__
+// VE's pthread supports only up to 64 threads per a VE process.
+//   https://sxauroratsubasa.sakura.ne.jp/documents/veos/en/VEOS_high_level_design.pdf
----------------
kaz7 wrote:

Thanks.  I've updated it.

https://github.com/llvm/llvm-project/pull/66729


More information about the Openmp-commits mailing list