-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[flang] Fix do concurrent
CLI test for PowerPC
#134249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-flang-driver Author: Kareem Ergawy (ergawy) ChangesFull diff: https://github.com/llvm/llvm-project/pull/134249.diff 1 Files Affected:
diff --git a/flang/test/Driver/do_concurrent_to_omp_cli.f90 b/flang/test/Driver/do_concurrent_to_omp_cli.f90
index 41b7575e206af..58f9c01d1f5a7 100644
--- a/flang/test/Driver/do_concurrent_to_omp_cli.f90
+++ b/flang/test/Driver/do_concurrent_to_omp_cli.f90
@@ -1,4 +1,4 @@
-! UNSUPPORTED: system-windows
+! UNSUPPORTED: target=powerpc{{.*}}, system-windows
! RUN: %flang --help | FileCheck %s --check-prefix=FLANG
|
If anyone can confirm this does not crash on PowerPC, please add yourself as a reviewer and approve. |
Do we know the reason why the test crashes on PowerPC? I think the test is only to test the |
I don't have a ppc system so unfortunately cannot debug it. The reason I disabled it is because this is just a test for CLI options, it should be enough to verify that it works on at least one system. Also, not sure if the test is just flakey or always crashes on ppc. |
I'm also seeing a similar error on macOS.
I think the problem is that, after the switch to flang-rt, flang is unable to find flang_rt.runtime by itself on macOS. I'm working around it with Maybe the same issues exists for PowerPC. About fixing the test, can't we just compile without linking? This works for me:
EDIT: ignore the |
Thanks for the suggestion. Added the |
do concurrent
CLI test for PowerPC
I can also reproduce the failure if I don't have |
Closing since this was fixed by #135485. |
One of the
do concurrent
tests crashes on PowerPC (see #126026 (comment)). This PR tries to fix the issue by adding the-c
flag to the test to avoid linking.