Skip to content

ptxas Optimized debugging not supported #70132

Open
@ajarmusch

Description

@ajarmusch

I was running ninja check all and the offloading/info.c test failed.

The error was ptxas fatal : Optimized debugging not supported. ptxas doesn't seem to be able to support the -gline-tables-only flag

To reproduce the error

llc -O2 reduced.bc -o reduced.bc.s
ptxas -O2 reduced.bc.s

reduced.ll:

; ModuleID = 'reduced.ll'
source_filename = "reduced.ll"
target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
target triple = "nvptx64-nvidia-cuda"

!llvm.module.flags = !{!0}
!llvm.dbg.cu = !{!1}

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = distinct !DICompileUnit(language: DW_LANG_C11, file: !2, producer: "clang version 18.0.0 (https://github.com/llvm/llvm-project.git 3f8e5fd08f33c3e8bce464f3b866dda5210ca943)", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, splitDebugInlining: false, nameTableKind: None)
!2 = !DIFile(filename: "info.c", directory: "/home/users/jarmusch/LIT_CIT/llvm-test-suite-nvidia")

Metadata

Metadata

Assignees

Labels

cudaquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions