[Openmp-commits] [openmp] [OpenMP] Adding a throttling threshold to bound dependent tasking mem… (PR #82274)

via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 19 11:30:04 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 2426055a64e43c5d9126b191ee9836710a223d75 459dfd35d47fbb0a1a7f2f0408febd18eb745f1b -- openmp/runtime/test/tasking/omp_throttling_max.c openmp/runtime/test/tasking/omp_throttling_max_ready_per_thread.c openmp/runtime/src/kmp.h openmp/runtime/src/kmp_global.cpp openmp/runtime/src/kmp_settings.cpp openmp/runtime/src/kmp_tasking.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/openmp/runtime/test/tasking/omp_throttling_max.c b/openmp/runtime/test/tasking/omp_throttling_max.c
index 582927c713..d1d93349e6 100644
--- a/openmp/runtime/test/tasking/omp_throttling_max.c
+++ b/openmp/runtime/test/tasking/omp_throttling_max.c
@@ -1,8 +1,11 @@
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=0      %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=1      %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=256    %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=65536  %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=100000 %libomp-run
+// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1
+// KMP_TASK_MAXIMUM=0      %libomp-run RUN: %libomp-compile && env
+// OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=1 %libomp-run
+// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1
+// KMP_TASK_MAXIMUM=256    %libomp-run RUN: %libomp-compile && env
+// OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=65536
+// %libomp-run RUN: %libomp-compile && env OMP_NUM_THREADS=2
+// KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM=100000 %libomp-run
 
 /**
  *  This test ensures that task throttling on the maximum number of tasks
diff --git a/openmp/runtime/test/tasking/omp_throttling_max_ready_per_thread.c b/openmp/runtime/test/tasking/omp_throttling_max_ready_per_thread.c
index 6d801971d7..6d51c61bee 100644
--- a/openmp/runtime/test/tasking/omp_throttling_max_ready_per_thread.c
+++ b/openmp/runtime/test/tasking/omp_throttling_max_ready_per_thread.c
@@ -1,8 +1,13 @@
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM_READY_PER_THREAD=0      %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM_READY_PER_THREAD=1      %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM_READY_PER_THREAD=256    %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM_READY_PER_THREAD=65536  %libomp-run
-// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1 KMP_TASK_MAXIMUM_READY_PER_THREAD=100000 %libomp-run
+// RUN: %libomp-compile && env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1
+// KMP_TASK_MAXIMUM_READY_PER_THREAD=0      %libomp-run RUN: %libomp-compile &&
+// env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1
+// KMP_TASK_MAXIMUM_READY_PER_THREAD=1      %libomp-run RUN: %libomp-compile &&
+// env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1
+// KMP_TASK_MAXIMUM_READY_PER_THREAD=256    %libomp-run RUN: %libomp-compile &&
+// env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1
+// KMP_TASK_MAXIMUM_READY_PER_THREAD=65536  %libomp-run RUN: %libomp-compile &&
+// env OMP_NUM_THREADS=2 KMP_ENABLE_TASK_THROTTLING=1
+// KMP_TASK_MAXIMUM_READY_PER_THREAD=100000 %libomp-run
 
 /**
  *  This test ensures that task throttling on the maximum number of ready tasks

``````````

</details>


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


More information about the Openmp-commits mailing list