SAD program on cuda

Hello , can you help me by giving me sum links or code examples of the program of sum of absolute difference (SAD) on cuda. Thank you all and have a nice day.