I’m just trying to do some float2 vector maths (i.e. float2/float2) in a CUDA device program (compiling with NVRTCV), and getting:
no operator “/” matches these operands
operand types are: float2 / float2
Is there a function intrinsic instead of an operator for vector maths?
I know I could do:
But as a GPU programmer, that seems totally wrong as its going to waste the opportunity to use SIMD vector instructions.