Added extern C wrapper to cblas.h include
authorJames Thewlis <james.thewlis@mirriad.com>
Mon, 3 Mar 2014 17:43:20 +0000 (17:43 +0000)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 21 Mar 2014 20:52:36 +0000 (13:52 -0700)
This ensures that it works with ATLAS's header file, which doesn't include such
a guard itself (whereas the reference version from Ubuntu's libblas-dev does)

include/caffe/util/mkl_alternate.hpp

index 1c207c6..39038dd 100644 (file)
@@ -9,7 +9,9 @@
 
 #else  // If use MKL, simply include the MKL header
 
+extern "C" {
 #include <cblas.h>
+}
 #include <math.h>
 
 // Functions that caffe uses but are not present if MKL is not linked.