summaryrefslogtreecommitdiff
path: root/include/caffe/util/mkl_alternate.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/caffe/util/mkl_alternate.hpp')
-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.