build-in cross product and dot product of CUDA


i had used cuda more than 1 year ago, and now i complete forget, i have to re-learn everything. i’m now trying to rewrite my opencl code with cuda, but i couldn
t find the build-in cross product and dot product and operations such as normalization for build-in data type float4 and float3.

i have looked into the manual, programming guide and searched on the internet. i didn’t see any information about the build-in operations on these types.

can anybody point to me where i can find information for these operations?


i found the cutil_math.h header file form the example code. guess that is the answer.