Files
macports-ports/math/caffe/files/patch-openblas.diff
Gerard SoleandZero King 3624e5135a caffe: update to 1de4ceb (20170817)
Port for caffe was old (2015), so this commit upgrades its source to
current master stable. It updates required patches so library will
install successfuly.
Dynamic libraries are amended, so they will point to the correct
libcaffe. Current Port, has an issue with python and caffe, that
requires manual recolocation of affected library.
Also, tests are added for both library and python module.
2017-08-28 02:21:55 +00:00

22 lines
692 B
Diff

--- Makefile.config.orig 2017-08-24 10:43:43.000000000 +0900
+++ Makefile.config 2017-08-24 10:43:54.000000000 +0900
@@ -47,7 +47,7 @@
# atlas for ATLAS (default)
# mkl for MKL
# open for OpenBlas
-BLAS := atlas
+BLAS := open
# Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
# Leave commented to accept the defaults for your choice of BLAS
# (which should work)!
--- include/caffe/util/mkl_alternate.hpp.orig 2014-12-18 01:12:23.000000000 +0900
+++ include/caffe/util/mkl_alternate.hpp 2017-08-24 10:43:54.000000000 +0900
@@ -11,7 +11,7 @@
#include <Accelerate/Accelerate.h>
#else
extern "C" {
-#include <cblas.h>
+#include <cblas_openblas.h>
}
#endif // USE_ACCELERATE