CFLAGS= -O3 -g -Wall
CUFLAGS= -O3 -g -lineinfo

# Sulle macchine del laboratorio serve anche:
# CUFLAGS += -D_FORCE_INLINES

# Sulle macchine del laboratorio: sm_20
CUFLAGS += -arch=sm_30

all: vecinit vecinit_cuda vecinit_cuda_alt vecsmooth_cuda
all: matinit_cuda matinit_cuda2d
all: transpose transpose_sh transpose_tex transpose_tex_array
all: transpose_sh_extra_column transpose_sh_stagger
all: reduction reduction_shmem reduction_sezioni
all: reduction2 reduction2bis
all: slow_scan scan_shmem scan_recur

%: %.cu
	nvcc -o $@ $< $(CUFLAGS)
