Skip to content

Instantly share code, notes, and snippets.

@dgolden1
Created October 16, 2014 19:51
Show Gist options
  • Save dgolden1/19596fe46d4b92db2012 to your computer and use it in GitHub Desktop.
Save dgolden1/19596fe46d4b92db2012 to your computer and use it in GitHub Desktop.
caffe Makefile XCode 6 patch vecLib -> Accelerate (against 5c4125da)
From d98e6fb63e689166a9919c59eed0ec37aaf782d6 Mon Sep 17 00:00:00 2001
From: Daniel Golden <[email protected]>
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