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

Amend npu build option #8619

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Amend npu build option #8619

wants to merge 1 commit into from

Conversation

stsoe
Copy link
Collaborator

@stsoe stsoe commented Nov 23, 2024

Problem solved by the commit

Create CMake variables for XRT_NPU and XRT_ALVEO in place of NPU and XRT_DKMS_ALVEO. Modify CMake files accordingly.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

Fix CMake file for CPack to create component specific package for single component project. This will be used for NPU builds where ultimately all but the default npu package will be disabled.

How problem was solved, alternative solutions (if any) and why they were rejected

The top level build.sh script defines one of two CMake variables depending on whether -npu is specified or not.
The variables control the default CMake install component., which for -npu will be npu and otherwise legacy xrt component. The install components created by CMake result in CPack creating packages with component names appended.

Changes will have to be made to submodules built by XRT to honor any install component specified by XRT prior to including the submodule in CMake. Basically the installable pieces of a submodule can be added to any XRT component as desired. Supposedly this will be either the npu or default xrt component. The XRT default component is defined in src/CMakeLists.txt in the XRT_COMPONENT CMake variable which is either npu or xrt depending on build option.

This PR renders #8616 obsolete.

Create CMake variables for XRT_NPU and XRT_ALVEO in place of NPU and
XRT_DKMS_ALVEO.  Modify CMake files accordingly.

Fix CMake file for CPack to create component specific package for
single component project.  This will be used for NPU builds where
ultimately all but the default npu package will be disabled.

Signed-off-by: Soren Soe <[email protected]>
@stsoe stsoe requested review from sonals, maxzhen and IshitaGhosh and removed request for rozumx and AShivangi November 23, 2024 04:52
Copy link
Collaborator

@IshitaGhosh IshitaGhosh left a comment

Choose a reason for hiding this comment

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

Please consider my feedback shared in email.

set (XRT_DEV_COMPONENT "xrt")

# For NPU builds the defalt component is "npu".
if (XRT_NPU)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This changes install package name to "xrt-npu". Please review whether we want to pursue it.

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.

5 participants