Issue 141922
Summary [Clang] unsupported declare CUDA host device function and define host/device separate
Labels clang
Assignees
Reporter QiYueFeiXue
    https://godbolt.org/z/K44e7esn1

```
__host__ __device__ void func();  // error

// __device__ void func(); // ok
// __host__ void func(); // ok


__host__ void func() {}

__device__ void func(void) {}
```

 error: __host__ function 'func' cannot overload __host__ __device__ function 'func'
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to