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
However when the same code is used in another project (https://github.com/Michoumichmich/MolecularDynamics), it systematically fails. That project builds several backends as shared libraries. They all depends on SYCL. As discussed here: KhronosGroup/SYCL-Docs#209, each "kernel query" is (properly?) compiled in the same translation unit as where the kernels are defined (and shared libraries are compiled with -fvisibility=hidden) and everything works fine (on the "commercial" version of oneAPI too). Since 4817b3f using the code above "somewhere in the main.cpp" or a shared library systematically results in a segfault here:
Michoumichmich
changed the title
[Regression] New segmentation faults when using get_kernel_bundle
[Regression] New segmentation fault when using get_kernel_bundle
Feb 20, 2022
Hi,
Since #5496 I have segmentation faults when using
sycl::get_kernel_bundle
.The following code works as expected:
However when the same code is used in another project (https://github.com/Michoumichmich/MolecularDynamics), it systematically fails. That project builds several backends as shared libraries. They all depends on SYCL. As discussed here: KhronosGroup/SYCL-Docs#209, each "kernel query" is (properly?) compiled in the same translation unit as where the kernels are defined (and shared libraries are compiled with
-fvisibility=hidden
) and everything works fine (on the "commercial" version of oneAPI too). Since 4817b3f using the code above "somewhere in the main.cpp" or a shared library systematically results in a segfault here:llvm/sycl/source/detail/program_manager/program_manager.cpp
Line 1459 in beb7277
To Reproduce
To build and run the reproducer:
It seems to affect at least the CPU and CUDA backends
And the backtrace:
Environment:
The text was updated successfully, but these errors were encountered: