[PATCH] D121727: [NVPTX] Integrate ptxas to LIT tests
Andrew Savonichev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 12:32:12 PDT 2022
asavonic added a comment.
I've tested the patch against every ptxas release from 9.0 to the latest 11.6. Version 9.0 is the earliest version that I was able to install on my Debian oldstable machine, so it seems like a good minimal version that we can support. Also, it is worth noting that ptxas is not completely backwards compatible: newer version can drop old SM versions, so we sometimes need to account for this. For example:
; sm_30 is dropped by ptxas 11.0
; RUN: %if ptxas %{ %ptxas-verify %if !ptxas-11.0 %{-arch=sm_30%} %t.ptx %}
One disadvantage of this patch is that we can no longer pipe llc output to FileCheck: we have to use `-o` option with a temporary file. This may break update_llc_checks.py, but I haven't confirmed this yet.
We can use `tee` to avoid this, but it is not portable. Perhaps we can write a simple version of `tee` and add it to LLVM tools.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121727/new/
https://reviews.llvm.org/D121727
More information about the llvm-commits
mailing list