Skip to content

Commit

Permalink
Adding error message whenever the xclbin tool fails to produce xclbin (
Browse files Browse the repository at this point in the history
  • Loading branch information
josemonsalve2 authored Jun 20, 2024
1 parent 7f01e73 commit db0e636
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,12 @@ LogicalResult AIETargetBackend::serializeExecutable(

{
SmallVector<StringRef> cmdEnvRefs{cmdEnv.begin(), cmdEnv.end()};
int result = llvm::sys::ExecuteAndWait(cmdArgs[0], cmdArgs, cmdEnvRefs);
int result = llvm::sys::ExecuteAndWait(cmdArgs[0], cmdArgs, cmdEnvRefs,
{}, 0, 0, &errorMessage);
if (result != 0)
return moduleOp.emitOpError(
"Failed to produce an XCLBin with external tool.");
return moduleOp.emitOpError()
<< "Failed to produce an XCLBin with external tool: "
<< errorMessage;
}

std::ifstream instrFile(static_cast<std::string>(npuInstPath));
Expand Down

0 comments on commit db0e636

Please sign in to comment.