llvm/llvm-project

[NVPTX] Test SM Versions via `ptxas`

Open

#137,028 建立於 2025年4月23日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)C++ (10,782 fork)batch import
backend:NVPTXgood first issue

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

llvm/test/CodeGen/NVPTX/sm-version.ll checks that the PTX and SM versions are supported by llc. However, we should also check that they're supported in ptxas.

Here's an example of how to run a test with ptxas: (source)

; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 | %ptxas-verify %}

貢獻者指南