chundoong-lab-ta/SamsungDS22/vector_io/Makefile

19 lines
349 B
Makefile

TARGET=main
OBJECTS=util.o main.o
CPPFLAGS=-std=c++11 -O3
CPPFLAGS+= -I/usr/local/cuda/include/
NVCC=/usr/local/cuda/bin/nvcc
LDFLAGS+=-L/usr/local/cuda/lib64
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(NVCC) $(CPPFLAGS) $^ -o $@ $(LDFLAGS)
main.o: main.cu
$(NVCC) -arch=sm_86 --resource-usage -c -O3 $^ -o $@
clean:
rm -rf $(TARGET) $(OBJECTS)