llvm/llvm-project

[NVPTX] Test SM Versions via `ptxas`

Open

#137.028 aberto em 23 de abr. de 2025

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)C++ (10.782 forks)batch import
backend:NVPTXgood first issue

Métricas do repositório

Stars
 (26.378 stars)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (1.000 fundiu PRs em 30d)

Description

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

Guia do colaborador