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

Kazushi Marukawa via Openmp-commits openmp-commits at lists.llvm.org
Sun Sep 17 00:36:17 PDT 2023


================
@@ -11,7 +11,12 @@
 // UNSUPPORTED: gcc
 
 // High parallelism increases our chances of detecting a lack of atomicity.
+#ifdef __ve__
+// VE's pthread_create supports 64 threads at a maximum.
----------------
kaz7 wrote:

Thanks.  Modifying initial value for `__kmp_sys_max_nth` is not enough for our cases since `__kmp_runtime_initialize` is implemented assuming NPTL which assumes infinity number of threads.  I modify both `KMP_MAX_NTH` and the mechanism in `__kmp_runtime_initialize`.

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


More information about the Openmp-commits mailing list