Skip to content

Commit

Permalink
remove aie_cdo_error_handling.bin from cdo backend (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifield authored May 15, 2024
1 parent e876089 commit aba1887
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
13 changes: 0 additions & 13 deletions lib/Targets/AIETargetCDODirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,6 @@ struct AIEControl {
TRY_XAIE_API_FATAL_ERROR(XAie_UpdateNpiAddr, &devInst, NPI_ADDR);
}

LogicalResult addErrorHandlingToCDO() {
TRY_XAIE_API_LOGICAL_RESULT(XAie_ErrorHandlingInit, &devInst);
return success();
}

LogicalResult addAieElfToCDO(uint8_t col, uint8_t row,
const StringRef elfPath, bool aieSim) {
// loadSym: Load symbols from .map file. This argument is not used when
Expand Down Expand Up @@ -721,12 +716,6 @@ LogicalResult generateCDOBinariesSeparately(AIEControl &ctl,
const StringRef workDirPath,
DeviceOp &targetOp, bool aieSim,
bool enableCores) {
if (failed(generateCDOBinary(
(llvm::Twine(workDirPath) + std::string(1, ps) +
"aie_cdo_error_handling.bin")
.str(),
std::bind(&AIEControl::addErrorHandlingToCDO, ctl))))
return failure();

if (!targetOp.getOps<CoreOp>().empty() &&
failed(generateCDOBinary(
Expand Down Expand Up @@ -759,8 +748,6 @@ LogicalResult generateCDOUnified(AIEControl &ctl, const StringRef workDirPath,
return generateCDOBinary(
(llvm::Twine(workDirPath) + std::string(1, ps) + "aie_cdo.bin").str(),
[&ctl, &targetOp, &workDirPath, &aieSim, &enableCores] {
if (failed(ctl.addErrorHandlingToCDO()))
return failure();
if (!targetOp.getOps<CoreOp>().empty() &&
failed(ctl.addAieElfsToCDO(targetOp, workDirPath, aieSim)))
return failure();
Expand Down
1 change: 0 additions & 1 deletion python/compiler/aiecc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ def emit_design_bif(root_path, has_cores=True, enable_cores=True):
{{
name=aie_image, id=0x1c000000
{{ type=cdo
file={root_path}/aie_cdo_error_handling.bin
{elf_file}
file={root_path}/aie_cdo_init.bin
{enable_file}
Expand Down
2 changes: 0 additions & 2 deletions tools/aie2xclbin/XCLBinGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,6 @@ static LogicalResult generateXCLBin(MLIRContext *context, ModuleOp moduleOp,
<< "\t{\n"
<< "\t\tname=aie_image, id=0x1c000000\n"
<< "\t\t{ type=cdo\n"
<< "\t\t file=" << TK.TempDir
<< "/aie_cdo_error_handling.bin\n"
<< "\t\t file=" << TK.TempDir << "/aie_cdo_elfs.bin\n"
<< "\t\t file=" << TK.TempDir << "/aie_cdo_init.bin\n"
<< "\t\t file=" << TK.TempDir << "/aie_cdo_enable.bin\n"
Expand Down

0 comments on commit aba1887

Please sign in to comment.