From b585124e55fcd18a7511d3b2fdc6bc3db5368ef4 Mon Sep 17 00:00:00 2001 From: Alexey <AlexeyAB@users.noreply.github.com> Date: Sun, 21 May 2017 11:07:13 +0000 Subject: [PATCH] Update Readme.md --- Makefile | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 37b92c1..3d3d5e4 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,14 @@ OPENCV=0 DEBUG=0 -ARCH= --gpu-architecture=compute_52 --gpu-code=compute_52 +ARCH= -gencode arch=compute_20,code=[sm_20,sm_21] \ + -gencode arch=compute_30,code=sm_30 \ + -gencode arch=compute_35,code=sm_35 \ + -gencode arch=compute_50,code=[sm_50,compute_50] \ + -gencode arch=compute_52,code=[sm_52,compute_52] + +# This is what I use, uncomment if you know your arch and want to specify +# ARCH= -gencode arch=compute_52,code=compute_52 VPATH=./src/ EXEC=darknet @@ -50,7 +57,7 @@ OBJS = $(addprefix $(OBJDIR), $(OBJ)) DEPS = $(wildcard src/*.h) Makefile -all: obj results $(EXEC) +all: obj backup results $(EXEC) $(EXEC): $(OBJS) $(CC) $(COMMON) $(CFLAGS) $^ -o $@ $(LDFLAGS) @@ -63,6 +70,8 @@ obj: mkdir -p obj +backup: + mkdir -p backup results: mkdir -p results -- Gitblit v1.10.0