Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
caffe Makefile XCode 6 patch vecLib -> Accelerate (against 5c4125da)
From d98e6fb63e689166a9919c59eed0ec37aaf782d6 Mon Sep 17 00:00:00 2001
From: Daniel Golden <dgolden1@gmail.com>
Date: Thu, 16 Oct 2014 10:46:08 -0700
Subject: [PATCH] Use accelerate instead of vecLib on OS X
Fix for https://github.com/BVLC/caffe/issues/1212
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index e85f338..c938431 100644
--- a/Makefile
+++ b/Makefile
@@ -301,9 +301,9 @@ else
endif
else ifeq ($(OSX), 1)
# OS X packages atlas as the vecLib framework
- BLAS_INCLUDE ?= /System/Library/Frameworks/vecLib.framework/Versions/Current/Headers/
+ BLAS_INCLUDE ?= /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/
LIBRARIES += cblas
- LDFLAGS += -framework vecLib
+ LDFLAGS += -framework Accelerate
endif
endif
INCLUDE_DIRS += $(BLAS_INCLUDE)
--
1.8.4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment