Skip to content

[NVPTX] Require asserts in unrecognized-sm1x.ll #126105

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

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

justinfargnoli
Copy link
Contributor

Fix clang-with-thin-lto-ubuntu - failed build

@justinfargnoli justinfargnoli requested a review from kalxr February 6, 2025 18:30
@justinfargnoli justinfargnoli self-assigned this Feb 6, 2025
@justinfargnoli
Copy link
Contributor Author

Context:

The Buildbot has detected a new failure on builder clang-with-thin-lto-ubuntu while building clang.

Full details are available at:
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flab.llvm.org%2Fbuildbot%2F%23%2Fbuilders%2F127%2Fbuilds%2F2265&data=05%7C02%7Cjfargnoli%40nvidia.com%7Cd768f83b182742606b4a08dd4686c39b%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C638744266807955989%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=o5K08%2FgfIBofxPThodl8M0%2FckzSH8hWOMphF1DVNt6g%3D&reserved=0

Worker for this Build: as-worker-92
Blamelist:
Alex Sepkowski <[email protected]>,
Brad Smith <[email protected]>,
Fangrui Song <[email protected]>,
Jie Fu <[email protected]>,
Justin Fargnoli <[email protected]>,
Lang Hames <[email protected]>,
Nicolai Hähnle <[email protected]>,
Philip Reames <[email protected]>,
Phoebe Wang <[email protected]>,
Scott Constable <[email protected]>,
Thurston Dang <[email protected]>,
Yingwei Zheng <[email protected]>

BUILD FAILED: failed build (failure)

Step 7 (test-stage1-compiler) failure: build (failure)
...
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/ld64.lld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/wasm-ld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/utils/lit/tests/lit.cfg:111: warning: Setting a timeout per test not supported. Requires the Python psutil module but it could not be found. Try installing it via pip or via your operating system's package manager.
Some tests will be skipped and the --timeout command line argument will not work.
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/ld.lld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/lld-link
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/ld64.lld
llvm-lit: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/wasm-ld
-- Testing: 83422 tests, 72 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM :: CodeGen/NVPTX/unrecognized-sm1x.ll (83358 of 83422)
******************** TEST 'LLVM :: CodeGen/NVPTX/unrecognized-sm1x.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):

RUN: at line 1: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/llc < /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll -mtriple=nvptx -mcpu=sm_10 -debug-only=nvptx-subtarget -o /dev/null 2>&1 | /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/FileCheck /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll --check-prefix=SM10

  • /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/FileCheck /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll --check-prefix=SM10
  • /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/llc -mtriple=nvptx -mcpu=sm_10 -debug-only=nvptx-subtarget -o /dev/null
    /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll:6:9: error: SM10: expected string not found in input
    ; SM10: 'sm_10' is not a recognized processor for this target (ignoring processor)
    ^
    :1:1: note: scanning from here
    llc: Unknown command line argument '-debug-only=nvptx-subtarget'. Try: '/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/llc --help'
    ^

Input file:
Check file: /home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/llvm-project/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
1: llc: Unknown command line argument '-debug-only=nvptx-subtarget'. Try: '/home/buildbot/as-worker-92/clang-with-thin-lto-ubuntu/build/stage1/bin/llc --help'
check:6 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: llc: Did you mean '--debug-pass=nvptx-subtarget'?
check:6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--


Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..

1 warning(s) in tests


Failed Tests (1):
LLVM :: CodeGen/NVPTX/unrecognized-sm1x.ll

Sincerely,
LLVM Buildbot

@llvmbot
Copy link
Member

llvmbot commented Feb 6, 2025

@llvm/pr-subscribers-backend-nvptx

Author: Justin Fargnoli (justinfargnoli)

Changes

Fix clang-with-thin-lto-ubuntu - failed build


Full diff: https://github.com/llvm/llvm-project/pull/126105.diff

1 Files Affected:

  • (modified) llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll (+1)
diff --git a/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll b/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll
index 9a1dc122915dde..1f6e18e826e86f 100644
--- a/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll
+++ b/llvm/test/CodeGen/NVPTX/unrecognized-sm1x.ll
@@ -2,6 +2,7 @@
 ; RUN: llc < %s -mtriple=nvptx -mcpu=sm_11 -debug-only=nvptx-subtarget -o /dev/null 2>&1 | FileCheck %s --check-prefix=SM11
 ; RUN: llc < %s -mtriple=nvptx -mcpu=sm_12 -debug-only=nvptx-subtarget -o /dev/null 2>&1 | FileCheck %s --check-prefix=SM12
 ; RUN: llc < %s -mtriple=nvptx -mcpu=sm_13 -debug-only=nvptx-subtarget -o /dev/null 2>&1 | FileCheck %s --check-prefix=SM13
+; REQUIRES: asserts
 
 ; SM10: 'sm_10' is not a recognized processor for this target (ignoring processor)
 ; SM11: 'sm_11' is not a recognized processor for this target (ignoring processor)

@justinfargnoli justinfargnoli changed the title [NVPTX] Require asserts in unrecognized-sm1x.ll [NVPTX] Require asserts in unrecognized-sm1x.ll Feb 6, 2025
Copy link
Contributor

@kalxr kalxr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@justinfargnoli justinfargnoli merged commit b2bd3a4 into llvm:main Feb 6, 2025
8 of 9 checks passed
Icohedron pushed a commit to Icohedron/llvm-project that referenced this pull request Feb 11, 2025
Fix clang-with-thin-lto-ubuntu - failed build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants