From a2f3644e87c11c222f86aa2aeb0e31d858ebb024 Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Sat, 21 Apr 2018 20:56:46 +0000
Subject: [PATCH] Merge pull request #675 from IlyaOvodov/Flip_Fix

---
 Makefile |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index b6119ae..61861b5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,16 @@
 CUDNN=0
 CUDNN_HALF=0
 OPENCV=0
-DEBUG=0
+AVX=0
 OPENMP=0
 LIBSO=0
 
+# set GPU=1 and CUDNN=1 to speedup on GPU
+# set CUDNN_HALF=1 to further speedup 3 x times (Mixed-precision using Tensor Cores) on GPU Tesla V100, Titan V, DGX-2
+# set AVX=1 and OPENMP=1 to speedup on CPU (if error occurs then set AVX=0)
+
+DEBUG=0
+
 ARCH= -gencode arch=compute_30,code=sm_30 \
       -gencode arch=compute_35,code=sm_35 \
       -gencode arch=compute_50,code=[sm_50,compute_50] \
@@ -50,8 +56,10 @@
 ifeq ($(DEBUG), 1) 
 OPTS= -O0 -g
 else
+ifeq ($(AVX), 1) 
 CFLAGS+= -ffp-contract=fast -mavx
 endif
+endif
 
 CFLAGS+=$(OPTS)
 

--
Gitblit v1.10.0