[Openmp-commits] [PATCH] D159311: [OpenMP] [test] Fix target_thread_limit.cpp to not assume 4 or more cores
Martin Storsjö via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Sep 1 08:57:15 PDT 2023
mstorsjo added inline comments.
================
Comment at: openmp/runtime/test/target/target_thread_limit.cpp:24
// check whether thread_limit is honoured
#pragma omp parallel
+ { count++; }
----------------
protze.joachim wrote:
> Fix the data race on count++
Thanks! I meant to ask about whether this needed some extra atomic accesses or similar, but forgot to ask when posting the patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159311/new/
https://reviews.llvm.org/D159311
More information about the Openmp-commits
mailing list