Thank you for your response. You’ve caused me to look even deeper into the problem. I think it would have been better if you started by saying “Bob … the comment in the code is wrong!”
I am running all of these tools under Win7 in debug mode. I looked at the output of the sass CUPTI program and finally realized that the functionId is actually printed out! So I know it is 1 for the transpose function.
I am trying to help you make your products better.
If you follow the comment in the code you get an error!
nvdisasm -b -fun 1 sass_source_map.cubin
Clearly, this command is also wrong (as you said) … and it generates an error.
nvdisasm -b sass_source_map.cubin
by the way … although this command works, the function is excluded from the output file. Try it. There
is no .text section for the function.
nvdisasm -fun 1 sass_source_map.cubin > output.txt
So we think the comment should have said “try nvdisasm sass_source_map.cubin > output.txt”
That will work. You can then crack open output.txt and look for the transpose function.
So here’s the next problem … the purpose of the CUPTI sass example is to show you how to correlate opcodes back to source lines. You will quickly see that this command “nvdisasm sass_source_map.cubin > output.txt”
It should be “nvdisasm -g sass_source_map.cubin > output.txt”
It would be really great if you fixed the sample code so that other developers dont have to struggle with this.