提交 a62c9a2a authored 作者: Frederic's avatar Frederic

Don't try to compile if no compiler

上级 585b80bb
......@@ -74,6 +74,11 @@ except ImportError:
if version != getattr(lazylinker_ext, '_version', None):
raise ImportError()
except ImportError:
# It is useless to try to compile if there isn't any
# compiler! But we still want to try to load it, in case
# the cache was copied from another computer.
if not theano.config.cxx:
raise
_logger.info("Compiling new CVM")
dirname = 'lazylinker_ext'
cfile = os.path.join(theano.__path__[0], 'gof', 'lazylinker_c.c')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论