Hi,
iam currently working on an automatic OpenCL to CUDA kernel translator based on Clang.
In order to support translation of OpenCLs built-in functions i would like to know if the following function mapping is correct:As for the functions stated in Math Built-In Functions
OpenCL functions defined without a half_ or native_ prefix will be translated to CUDAs Single Precision Mathematical Functions or Double Precision Mathematical Functions based on the input arguments type.
Functions defined with a half_ prefix will be mapped to CUDAs Half Precision Intrinsics and _native prefix functions to CUDAs Single and Double Precision Intrinsics
http://docs.nvidia.com/cuda/cuda-math-api/index.html#axzz4nk8a8eW1
I would appreciate your help