[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
Mon Sep 18 19:05:06 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:

I created #66729 .  I'm not sure whether I create another patch for test or not.  Test itself passes after applying #66729 with following warnings.  I can say this is good regression tests for #66729 .  I also can say it's good to change test too for let ppl know this limitation.  Do you have any opinion?
```
OMP: Warning #96: Cannot form a team with 256 threads, using 64 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
```

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


More information about the Openmp-commits mailing list