提交 a9177e2b authored 作者: Frederic Bastien's avatar Frederic Bastien

Always use the march flags. It was use only when we detect it, so the first time

As a side effect don't always loop over user provided cxx flags always when it contain march.
上级 0b8f1da0
......@@ -1559,6 +1559,7 @@ class GCC_compiler(object):
" It is better to let Theano/g++ find it"
" automatically, but we don't do it now")
detect_march = False
GCC_compiler.march_flags = []
break
if detect_march:
......@@ -1695,8 +1696,8 @@ class GCC_compiler(object):
_logger.info("g++ -march=native equivalent flags: %s",
GCC_compiler.march_flags)
#Add the detected -march=native equivalent flags
cxxflags.extend(GCC_compiler.march_flags)
#Add the detected -march=native equivalent flags
cxxflags.extend(GCC_compiler.march_flags)
#NumPy 1.7 Deprecate the old API. I updated most of the places
#to use the new API, but not everywhere. When finished, enable
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论