Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions common/lib/share/mccode-r.c
Original file line number Diff line number Diff line change
Expand Up @@ -4531,12 +4531,14 @@ mcenabletrace(int mode)
mcdotrace = mode;
#pragma acc update device ( mcdotrace )
} else {
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");
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");
exit(1);
}
}
}

Expand Down
Loading