From 14303717dcddae43cdc55beb0685dae86f566fd8 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Sat, 25 Oct 2014 18:57:26 +0000 Subject: [PATCH] Fast, needs to be faster --- Makefile | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c4abedd..29dccbb 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,12 @@ CC=gcc -GPU=0 -COMMON=-Wall -Wfatal-errors `pkg-config --cflags opencv` -I/usr/local/cuda/include/ +GPU=1 +COMMON=-Wall -Wfatal-errors `pkg-config --cflags opencv` -I/usr/local/cuda/include/ -I/usr/local/clblas/include/ ifeq ($(GPU), 1) COMMON+=-DGPU else endif UNAME = $(shell uname) OPTS=-Ofast -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) @@ -16,7 +15,7 @@ else OPTS+= -march=native ifeq ($(GPU), 1) -LDFLAGS= -lOpenCL +LDFLAGS= -lOpenCL -lclBLAS endif endif CFLAGS= $(COMMON) $(OPTS) -- Gitblit v1.10.0