How should a very simple Makefile look like for Cuda compiling under linux
问题 I want to compile a very basic hello world level Cuda program under Linux. I have three files: the kernel: helloWorld.cu main method: helloWorld.cpp common header: helloWorld.h Could you write me a simple Makefile to compile this with nvcc and g++? Thanks, Gabor 回答1: Just in case, here's my variant. I use it to compile CUDA projects on Mac, but I think it will suit Linux too. It requires CUDA SDK. BINDIR = ./ # places compiled binary in current directory EXECUTABLE := helloWorld CCFILES :=