You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/21 19:11:56 UTC
[GitHub] szha closed pull request #10481: [MXNET-302] added ability to set
search path for Accelerate library
szha closed pull request #10481: [MXNET-302] added ability to set search path for Accelerate library
URL: https://github.com/apache/incubator-mxnet/pull/10481
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/cmake/Modules/FindAccelerate.cmake b/cmake/Modules/FindAccelerate.cmake
index 695538ac924..8bdc665a3aa 100644
--- a/cmake/Modules/FindAccelerate.cmake
+++ b/cmake/Modules/FindAccelerate.cmake
@@ -22,11 +22,13 @@
# Accelerate_INCLUDE_DIRS
# Accelerate_LIBRARIES
+file(TO_CMAKE_PATH "$ENV{Accelerate_HOME}" Accelerate_HOME)
set(Accelerate_INCLUDE_SEARCH_PATHS
- /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/
+ /System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current
+ ${Accelerate_HOME}
)
-find_path(Accelerate_CBLAS_INCLUDE_DIR NAMES cblas.h PATHS ${Accelerate_INCLUDE_SEARCH_PATHS})
+find_path(Accelerate_CBLAS_INCLUDE_DIR NAMES cblas.h PATHS ${Accelerate_INCLUDE_SEARCH_PATHS} PATH_SUFFIXES Headers)
set(LOOKED_FOR
Accelerate_CBLAS_INCLUDE_DIR
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services