提交 34b596ef authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Enable march detection with clang.

上级 a7175d00
...@@ -1572,13 +1572,14 @@ class GCC_compiler(object): ...@@ -1572,13 +1572,14 @@ class GCC_compiler(object):
GCC_compiler.march_flags = [] GCC_compiler.march_flags = []
break break
if not "g++" in theano.config.cxx: if ('g++' not in theano.config.cxx and
'clang++' not in theano.config.cxx):
_logger.warn( _logger.warn(
"OPTIMIZATION WARNING: your Theano flag `cxx` seems not to be" "OPTIMIZATION WARNING: your Theano flag `cxx` seems not to be"
" the g++ compiler. So we disable the compiler optimization" " the g++ compiler. So we disable the compiler optimization"
" specific to g++ that tell to compile for a specific CPU." " specific to g++ that tell to compile for a specific CPU."
" At worst, this could cause slow down.\n" " At worst, this could cause slow down.\n"
" You can add yourself those parameters to the compiler" " You can add those parameters to the compiler yourself"
" via the Theano flag `gcc.cxxflags`." " via the Theano flag `gcc.cxxflags`."
) )
detect_march = False detect_march = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论