You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Force-emit more member functions into device code (intel#13985)
By some reason, we used to only emit unused member functions if they
are explicitly annotated with `sycl_device` attribute (through
`SYCL_EXTERNAL` macro).
This logic was introduced in 3baec18
and there is no clear indication as to why exactly we have a check that
the attribute is explicit.
SYCL extension for virtual functions introduces an alternative markup
for specifying which function and that markup is SYCL compile-time
properties that we turn into attributes implicitly under the hood.
Essentially, we now have a situation where an implicit `sycl_device`
attribute on a member function should be treated as an explicit one,
because it could be a result of SYCL compile-time property being applied
to that method.
Considering our current codebase, it seems like we intend to
have member function to be emitted in all cases where
`sycl_device` is being implicitly added and therefore this patch removes
the requirement for the attribute to be explicit.
0 commit comments