summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Shelhamer <shelhamer@imaginarynumber.net>2016-08-18 10:42:33 -0700
committerGitHub <noreply@github.com>2016-08-18 10:42:33 -0700
commit4572501a850ce3f102a9b081106c3f0d3ede1e23 (patch)
tree987c17b8e167658fa5c304930e604bcb931297ce /include
parent904e024861997b62a836cfa967ab366cbfb8a940 (diff)
parent5395cc66d68df74ff5d0920ed80eabcdd439c660 (diff)
downloadcaffeonacl-4572501a850ce3f102a9b081106c3f0d3ede1e23.tar.gz
caffeonacl-4572501a850ce3f102a9b081106c3f0d3ede1e23.tar.bz2
caffeonacl-4572501a850ce3f102a9b081106c3f0d3ede1e23.zip
Merge pull request #3272 from ixartz/master
[cmake] OSX 10.10 (and more) use Accelerate Framework instead of veclib
Diffstat (limited to 'include')
-rw-r--r--include/caffe/util/mkl_alternate.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/caffe/util/mkl_alternate.hpp b/include/caffe/util/mkl_alternate.hpp
index 3355b665..95df0f93 100644
--- a/include/caffe/util/mkl_alternate.hpp
+++ b/include/caffe/util/mkl_alternate.hpp
@@ -7,9 +7,14 @@
#else // If use MKL, simply include the MKL header
+#ifdef USE_ACCELERATE
+#include <Accelerate/Accelerate.h>
+#else
extern "C" {
#include <cblas.h>
}
+#endif // USE_ACCELERATE
+
#include <math.h>
// Functions that caffe uses but are not present if MKL is not linked.