Closed
Description
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'
I found "HD functions cannot be overloaded by H or D functions with the same signature" in this doc:
https://llvm.org/docs/CompileCudaWithLLVM.html#overloading-based-on-host-and-device-attributes
but I want to known declear HD, than separate define H/D is OK?