Build CUDA extension in windows 10

Hello, everyone.
I want to write some pytorch cuda extensions in windows 10.
I succeed in writing c extensions in these links:
https://pytorch.org/tutorials/advanced/c_extension.html
https://pytorch.org/docs/master/notes/windows.html
I noted that most implementation of cuda extension is based on c extension, which means that python interact with c, and c interact with cuda.
I know how to use cffi to build pure c extension in windows 10, and I succeed.
I wonder when I use cffi to build a c extension which has interaction with cuda, does cffi build cuda file (.cu) together? Or the cuda file should be built separately? How to built the cuda file in windows 10?
Another question is: Is there any proper methods to co-debug c and cuda extensions in windows 10? Can IDEs such as Visual Studio do this job?
I am not familiar with cuda programming and debugging , thanks for any suggestion