How to run any function directly on GPU

Hello,
How to run any function directly on GPU

Thanks in advance

All CUDA APIs run functions directly an NVIDIA GPU.