Skip to content

[NVPTX] generated debug info uses features not available in older PTX versions #112998

Open
@Artem-B

Description

@Artem-B

Reproducer:

LLVM_PTXAS_EXECUTABLE=$HOME/local/cuda-11.8.0/bin/ptxas bin/llvm-lit -av $HOME/work/llvm/repo/llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll
+ bin/llc -mtriple=nvptx64-nvidia-cuda
+ local/cuda-11.8.0/bin/ptxas -arch=sm_60 -c -
ptxas /tmp/lit-tmp-3piyjb1a/tmpxft_00096c16_00000000-0_stdin, line 91; error   : Feature 'Defining labels in .section' requires PTX ISA .version 7.0 or later
ptxas fatal   : Ptx assembly aborted due to errors

The label ptxas is unhappy about:

     88         .file   1 "dbg-value-const-byref.c"
     89         .section        .debug_loc
     90         {
     91 $L__debug_loc0:
     92 .b64 $L__tmp0
     93 .b64 $L__tmp1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions