From 610a4f89a53e8ead2d58a3c82f0250b0975e8b27 Mon Sep 17 00:00:00 2001 From: Jeff Fifield Date: Fri, 1 Nov 2024 15:00:55 -0600 Subject: [PATCH] Don't generate configuration from elfs if elf path wasn't provided (#1898) --- lib/Conversion/AIEToConfiguration/AIEToConfiguration.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Conversion/AIEToConfiguration/AIEToConfiguration.cpp b/lib/Conversion/AIEToConfiguration/AIEToConfiguration.cpp index 26bb1567f0..81e2411d96 100644 --- a/lib/Conversion/AIEToConfiguration/AIEToConfiguration.cpp +++ b/lib/Conversion/AIEToConfiguration/AIEToConfiguration.cpp @@ -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