CUDA and windows makefiles How to use CUDA with nmake

Hello,

I have a question about compiling a program using CUDA.

I am in the process of learning CUDA and am having some difficulties getting it to compile. I have the Microsoft C++ compiler installed (no Visual studio though) and am using emacs to write the code.

Now, my question is what is the format of the makefile that I should use. Does anyone have a template makefile that I could use on windows XP and nvcc. I am a bit confused about this and if someone could shed some light on this, I would be very grateful. All the examples that I have use the visual studio solution and project files but I do not have VS installed. I would anyway prefer the makefile way.

Any help would be greatly appreciated.

Thanks,
xarg

I work on Linux and in the folder called NVIDIA_CUDA_SDK/common exist common.mk file. it is a good makefile.

Yes, unfortunately on windows there is no makefile but just Visual Studio project files, which kinda sucks.

  • xarg