[Openmp-commits] [openmp] ec97866 - [OpenMP] Make bug49334.cpp more reproducible
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jun 18 15:35:48 PDT 2021
Author: Shilei Tian
Date: 2021-06-18T18:35:41-04:00
New Revision: ec978664542d6202c05e809fcfd6ead62a43d41b
URL: https://github.com/llvm/llvm-project/commit/ec978664542d6202c05e809fcfd6ead62a43d41b
DIFF: https://github.com/llvm/llvm-project/commit/ec978664542d6202c05e809fcfd6ead62a43d41b.diff
LOG: [OpenMP] Make bug49334.cpp more reproducible
`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.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D104552
Added:
Modified:
openmp/libomptarget/test/offloading/bug49334.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/test/offloading/bug49334.cpp b/openmp/libomptarget/test/offloading/bug49334.cpp
index fd4a82b95612d..cb096215fcf2c 100644
--- a/openmp/libomptarget/test/offloading/bug49334.cpp
+++ b/openmp/libomptarget/test/offloading/bug49334.cpp
@@ -70,8 +70,8 @@ class BlockMatrix {
}
};
-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
More information about the Openmp-commits
mailing list