Skip to content

Missing function in hierarchical when targetting PTX #1291

Closed
@steffenlarsen

Description

@steffenlarsen

Compiling

#include <CL/sycl.hpp>

using namespace cl::sycl;

int main() {
  queue q(default_selector().select_device());
  q.submit([&](handler &cgh) {
    cgh.parallel_for_work_group(range<1>(1), range<1>(1), [=](group<1> g) {
      g.parallel_for_work_item(
          [=](h_item<1> i) {});
    });
  });
  return 0;
}

using the nvptx64-nvidia-cuda-sycldevice triple causes the following error:

Call parameter type does not match function signature!
%"class._ZTSN2cl4sycl5groupILi1EEE.cl::sycl::group" addrspace(3)* @ArgShadow
 %"class._ZTSN2cl4sycl5groupILi1EEE.cl::sycl::group"*  call void @"_ZNK2cl4sycl5groupILi1EE22parallel_for_work_itemIZZZ4mainENK3$_0clERNS0_7handlerEENKUlS2_E_clES2_EUlNS0_6h_itemILi1EEEE_EEvT_"(%"class._ZTSN2cl4sycl5groupILi1EEE.cl::sycl::group" addrspace(3)* @ArgShadow, %"class._ZTSZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_5groupILi1EEEE_clES5_EUlNS1_6h_itemILi1EEEE_.anon"* byval(%"class._ZTSZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_5groupILi1EEEE_clES5_EUlNS1_6h_itemILi1EEEE_.anon") align 1 %agg.tmp)
Call parameter type does not match function signature!
%"class._ZTSN2cl4sycl5groupILi1EEE.cl::sycl::group" addrspace(3)* @ArgShadow
 %"class._ZTSN2cl4sycl5groupILi1EEE.cl::sycl::group"*  call void @"_ZNK2cl4sycl5groupILi1EE22parallel_for_work_itemIZZZ4mainENK3$_0clERNS0_7handlerEENKUlS2_E_clES2_EUlNS0_6h_itemILi1EEEE_EEvT_"(%"class._ZTSN2cl4sycl5groupILi1EEE.cl::sycl::group" addrspace(3)* @ArgShadow, %"class._ZTSZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_5groupILi1EEEE_clES5_EUlNS1_6h_itemILi1EEEE_.anon"* byval(%"class._ZTSZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_5groupILi1EEEE_clES5_EUlNS1_6h_itemILi1EEEE_.anon") align 1 %agg.tmp)
in function _ZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_5groupILi1EEEE_clES5_
fatal error: error in backend: Broken function found, compilation aborted!
clang-9: error: clang frontend command failed with exit code 70 (use -v to see invocation)

Metadata

Metadata

Assignees

Labels

cudaCUDA back-end

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions