################################################################################
#
# Build script for project
#
################################################################################

# Executable
EXECUTABLE	:= laplace3d_naive

# CUDA source files (compiled with nvcc)
CUFILES		:= laplace3d_naive.cu

# CUDA dependency files
CU_DEPS		:= \
	laplace3d_naive_kernel.cu \

# C/C++ source files (compiled with gcc / c++)
CCFILES		:= \
	laplace3d_gold.cpp \


################################################################################
# Rules and targets


ROOTDIR = /opt/cuda/2.3/sdk/C/common
BINDIR  = ./bin
include $(ROOTDIR)/common.mk


# flag to enable double precision
# NVCCFLAGS += -arch sm_13

# flag to save intermediate files to look at PTX code
# NVCCFLAGS += -keep

# flag to clean up afterwards
# NVCCFLAGS += -keep -clean

# flag to report on use of registers, shared memory, etc
NVCCFLAGS += -Xptxas -v

