aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2023-11-01 11:11:48 -0700
committerGitHub <noreply@github.com>2023-11-01 11:11:48 -0700
commitf9a89e6b9c4345df978bf7cbfedfd2b250029278 (patch)
treea5ddbb23e523d7000fc79129ab719fdcd8461909 /clang/lib/Basic/Module.cpp
parent0d3377c496ef2057224540650b657efb1848d63e (diff)
downloadllvm-f9a89e6b9c4345df978bf7cbfedfd2b250029278.zip
llvm-f9a89e6b9c4345df978bf7cbfedfd2b250029278.tar.gz
llvm-f9a89e6b9c4345df978bf7cbfedfd2b250029278.tar.bz2
[OpenMP][FIX] Allocate per launch memory for GPU team reductions (#70752)
We used to perform team reduction on global memory allocated in the runtime and by clang. This was racy as multiple instances of a kernel, or different kernels with team reductions, would use the same locations. Since we now have the kernel launch environment, we can allocate dynamic memory per-launch, allowing us to move all the state into a non-racy place. Fixes: https://github.com/llvm/llvm-project/issues/70249
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions