[llvm] [NVPTX] Add ptxas verification and kernel test to sm-version test (PR #139543)

Puja Saha via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 06:05:47 PDT 2025


================
@@ -56,6 +56,64 @@
 ; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_121 | FileCheck %s --check-prefix=SM121
 ; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_121a | FileCheck %s --check-prefix=SM121a
 
+; RUN: %if ptxas %{ llc < %s -mtriple=nvptx -mcpu=sm_20 | %ptxas-verify %}
----------------
puja2196 wrote:

Yeah sure, I will have -arch=sm_XY for the specific Arch(XY).

https://github.com/llvm/llvm-project/pull/139543


More information about the llvm-commits mailing list