Skip to content

Conversation

AlexeySachkov
Copy link
Contributor

Consolidated all common (i.e. non-conditional) include directories settings for SYCL RT build in a single place.

Consolidated all common (i.e. non-conditional) include directories
settings for SYCL RT build in a single place.
target_link_libraries(${LIB_OBJ_NAME}
PRIVATE
UnifiedRuntime-Headers
UnifiedRuntimeCommon
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please clarify why UnifiedRuntimeCommon is removed in new version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Two reasons:

  • (main) it is not clear why SYCL RT should ever be linked with some "common" UR library - that thing seems to store some shared UR utilities which are used within UR, but not a part of the UR public interface. Tagging @intel/unified-runtime-reviewers to correct me if I'm wrong
  • (secondary) object libraries are newer linked with anything, so the only reason to "link" something is to use INTERFACE libraries to get include paths and in [SYCL][NFC] SYCL RT CMakeLists cleanup [2/N] #17388 we seems to have an agreement that "common" UR headers should not be in use by SYCL RT

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah I don't think anything in sycl should be using the stuff in UR common, if anything from common is used externally the fix will be to make a public interface for it

Copy link
Contributor

Choose a reason for hiding this comment

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

great, thanks for the confirmation!

@AlexeySachkov AlexeySachkov merged commit acaa59c into intel:sycl Mar 14, 2025
23 checks passed
@AlexeySachkov AlexeySachkov deleted the private/asachkov/cmake-cleanup-3 branch March 14, 2025 14:30
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.

3 participants