caffe: new recipe (#1360)

This commit is contained in:
miqlas
2017-05-22 08:23:56 +02:00
committed by Jérôme Duval
parent 0b8d931ec8
commit 975c11a6ff
2 changed files with 174 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
From f8f149fd4999b6c77901f2ff8a9cef36ef35148c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 21 May 2017 11:13:02 +0200
Subject: caffe: BLAS fix for Haiku
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index 4a5bac4..81d5e83 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -105,6 +105,7 @@ if(USE_OPENCV)
endif()
# ---[ BLAS
+if(NOT HAIKU)
if(NOT APPLE)
set(BLAS "Atlas" CACHE STRING "Selected BLAS library")
set_property(CACHE BLAS PROPERTY STRINGS "Atlas;Open;MKL")
@@ -134,6 +135,11 @@ elseif(APPLE)
endif()
endif()
endif()
+elseif(HAIKU)
+ find_package(OpenBLAS REQUIRED)
+ list(APPEND Caffe_INCLUDE_DIRS PUBLIC ${OpenBLAS_INCLUDE_DIR})
+ list(APPEND Caffe_LINKER_LIBS PUBLIC ${OpenBLAS_LIB})
+endif()
# ---[ Python
if(BUILD_python)
--
2.12.2