[Openmp-commits] [openmp] 544f8c7 - [OpenMP] Fix stack overflow for test bug54082.c

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 26 20:45:16 PST 2023


Author: Shilei Tian
Date: 2023-01-26T23:45:11-05:00
New Revision: 544f8c7f3959f21fa7d85768c3bbb5402bf15ea6

URL: https://github.com/llvm/llvm-project/commit/544f8c7f3959f21fa7d85768c3bbb5402bf15ea6
DIFF: https://github.com/llvm/llvm-project/commit/544f8c7f3959f21fa7d85768c3bbb5402bf15ea6.diff

LOG: [OpenMP] Fix stack overflow for test bug54082.c

When `N` is 1024, `int result[N][N]` is obviously large stack that Windows cannot support...

Fix #60326.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D142684

Added: 
    

Modified: 
    openmp/runtime/test/parallel/bug54082.c

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/parallel/bug54082.c b/openmp/runtime/test/parallel/bug54082.c
index 3d1eca916d6fd..103babba291ed 100644
--- a/openmp/runtime/test/parallel/bug54082.c
+++ b/openmp/runtime/test/parallel/bug54082.c
@@ -6,7 +6,7 @@
 #include <assert.h>
 #include <stdlib.h>
 
-#define N 1024
+#define N 128
 
 int main(int argc, char *argv[]) {
   int errors = 0;


        


More information about the Openmp-commits mailing list