-
Notifications
You must be signed in to change notification settings - Fork 791
[SYCL][NFC] Drop leftover host device symbols #20172
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] Drop leftover host device symbols #20172
Conversation
Host device had been removed a while ago, but we still exported some `__spirv` symbols which were even referenced on some code paths. This commit prepares for their removal in the next ABI-breaking window
sycl/include/sycl/detail/spirv.hpp
Outdated
| __nvvm_bar_warp_sync(detail::ExtractMask(detail::GetMask(g))[0]); | ||
| #else | ||
| #elif defined(__SYCL_DEVICE_ONLY__) | ||
| (void)g; |
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.
Make it [[maybe_unused]] too, otherwise there will be a warning on the host.
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.
Addressed in 3d66a50
sycl/source/detail/platform_util.hpp
Outdated
|
|
||
| static uint64_t getMemCacheSize(); | ||
|
|
||
| #ifndef __INTEL_PREVIEW_BREAKING_CHANGES |
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.
Where is it used? Can we just drop unconditionally?
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.
It is used in spirv_ops.cpp. but since PlatformUtil isn't exported on its own we should indeed be able to remove it straight away
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.
Removed in 3d66a50
Host device had been removed a while ago, but we still exported some
__spirvsymbols which were even referenced on some code paths.This commit prepares for their removal in the next ABI-breaking window