Skip to content

Commit

Permalink
Don't generate configuration from elfs if elf path wasn't provided (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fifield authored Nov 1, 2024
1 parent 22e41a1 commit 610a4f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Conversion/AIEToConfiguration/AIEToConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,9 @@ static LogicalResult convertAIEToConfiguration(AIE::DeviceOp device,
// start collecting transations
XAie_StartTransaction(&ctl.devInst, XAIE_TRANSACTION_DISABLE_AUTO_FLUSH);

if (failed(generateTransactions(ctl, clElfDir, device, aieSim, true, true,
true)))
bool generateElfs = clElfDir.size() > 0;
if (failed(generateTransactions(ctl, clElfDir, device, aieSim, generateElfs,
true, true)))
return failure();

// Export the transactions to a binary buffer
Expand Down

0 comments on commit 610a4f8

Please sign in to comment.