It seems that the combination of pragma BOLT_HD_WARNING_DISABLE and BOLT_DECL_HYBRID on the same line above the method can somehow disable the BOLT_DECL_HYBRID. The compilation throws warnings about using host only code on device, and the execution crashes. If BOLT_HD_WARNING_DISABLE is removed, the code works fine.
There is a crashing example in the attachments. If BOLT_HD_WARNING_DISABLE is removed, it works.
test.cu.txt
CMakeLists.txt