You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
full debug: llc -O0 emits .b8 4294967295 that ptxas rejects (repr_u32_enum_stride, set_discriminant) #1220
bugSomething isn't workingcodegenDevice code-generation pipeline (Rust MIR to IR to PTX)debug infoDebug information in generated PTX/IR (line/source maps)llvm-exportTextual LLVM/NVVM IR exporter (llvm-export crate)
With CUDA_OXIDE_DEBUG=full two examples produce PTX that ptxas rejects:
ptxas repr_u32_enum_stride.ptx, line 4956; error : Value out of range for type .b8 4294967295
ptxas set_discriminant.ptx, line 2259; error : Value out of range for type .b8 4294967291
ptxas fatal : Ptx assembly aborted due to errors
Both are .b8 initializers carrying a 32-bit value: 4294967295 is -1 as u32, 4294967291 is -5. Something emits an i8 constant through a 32-bit path when llc runs at -O0 (release builds of the same examples assemble fine).
Independent of the MIR level (fails at 0 and at 2), so it is on the LLVM/llc side or in how the exporter spells the constant.
Both examples exercise enum discriminants; likely one root cause.
bugSomething isn't workingcodegenDevice code-generation pipeline (Rust MIR to IR to PTX)debug infoDebug information in generated PTX/IR (line/source maps)llvm-exportTextual LLVM/NVVM IR exporter (llvm-export crate)
Activity
debug: full device debug keeps MIR optimizations, disables only the t…