-
Notifications
You must be signed in to change notification settings - Fork 116
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
[HIP] Remove inline from helper #1178
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1178 +/- ##
==========================================
- Coverage 15.72% 15.72% -0.01%
==========================================
Files 223 223
Lines 31484 31484
Branches 3556 3556
==========================================
- Hits 4952 4951 -1
- Misses 26481 26482 +1
Partials 51 51 ☔ View full report in Codecov by Sentry. |
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.
Now this function is visible, does it need to start with ur
or some internal-private prefix?
@kbenzie will know
If this is only being made to have external linkage for use within the HIP adapter there is no need for it to have a |
This function already had external linkage with the compilers that I tested (gcc 11 and upstream clang) so it shouldn't need any change. Note that this only broke for gcc 12 since the func is called from another TU and gcc 12 seems to have some implementation defined behaviour that makes inline funcs have internal linkage |
Thanks for clarifying |
Ping @oneapi-src/owner-unified-runtime can we merge this? |
We are working though the ready to merge backlog and will get to this as soon as we can. |
Thanks @kbenzie |
Different compilers can change the linkage of symbols based on whether
inline
is used. This removes theinline
specifier so it has external linkage and can be called from within another TU.