We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa2375b + 5d525b1 commit 19b4425Copy full SHA for 19b4425
common/lib/share/mccode-r.c
@@ -4531,12 +4531,14 @@ mcenabletrace(int mode)
4531
mcdotrace = mode;
4532
#pragma acc update device ( mcdotrace )
4533
} else {
4534
- fprintf(stderr,
4535
- "Error: trace not enabled (mcenabletrace)\n"
4536
- "Please re-run the " MCCODE_NAME " compiler "
4537
- "with the --trace option, or rerun the\n"
4538
- "C compiler with the MC_TRACE_ENABLED macro defined.\n");
4539
- exit(1);
+ if (mode>0) {
+ fprintf(stderr,
+ "Error: trace not enabled (mcenabletrace)\n"
+ "Please re-run the " MCCODE_NAME " compiler "
+ "with the --trace option, or rerun the\n"
+ "C compiler with the MC_TRACE_ENABLED macro defined.\n");
4540
+ exit(1);
4541
+ }
4542
}
4543
4544
0 commit comments