Romant
October 21, 2010, 11:57pm
1
After the compilation of the .cu file with -keep option I have the .fatbin.c file generated. There is a huge array in it, something like this:
static const unsigned long long _deviceText $sm_20$ = {
0x33010102464c457f,0x0000000000000003,0x0000000100be0002,0x0
000000000000000,
0x000000000004c198,0x0000000000000040,0x0038004000140014,0x0
001000e00400004,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0
000000000000000,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0
000000000000000,
0x0000000300000001,0x0000000000000000,0x0000000000000000,0x0
0000000000003c0,
…
};
Am I right that each 64bit value of this array represents a single instruction ?
Romant
October 21, 2010, 11:57pm
2
After the compilation of the .cu file with -keep option I have the .fatbin.c file generated. There is a huge array in it, something like this:
static const unsigned long long _deviceText $sm_20$ = {
0x33010102464c457f,0x0000000000000003,0x0000000100be0002,0x0
000000000000000,
0x000000000004c198,0x0000000000000040,0x0038004000140014,0x0
001000e00400004,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0
000000000000000,
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0
000000000000000,
0x0000000300000001,0x0000000000000000,0x0000000000000000,0x0
0000000000003c0,
…
};
Am I right that each 64bit value of this array represents a single instruction ?
I think that instructions use variable-length encoding so you probably want to try out the objdump to get an exact count.
I think that instructions use variable-length encoding so you probably want to try out the objdump to get an exact count.
Romant
October 22, 2010, 12:19am
5
Could you please give more info on it ? What exactly should be done, what file should I use as a source for objdump, how to interpret objdump output ?
Romant
October 22, 2010, 12:19am
6
Could you please give more info on it ? What exactly should be done, what file should I use as a source for objdump, how to interpret objdump output ?
Romant
October 22, 2010, 12:32am
7
Also, am I right that this is Linux utility ? Google does not give straightforward info on how and where to get the latest objdump for windows (if it works on windows).
Romant
October 22, 2010, 12:32am
8
Also, am I right that this is Linux utility ? Google does not give straightforward info on how and where to get the latest objdump for windows (if it works on windows).
Romant,
I think that file is a “ASCII” file… Just print the content to the screen and you should see a PTX file…but not sure if something changed with FERMI…
Sarnath
October 22, 2010, 6:59am
10
Romant,
I think that file is a “ASCII” file… Just print the content to the screen and you should see a PTX file…but not sure if something changed with FERMI…