From 9ff0b7efcb9281bd68ffc9b670e4f882a03dc559 Mon Sep 17 00:00:00 2001
From: AlexeyAB <kikots@mail.ru>
Date: Thu, 03 Aug 2017 19:18:00 +0000
Subject: [PATCH] Linux supported
---
Makefile | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 3d3d5e4..a2a90f7 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
CUDNN=0
OPENCV=0
DEBUG=0
+OPENMP=0
ARCH= -gencode arch=compute_20,code=[sm_20,sm_21] \
-gencode arch=compute_30,code=sm_30 \
@@ -36,6 +37,11 @@
COMMON+= `pkg-config --cflags opencv`
endif
+ifeq ($(OPENMP), 1)
+CFLAGS+= -fopenmp
+LDFLAGS+= -lgomp
+endif
+
ifeq ($(GPU), 1)
COMMON+= -DGPU -I/usr/local/cuda/include/
CFLAGS+= -DGPU
--
Gitblit v1.10.0