I’m trying to overload operator* for the float2 data type.
host device inline float2 operator*(const float2 a, const float2 B)
Now, I need to call __fmul_rn() on device, which is not defined on host.
Is there any way to exclude __fmul_rn() invocation on host? Any define like HOST or DEVICE?
Thanks a lot,