
INC	:= -I$(CUDA_HOME)/include -I.
LIB	:= -L$(CUDA_HOME)/lib64 -lcudart

NVCCFLAGS	:= -lineinfo -arch=sm_70 --ptxas-options=-v --use_fast_math

all:	scan_shared_atomic scan_shuffle_atomic

scan_shared_atomic:	     scan_shared_atomic.cu Makefile_solns
	nvcc scan_shared_atomic.cu -o scan_shared_atomic $(INC) $(NVCCFLAGS) $(LIB)

scan_shuffle_atomic:	     scan_shuffle_atomic.cu Makefile_solns
	nvcc scan_shuffle_atomic.cu -o scan_shuffle_atomic $(INC) $(NVCCFLAGS) $(LIB)

clean:
	rm scan_shared_atomic scan_shuffle_atomic
