[llvm] [NVPTX] Add ptxas verification and kernel test to sm-version test (PR #139543)
Abhilash Majumder via llvm-commits
llvm-commits at lists.llvm.org
Tue May 13 22:59:18 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 %}
----------------
abhilash1910 wrote:
Thanks Artem , this format indeed catches the range of CUDA version that support the SM needed. (Something like the below)
```
; RUN: %if ptxas && !ptxas-10.0 %{ llc < %s -mtriple=nvptx -mcpu=sm_20 | %ptxas-verify -arch=sm_20 %}
; RUN: %if ptxas && !ptxas-11.0 %{ llc < %s -mtriple=nvptx -mcpu=sm_21 | %ptxas-verify -arch=sm_21 %}
.<rest of it>..
```
https://github.com/llvm/llvm-project/pull/139543
More information about the llvm-commits
mailing list