CUDA入门教程
1. 准备makefile为了避免每次都要键入nvcc的命令,要准备一个makefile。makefile如下:CUFLAG = -g -Xcompiler -v -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_20,code=compute_20 -O2IFLAGS = -I$(CUDA_DIR)/include -I$(CUDA_SDK_DIR)/C/common/...