TARGET      = hello
SRC         = $(TARGET).cu

NVCC        = nvcc

# Use the next line in the Gold Lab (Ampere architecture)
CUDA_FLAGS  = -gencode arch=compute_86,code=sm_86 
# Use the next line in the Systems Lab (Pascal architecture)
#CUDA_FLAGS = -gencode arch=compute_61,code=sm_61 

CFLAGS      = -Werror all-warnings -std=c++11
LFLAGS      = -o $(TARGET) -lgomp

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

clean: 
	rm -rf *o $(TARGET)

