[all-commits] [llvm/llvm-project] f8ee04: [OpenMP] Eliminate the ThreadStates array in favor...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Tue Oct 4 20:29:26 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f8ee045c6d934f64bcdab6c9fb4fc5c36c33938f
https://github.com/llvm/llvm-project/commit/f8ee045c6d934f64bcdab6c9fb4fc5c36c33938f
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2022-10-04 (Tue, 04 Oct 2022)
Changed paths:
M openmp/libomptarget/DeviceRTL/include/State.h
M openmp/libomptarget/DeviceRTL/include/Types.h
M openmp/libomptarget/DeviceRTL/src/State.cpp
Log Message:
-----------
[OpenMP] Eliminate the ThreadStates array in favor of indirection
If we have thread states, the program is going to be rather slow. If we
don't, we want to avoid wasting shared memory. This patch introduces a
slight penalty (malloc + indirection) for the slow path and reduces
resource usage for the fast path.
Differential Revision: https://reviews.llvm.org/D135037
More information about the All-commits
mailing list