-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL][NFC] SYCL RT CMakeLists cleanup [3/N] #17413
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
[SYCL][NFC] SYCL RT CMakeLists cleanup [3/N] #17413
Conversation
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
Consolidated all common (i.e. non-conditional) include directories settings for SYCL RT build in a single place.