However, I am not sure how to compile it, as I have never used Visual Studio Express before. So far i have only compiled .cu file using nvmex in Matlab.
Would an exe file be created after the .cu code is compiled?
Once you have it installed find the projects folder and then pick the template project, make a backup of that project before you start, then modify its code.
Note the template is set up for making a project that works like all the other SDK projects, it contains bits that arn’t needed in a simple project (or did last time I used it) so don’t be worried
If you Build a “Release” version it should make an exe. NB exe on mine was in bin folder in folder above the template folder
Alternatively rather than using the reduction.cu code you refered to you may find another example in the SDK you like. My favourite is the n-body.