Skip to content

[SYCL][NATIVECPU] Allow building Native CPU with shared libraries #13830

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

Merged
merged 11 commits into from
Jul 4, 2024

Conversation

PietroGhg
Copy link
Contributor

Currently building Native CPU with shared libraries enabled leads to a CMake error when configuring: some components of the oneAPI Construction Kit depend on LLVMPasses, and since they are also added as link_libraries to SYCLLowerIR (which LLVMPasses depends on), that creates a circular dependency that is not allowed when building with shared libraries enabled.
This PR addresses this by moving all the Native CPU components to a new folder (SYCLNativeCPUUtils), that is not linked to LLVMPasses, thus breaking the circular dependencies.

@PietroGhg PietroGhg requested review from a team as code owners May 20, 2024 12:28
Copy link
Contributor

@elizabethandrews elizabethandrews left a comment

Choose a reason for hiding this comment

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

I am not too familiar with cmake but FE change looks ok to me

Copy link
Contributor

@kbenzie kbenzie left a comment

Choose a reason for hiding this comment

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

UR LGTM

@PietroGhg
Copy link
Contributor Author

Hi @intel/dpcpp-esimd-reviewers, could you take a look at this PR? Thanks

@PietroGhg
Copy link
Contributor Author

@intel/dpcpp-esimd-reviewers ping

1 similar comment
@PietroGhg
Copy link
Contributor Author

@intel/dpcpp-esimd-reviewers ping

@wenju-he
Copy link
Contributor

wenju-he commented Jul 3, 2024

kindly ping @intel/dpcpp-esimd-reviewers for review

@PietroGhg
Copy link
Contributor Author

Hi @intel/llvm-gatekeepers, this looks ready to merge, windows failure is infrastructural, see #14370 (comment)

@martygrant martygrant merged commit 3006324 into intel:sycl Jul 4, 2024
13 of 14 checks passed
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.

9 participants