Sample code "SobelFilter"

I’m trying to analyze the SobelFilter(Sample code including CUDA SDK).

It has 2 source files(SobelFilter.cu, SobelFilter_Kernels.cu).

In the SobelFilter.cu, the main function has glutMainLoop();

I think that mainfunction is in the SobelFilter_Kernels.cu. hence I try to connect SobelFilter.cu and SobelFilter_Kernel.cu.

But there are no connection between two files.

SobelFilter_Kernel.cu has only subrootins for calculating Sobel mask.

What is connection between glutMainLoop() and SobelFilter_Kernels.cu.

I’m too hard to learn CUDA ㅜㅜ

PS) I’m sorry about my poor English skill.

normally in the SDK examples the *_kernel.cu file is included in the *.cu file
So in this case there is probably a #include “SobelFilter_Kernels.cu” line in SobelFilter.cu

I found the connection.

^____^

include “SobelFilter_Kernels.cu” !!!

thank you very much!!