mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
So there WAS this huge bug. Gone now
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,18 +1,19 @@
|
||||
CC=gcc
|
||||
GPU=1
|
||||
GPU=0
|
||||
COMMON=-Wall -Werror -Wfatal-errors `pkg-config --cflags opencv` -I/usr/local/cuda/include/
|
||||
ifeq ($(GPU), 1)
|
||||
COMMON+=-DGPU
|
||||
else
|
||||
endif
|
||||
UNAME = $(shell uname)
|
||||
OPTS=-O3 -flto
|
||||
OPTS=-Ofast -flto
|
||||
ifeq ($(UNAME), Darwin)
|
||||
COMMON+= -isystem /usr/local/Cellar/opencv/2.4.6.1/include/opencv -isystem /usr/local/Cellar/opencv/2.4.6.1/include
|
||||
ifeq ($(GPU), 1)
|
||||
LDFLAGS= -framework OpenCL
|
||||
endif
|
||||
else
|
||||
OPTS+= -march=native
|
||||
ifeq ($(GPU), 1)
|
||||
LDFLAGS= -lOpenCL
|
||||
endif
|
||||
|
Reference in New Issue
Block a user