-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not emit line info for debbuging/profiling #2312
Comments
Hm up until 11.7 we disabled our debuginfo emission CUDA.jl/src/compiler/compilation.jl Line 234 in 7f725c0
But you are on 12 so we should be asking LLVM to emit .loc
Emission of debug info is controlled by https://github.com/JuliaGPU/GPUCompiler.jl/blob/3c1bc6546ceaf30178d2a78f74173402f924b437/src/jlgen.jl#L608 |
That's because we hide the debuginfo by default, for legibility. Pass
|
Describe the bug
The documentation mention that CUDA.jl would embed source code location in the PTX code for debugging and profiling: https://cuda.juliagpu.org/stable/development/debugging/#Debug-info-and-line-number-information
This means in the PTX code should contain
.loc
instructions like in this example:But they are missing if I print the ptx code via
CUDA.@device_code_ptx
and the nvidia kernel profilerncu-ui
also mention that the source code information are missing (profiled the whole application with ncu non-interactive ->ncu julia -g1 --project kernel.jl
I could verify with a clang++ 14 compiler (I used Julia 1.10 basing on llvm 15) and some CUDA-C++ code, that the llvm infrastructure is able to generate the
.loc
instructions.To reproduce
The Minimal Working Example (MWE) for this bug:
Execute code with
julia -g1
orjulia -g2
.Manifest.toml
Expected behavior
The PTX code should contain
.loc
instructions and the ncu-ui profiler should display the correct source code for specific instruction in a profiled kernel.Version info
Details on Julia:
Details on CUDA:
The text was updated successfully, but these errors were encountered: