[OpenMP] Limit number of dispatch buffers
authorPeyton, Jonathan L <jonathan.l.peyton@intel.com>
Mon, 8 Feb 2021 19:08:53 +0000 (13:08 -0600)
committerPeyton, Jonathan L <jonathan.l.peyton@intel.com>
Mon, 22 Feb 2021 19:14:28 +0000 (13:14 -0600)
commit8c73be9d86758beae1cda30f9eba2e92023d6c60
treea426ed21c99b51dece590392635e420725393e34
parent4827492d9fcfe4ac5df4f319e935e33bec946195
[OpenMP] Limit number of dispatch buffers

This patch limits the number of dispatch buffers (used for
loop worksharing construct) to between 1 and 4096.

Differential Revision: https://reviews.llvm.org/D96749
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_csupport.cpp
openmp/runtime/src/kmp_ftn_entry.h
openmp/runtime/src/kmp_settings.cpp
openmp/runtime/test/env/kmp_dispatch_buf_range.c [new file with mode: 0644]