-
Notifications
You must be signed in to change notification settings - Fork 14.3k
clang: Remove requires system-linux from some driver tests #111976
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
Changes from all commits
7391edf
4d58a45
9222ae6
b83188d
fa1d253
d0c8d62
51889a8
4adfe13
76c629a
99da25f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// REQUIRES: system-linux | ||
// REQUIRES: shell | ||
|
||
// RUN: mkdir -p %t | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// REQUIRES: system-linux | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is failing on z/OS on line 28 (ARCH_sm70 check). The actual cc1 line is:
This has sm_52 as the target_gpu instead of sm_70. Can you either fix it or add:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The result should definitely be sm_70, that's what the provided script produces There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree. By fixing it, I was referring to the code in clang that determines this value. If it's easy to make the test pass on z/OS great. If not marking it as unsupported works too. This applies to my other comment too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's the output from a shell script in clang/test/Driver/Inputs/nvptx-arch/nvptx_arch_sm_70 How could the zos test find a different result There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm looking into that question. The first thing I noticed was the temp file is being created and read as a binary file. I also noticed that the output of the script is not being redirected into the temp file. I'll get a PR up to fix these problems once I get it solved. I think that mean the only issue on z/OS is not related to these tests. Could you mark the 3 failing tests as XFAIL for system-zos. I'll remove that once I have the problem fixed. |
||
// REQUIRES: shell | ||
// XFAIL: target={{.*}}-zos{{.*}} | ||
|
||
// RUN: mkdir -p %t | ||
// RUN: cp %S/Inputs/nvptx-arch/nvptx_arch_fail %t/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// REQUIRES: system-linux | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is failing on z/OS on line 33 with the error:
Not deducing the target gpu causes wrong -target-cpu to be specified. If it can be fixed great. If not can you add:
|
||
// REQUIRES: shell | ||
// XFAIL: target={{.*}}-zos{{.*}} | ||
|
||
// RUN: mkdir -p %t | ||
// RUN: cp %S/Inputs/amdgpu-arch/amdgpu_arch_fail %t/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compile & test on line 47 is failing on z/OS with the following message:
I'm not sure if there is a way to fix this (eg. wildcard in the expected output or a compiler option). If there isn't can you add:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't really be a property of zos or any other system. It works for me on systems without AMDGPUs and other OSes. You are seeing the error after the environment variable parse error, so why did this proceed beyond that point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should have been line 26. The error is causing the failure. The env var isn't set for that compilation.