[all-commits] [llvm/llvm-project] eab828: [OpenMP] Provide a specialized team reduction for ...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Nov 2 15:49:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eab828d46c2fb7613df0bc44d34ff89702ffcc80
      https://github.com/llvm/llvm-project/commit/eab828d46c2fb7613df0bc44d34ff89702ffcc80
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-11-02 (Thu, 02 Nov 2023)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/src/Reduction.cpp

  Log Message:
  -----------
  [OpenMP] Provide a specialized team reduction for the common case (#70766)

We default to < 1024 teams if the user did not specify otherwise. As
such we can avoid the extra logic in the teams reduction that handles
more than num_of_records (default 1024) teams. This is a stopgap but
still shaves of 33% of the runtime in some simple reduction examples.




More information about the All-commits mailing list