<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/111674>111674</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[win] [openmp] the libomp test cases are failing on Windows.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rahulk10-cpu
</td>
</tr>
</table>
<pre>
I noticed that the below OpenMP tests were failing on windows when I generated and executed them natively using Visual Studio.
Failed Tests (5):
libomp :: transform/interchange/iterfor.cpp
libomp :: transform/tile/iterfor.cpp
libomp :: worksharing/for/omp_for_collapse_LowerTriangularLess.c
libomp :: worksharing/for/omp_for_collapse_LowerTriangularLessEqual.c
libomp :: worksharing/for/omp_for_collapse_UpperTriangular.c
verbose log can be found below.
FAIL: libomp :: worksharing/for/omp_for_collapse_LowerTriangularLessEqual.c (1 of 369)
******************** TEST 'libomp :: worksharing/for/omp_for_collapse_LowerTriangularLessEqual.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
../LLVM-up-stream/build/./bin/clang.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer ..\LLVM-up-stream\llvm-project\openmp\runtime\test\worksharing\for\omp_for_collapse_LowerTriangularLessEqual.c -o ..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLessEqual.c.tmp && ..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLessEqual.c.tmp
# executed command: ../LLVM-up-stream/build/./bin/clang.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer '..\LLVM-up-stream\llvm-project\openmp\runtime\test\worksharing\for\omp_for_collapse_LowerTriangularLessEqual.c' -o '..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLessEqual.c.tmp'
# executed command: '..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLessEqual.c.tmp'
# .---command stderr------------
# | ERROR: Inefficient Collapse thread 3 of 32 assigned 2 iterations; must be between 0 and 1
# `-----------------------------
# error: command failed with exit status: 1
FAIL: libomp :: worksharing/for/omp_for_collapse_LowerTriangularLess.c (2 of 369)
******************** TEST 'libomp :: worksharing/for/omp_for_collapse_LowerTriangularLess.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
../LLVM-up-stream/build/./bin/clang.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer ..\LLVM-up-stream\llvm-project\openmp\runtime\test\worksharing\for\omp_for_collapse_LowerTriangularLess.c -o ..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLess.c.tmp && ..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLess.c.tmp
# executed command: ../LLVM-up-stream/build/./bin/clang.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer '..\LLVM-up-stream\llvm-project\openmp\runtime\test\worksharing\for\omp_for_collapse_LowerTriangularLess.c' -o '..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLess.c.tmp'
# executed command: '..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_LowerTriangularLess.c.tmp'
# .---command stderr------------
# | ERROR: Inefficient Collapse thread 6 of 32 assigned 2 iterations; must be between 0 and 1
# `-----------------------------
# error: command failed with exit status: 1
--
********************
FAIL: libomp :: worksharing/for/omp_for_collapse_UpperTriangular.c (3 of 369)
******************** TEST 'libomp :: worksharing/for/omp_for_collapse_UpperTriangular.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
../LLVM-up-stream/build/./bin/clang.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer ..\LLVM-up-stream\llvm-project\openmp\runtime\test\worksharing\for\omp_for_collapse_UpperTriangular.c -o ..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_UpperTriangular.c.tmp && ..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_UpperTriangular.c.tmp
# executed command: ../LLVM-up-stream/build/./bin/clang.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer '..\LLVM-up-stream\llvm-project\openmp\runtime\test\worksharing\for\omp_for_collapse_UpperTriangular.c' -o '..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_UpperTriangular.c.tmp'
# executed command: '..\LLVM-up-stream\build\projects\openmp\runtime\test\worksharing\for\Output\omp_for_collapse_UpperTriangular.c.tmp'
# .---command stderr------------
# | ERROR: Inefficient Collapse thread 0 of 32 assigned 2 iterations; must be between 0 and 1
# `-----------------------------
# error: command failed with exit status: 1
FAIL: libomp :: transform/interchange/iterfor.cpp (4 of 369)
******************** TEST 'libomp :: transform/interchange/iterfor.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
../LLVM-up-stream/build/./bin/clang++.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer -std=c++20 ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\interchange\iterfor.cpp -o ..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\interchange\Output\iterfor.cpp.tmp && ..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\interchange\Output\iterfor.cpp.tmp | ../LLVM-up-stream/build/./bin/FileCheck ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\interchange\iterfor.cpp --match-full-lines
# executed command: ../LLVM-up-stream/build/./bin/clang++.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer -std=c++20 '..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\interchange\iterfor.cpp' -o '..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\interchange\Output\iterfor.cpp.tmp'
# executed command: '..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\interchange\Output\iterfor.cpp.tmp'
# executed command: ../LLVM-up-stream/build/./bin/FileCheck '..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\interchange\iterfor.cpp' --match-full-lines
# .---command stderr------------
# | ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\interchange\iterfor.cpp:155:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: [A] iterator deref: 0
# | ^
# | <stdin>:17:1: note: 'next' match was here
# | [A] iterator deref: 0
# | ^
# | <stdin>:15:25: note: previous match ended here
# | [A] iterator move assign
# | ^
# | <stdin>:16:1: note: non-matching line after previous match is here
# | [B] iterator deref: 0
# | ^
# |
# | Input file: <stdin>
# | Check file: ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\interchange\iterfor.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 12: [B] iterator advance: 0 += 0
# | 13: [B] iterator move assign
# | 14: [A] iterator advance: 0 += 0
# | 15: [A] iterator move assign
# | 16: [B] iterator deref: 0
# | 17: [A] iterator deref: 0
# | next:155 !~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
# | 18: i=0 j=0
# | 19: [A] iterator dtor
# | 20: [A] iterator advance: 0 += 1
# | 21: [A] iterator move assign
# | 22: [B] iterator deref: 0
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
********************
FAIL: libomp :: transform/tile/iterfor.cpp (5 of 369)
******************** TEST 'libomp :: transform/tile/iterfor.cpp' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
../LLVM-up-stream/build/./bin/clang++.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer -std=c++20 ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\tile\iterfor.cpp -o ..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\tile\Output\iterfor.cpp.tmp && ..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\tile\Output\iterfor.cpp.tmp | ../LLVM-up-stream/build/./bin/FileCheck ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\tile\iterfor.cpp --match-full-lines
# executed command: ../LLVM-up-stream/build/./bin/clang++.exe -fopenmp -I ../LLVM-up-stream/build/projects/openmp/runtime/src -I ../LLVM-up-stream/llvm-project/openmp/runtime/test -L ../LLVM-up-stream/build/./bin -fno-omit-frame-pointer -std=c++20 '..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\tile\iterfor.cpp' -o '..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\tile\Output\iterfor.cpp.tmp'
# executed command: '..\LLVM-up-stream\build\projects\openmp\runtime\test\transform\tile\Output\iterfor.cpp.tmp'
# executed command: ../LLVM-up-stream/build/./bin/FileCheck '..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\tile\iterfor.cpp' --match-full-lines
# .---command stderr------------
# | ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\tile\iterfor.cpp:157:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: [A] iterator deref: 0
# | ^
# | <stdin>:17:1: note: 'next' match was here
# | [A] iterator deref: 0
# | ^
# | <stdin>:15:25: note: previous match ended here
# | [B] iterator move assign
# | ^
# | <stdin>:16:1: note: non-matching line after previous match is here
# | [B] iterator deref: 0
# | ^
# |
# | Input file: <stdin>
# | Check file: ..\LLVM-up-stream\llvm-project\openmp\runtime\test\transform\tile\iterfor.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 12: [A] iterator advance: 0 += 0
# | 13: [A] iterator move assign
# | 14: [B] iterator advance: 0 += 0
# | 15: [B] iterator move assign
# | 16: [B] iterator deref: 0
# | 17: [A] iterator deref: 0
# | next:157 !~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
# | 18: i=0 j=0
# | 19: [B] iterator dtor
# | 20: [B] iterator advance: 0 += 1
# | 21: [B] iterator move assign
# | 22: [B] iterator deref: 1
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsW19z4jgS_zTipcuULWMIDzwEA3Wpy-5czWb37m1K2G3QjpF8khyyL_fZryRIAsQOEBggs1CUZ4it7p_6788NZlrziUDskahPokGDlWYqVU-xaZl_D3wvKcrGWKZ_9e5ASMMTTMFMmQEzRRhjLufwpUDxy7_AoDYa5qgQMsZzLiYgBcy5SOVcw3yKAu5gggIVM5gCEyngEyalcRJxBoIZ_oj5X1Bqu_gPrkuWw2-mTLlsEn9A_NsR4zmm8OBUEXoTEdol4e3iJEDOx3JWgP1LeAtGMaEzqWaEjrgwqJIpExO0nwyqTKpmUhTblxqe77RmLtV3PWWKiwmho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