[Openmp-commits] [openmp] [OpenMP] Remove optimization skipping reduction struct initialization (PR #65697)

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 8 08:45:29 PDT 2023


================
@@ -2512,11 +2512,6 @@ void *__kmp_task_reduction_init(int gtid, int num, T *data) {
   KMP_ASSERT(tg != NULL);
   KMP_ASSERT(data != NULL);
   KMP_ASSERT(num > 0);
-  if (nth == 1) {
----------------
jdoerfert wrote:

I'm not sure how important single threaded reduction costs really are, but sure.

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


More information about the Openmp-commits mailing list