Interfacing between a program in cuda and the other in c opencv

Hello I want to ask you how can i make a program in cuda and the other in c opencv working together and thank you in advance. have a nice day.

http://stackoverflow.com/questions/24613637/custom-kernel-gpumat-with-float