Open yavuz650 opened 9 months ago
Hi! Thanks for bringing this to our attention. There are a few assumptions that we make in the PTX translator that breaks with more custom shaders. We are working to improve the translator to handle these kind of cases. In the meantime, you can try to manually adjust the variable types in the PTX file to pass through ptxinfo. You should be able to skip the PTX translation stage (to avoid overwriting your modified PTX files) by disabling the nir_translate_shader_to_ptx function and the run_rt_translation_passes function.
I was tinkering with the RTV shaders in Lumibench, and I ran into a strange issue. You can reproduce it by making the following minimal changes to the
TraceAO.rgen
shader,When you compile this shader and run it on vulkan-sim, it throws the following error while generating PTXINFO,
I dug into the PTX code(
temp_ptxas_shader.ptx
) and found that the error is caused by amov.f32
instruction whose argument is au32
instead off32
.reg .u32 %ssa_27_1;
mov.f32 %ssa_802_1, %ssa_27_1;
So the source operand appears to be
u32
(which I believe is thedummy
variable we declared above), but I'm not sure whyptxas
considers this illegal.System Info