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 %}

贡献者指南