We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b8b46c commit 46275a9Copy full SHA for 46275a9
src/debug.cc
@@ -130,9 +130,13 @@ void gpgpu_sim::gpgpu_debug() {
130
if (!strcmp(tok, "dp")) {
131
int shader_num = 0;
132
tok = strtok(NULL, " \t\n");
133
- sscanf(tok, "%d", &shader_num);
134
- dump_pipeline((0x40 | 0x4 | 0x1), shader_num, 0);
135
- printf("\n");
+ if (0x0 == tok) {
+ printf("Hint: dp must take with <n> to display pipeline contents on SM \n");
+ } else {
136
+ sscanf(tok, "%d", &shader_num);
137
+ dump_pipeline((0x40 | 0x4 | 0x1), shader_num, 0);
138
+ printf("\n");
139
+ }
140
fflush(stdout);
141
} else if (!strcmp(tok, "q") || !strcmp(tok, "quit")) {
142
printf("\nreally quit GPGPU-Sim (y/n)?\n");
0 commit comments