Formatting

This commit is contained in:
Richard Berger 2021-04-23 16:36:01 -04:00
parent 8ba1b59d8d
commit 24314b2316
No known key found for this signature in database
GPG Key ID: A9E83994E0BA0CAB
1 changed files with 8 additions and 11 deletions

View File

@ -108,17 +108,14 @@ class UCL_Program {
std::cerr << log << std::endl
<< "----------------------------------------------------------\n\n";
#endif
if (foutput != NULL) {
fprintf(foutput,"\n\n");
fprintf(foutput,
"----------------------------------------------------------\n");
fprintf(foutput," UCL Error: Error compiling PTX Program...\n");
fprintf(foutput,
"----------------------------------------------------------\n");
fprintf(foutput,"%s\n",log->c_str());
fprintf(foutput,
"----------------------------------------------------------\n");
fprintf(foutput,"\n\n");
if (foutput != nullptr) {
fprintf(foutput,"\n\n");
fprintf(foutput, "----------------------------------------------------------\n");
fprintf(foutput, " UCL Error: Error compiling PTX Program...\n");
fprintf(foutput, "----------------------------------------------------------\n");
fprintf(foutput, "%s\n",log->c_str());
fprintf(foutput, "----------------------------------------------------------\n");
fprintf(foutput,"\n\n");
}
return UCL_COMPILE_ERROR;
}