Skip to content

Commit

Permalink
print build log in debug log when failing to compile (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjodinchr authored Jul 9, 2023
1 parent 38c9586 commit a0fd7fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ cl_build_status cvk_program::do_build_inner_offline(bool build_to_ir,
int status = cvk_exec(cmd, &m_build_log);
if (status != 0) {
cvk_error_fn("failed to compile the program");
cvk_debug_fn("%s", m_build_log.c_str());
return CL_BUILD_ERROR;
}

Expand Down Expand Up @@ -1293,6 +1294,7 @@ cl_build_status cvk_program::do_build_inner_online(bool build_to_ir,
}
if (status != 0) {
cvk_error_fn("failed to compile the program");
cvk_debug_fn("%s", m_build_log.c_str());
return CL_BUILD_ERROR;
}
return CL_BUILD_SUCCESS;
Expand Down

0 comments on commit a0fd7fb

Please sign in to comment.