提交 34e8ed7c authored 作者: nouiz's avatar nouiz

Merge pull request #15 from gwtaylor/epd-mac

Epd mac
...@@ -333,6 +333,11 @@ def default_blas_ldflags(): ...@@ -333,6 +333,11 @@ def default_blas_ldflags():
# The env variable is needed to link with mkl # The env variable is needed to link with mkl
new_path = os.path.join(sys.prefix, "lib") new_path = os.path.join(sys.prefix, "lib")
v = os.getenv("DYLD_FALLBACK_LIBRARY_PATH", None) v = os.getenv("DYLD_FALLBACK_LIBRARY_PATH", None)
if v is not None:
# Explicit version could be replaced by a symbolic
# link called 'Current' created by EPD installer
# This will resolve symbolic links
v = os.path.realpath(v)
# The python __import__ don't seam to take into account # The python __import__ don't seam to take into account
# the new env variable "DYLD_FALLBACK_LIBRARY_PATH" # the new env variable "DYLD_FALLBACK_LIBRARY_PATH"
...@@ -341,11 +346,12 @@ def default_blas_ldflags(): ...@@ -341,11 +346,12 @@ def default_blas_ldflags():
if v is None or new_path not in v.split(":"): if v is None or new_path not in v.split(":"):
_logger.warning( _logger.warning(
"The environment variable " "The environment variable "
"'DYLD_FALLBACK_LIBRARY_PATH' do not contain " "'DYLD_FALLBACK_LIBRARY_PATH' does not contain "
"the '%s' path in its value. This will make " "the '%s' path in its value. This will make "
"Theano use a slow version of BLAS. Update " "Theano use a slow version of BLAS. Update "
"'DYLD_FALLBACK_LIBRARY_PATH' to contain the " "'DYLD_FALLBACK_LIBRARY_PATH' to contain the "
"said value, this will disable this warning.") "said value, this will disable this warning."
% new_path)
use_unix_epd = False use_unix_epd = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论