Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TargetCDODirect] Separate aie-rt related functions into a new library #1018

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

Yu-Zhewen
Copy link
Contributor

@Yu-Zhewen Yu-Zhewen commented Jan 10, 2025

The following interface functions between the xilinx::aie dialect and aie-rt have been relocated and renamed

Target/AMDAIETargetCDODirect.cpp/addAieElfsToCDO ->Target/AMDAIERT.cpp/addAllAieElfs
Target/AMDAIETargetCDODirect.cpp/addCoreEnableToCDO -> Target/AMDAIERT.cpp/addAllCoreEnable
Target/AMDAIETargetCDODirect.cpp/addInitConfigToCDO -> Target/AMDAIERT.cpp/addInitConfig

The motivation is, these functions are not specific to the CDO and can be useful in other contexts, such as generating control packets.

Brief documentation has also been added for these functions in the new header file.

related: Xilinx/mlir-aie#1760

// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#pragma once
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use the #ifndef IREE_AMD_AMDAIE_RT_H_ header guards instead in consistency with upstream?

return failure();
}

// pull metadata related to packet routing, bdid, buffer length, size, stride
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// pull metadata related to packet routing, bdid, buffer length, size, stride
// Pull metadata related to packet routing, bdId, buffer length, size, stride

Copy link
Collaborator

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Yu-Zhewen Yu-Zhewen enabled auto-merge (squash) January 10, 2025 22:17
@Yu-Zhewen Yu-Zhewen merged commit f367180 into main Jan 10, 2025
6 checks passed
@Yu-Zhewen Yu-Zhewen deleted the zhewen_amdaie_rt branch January 10, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants