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] Fix forward declarations to SubgroupShuffleUp/Down overloads (#8614)
This PR fixes up the template overload function forward declarations for (Generic) `SubroupShuffleDown` and `SubroupShuffleUp` to use the `uint32_t delta` parameter instead of `id<1> local_id`. Also removed two unnecessary forward declarations `EnableIfBitcastShuffle SubroupShuffleUp/Down` with `id<1> local_id`.
These forward declarations are needed because the `EnableIfVector` imlpementations call these functions but their bodies are defined after vector versions, so the compiler can't identify them.
Without this fix users will get `SYCL kernel cannot call an undefined function without SYCL_EXTERNAL attribute ...` compile errors. That error also manifested in issue [#8516](#8516), which will be fixed with the changes of the PR.
Side note: This also fixes compiling the `group_broadcast` tests for the `test_group_functions` target in the SYCL-CTS.
0 commit comments