[Openmp-commits] [PATCH] D104552: [OpenMP] Make bug49334.cpp more reproducible
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jun 18 10:45:11 PDT 2021
tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, protze.joachim.
Herald added subscribers: guansong, yaxunl.
tianshilei1992 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
`bug49334.cpp` cannot detect data race in `libomptarget` efficiently. It
is reported that with `N = 256` and `BS = 16`, the data race can be reproduced
more steadily. The next coming pathces will fix it so this patch is expected to
fail now.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104552
Files:
openmp/libomptarget/test/offloading/bug49334.cpp
Index: openmp/libomptarget/test/offloading/bug49334.cpp
===================================================================
--- openmp/libomptarget/test/offloading/bug49334.cpp
+++ openmp/libomptarget/test/offloading/bug49334.cpp
@@ -70,8 +70,8 @@
}
};
-constexpr const int BS = 256;
-constexpr const int N = 1024;
+constexpr const int BS = 16;
+constexpr const int N = 256;
int BlockMatMul_TargetNowait(BlockMatrix &A, BlockMatrix &B, BlockMatrix &C) {
#pragma omp parallel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104552.353046.patch
Type: text/x-patch
Size: 485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210618/d126e9dc/attachment.bin>
More information about the Openmp-commits
mailing list