CUDA_INSTALL_PATH := /usr/local/cuda SDK_INSTALL_PATH := /s/parsons/c/fac/bohm/NVIDIA_GPU_Computing_SDK/C LIB := -L$(SDK_INSTALL_PATH)/lib -lcutil INCLUDES := -I$(SDK_INSTALL_PATH)/common/inc EXEC := avG2B2contig avG2B2stride ifeq ($(emu),1) emuflag += -deviceemu endif all:$(EXEC) # add vectors in a 2D grid of 2D threadblocks, each thread adds elements contiguously avG2B2contig: avG2B2contig.cu nvcc $(emuflag) $< -o $@ $(LIB) $(INCLUDES) # add vectors in a 2D grid of 2D threadblocks, each thread adds elements with stride blockWidth avG2B2stride: avG2B2stride.cu nvcc $(emuflag) $< -o $@ $(LIB) $(INCLUDES) clean: rm -f $(EXEC