Hi all,
I had an interesting idea, and before I set out doing this (in a few months, once my main project is finished), I wanted to see if it is already out there.
I want a utility that will analyze the ptx source code that is spit out by the compilation process, and go back in to the compiled .cu files and add comments to the original source code (or tell the programmer in some easy to see way) that states what type of memory the variable was allocated in.
For example:
[codebox]void kernel()
{
int var_name;
int var1[10];
shared int var_2;
.
.
.
}
[/codebox]
Gets modified to:
[codebox]void kernel()
{
int var_name; //register (x of y used)
int var1[10]; //local memory (x2 of y2 used)
shared int var_2; //shared memory (x3 of y3 used)
.
.
.
}
[/codebox]
Does anyone know if something like this exists?
Thanks,
Adam