TARGET      = vectorAdd
SRC         = $(TARGET).cu

# 2023 Calvin CS Lab Nvidia GPU-architecture flags 
# Choose one CUDA_FLAGS definition based on the lab you are using
#   Gold Lab (RTX 3060, Ampere arch.): uncomment the next line 
CUDA_FLAGS  = -gencode arch=compute_86,code=sm_86 
#   Systems Lab (GTX 960, Maxwell arch.): uncomment the next line 
#CUDA_FLAGS  = -gencode arch=compute_61,code=sm_61 

NVCC        = nvcc
CFLAGS      = -Werror all-warnings
LFLAGS      = -o $(TARGET) -lgomp

$(TARGET): $(SRC)
	$(NVCC) $(SRC) $(CFLAGS) $(CUDA_FLAGS) $(LFLAGS)

clean: 
	rm -f $(TARGET) *.o *~ *#

