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
Compile with clang++ -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx1032 -o test test.cpp
Expected result: compiler exits without error, producing an executable named test
Actual result: compiler exits with error
lld: error: undefined hidden symbol: __spirv_GroupNonUniformBallot(unsigned int, bool)
>>> referenced by lto.tmp:(typeinfo name for sycl::_V1::detail::__pf_kernel_wrapper<main::'lambda'(sycl::_V1::handler&)::operator()(sycl::_V1::handler&) const::ballot>)
>>> referenced by lto.tmp:(typeinfo name for sycl::_V1::detail::__pf_kernel_wrapper<main::'lambda'(sycl::_V1::handler&)::operator()(sycl::_V1::handler&) const::ballot>)
>>> referenced by lto.tmp:(_ZTSN4sycl3_V16detail19__pf_kernel_wrapperIZZ4mainENKUlRNS0_7handlerEE_clES4_E6ballotEE_with_offset)
>>> referenced 5 more times
Environment:
OS: Ubuntu 20.04
Target device and vendor: AMD Radeon RX6600 (gfx1032)
This patch is adding group ballot support for HIP (based on initial work
from @abagusetty on #6734 ), but also
extending the sub-group mask implementation to support 64 bit masks, as
a lot of AMD GPUs use 64 bit wavefronts.
Related to issue: #6718
Describe the bug
Code that uses
sycl::ext::oneapi::group_ballot
will fail with a linker error when compiling toamdgcn-amd-amdhsa
.Error message:
lld: error: undefined hidden symbol: __spirv_GroupNonUniformBallot(unsigned int, bool)
To Reproduce
test.cpp
with this code:clang++ -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx1032 -o test test.cpp
test
Environment:
The text was updated successfully, but these errors were encountered: