# -I includes files in the specified directory # -L includes libraries in the specified directory # -lcutil links cutil library # # # # INCLUDES = -I /state/partition1/apps/cuda/sdk/C/common/inc/ -L /state/partition1/apps/cuda/lib64 LIBCUTIL = -lcutil # Name Executable EXECUTABLE := SparseMV # Cuda or C source files (compiled with nvcc) SOURCE := SparseMV.cu # Need -I and -L flags to use cutil.h all: nvcc --profile -lrt $(INCLUDES) $(LIBCUTIl) $(SOURCE) -o $(EXECUTABLE) clean: rm -f *~ $(EXECUTABLE)