提交 111b156e authored 作者: Frederic Bastien's avatar Frederic Bastien

Give a better user error when he pass some Theano flags that won't work.

上级 a5b4bb3a
......@@ -1897,7 +1897,10 @@ class GCC_compiler(Compiler):
@staticmethod
def compile_args(march_flags=True):
cxxflags = [flag for flag in config.gcc.cxxflags.split(' ') if flag]
if "-fopenmp" in cxxflags:
raise ValueError(
"Do not use -fopenmp in Theano flag gcc.cxxflags."
" To enable OpenMP, use the Theano flag openmp=True")
# Add the equivalent of -march=native flag. We can't use
# -march=native as when the compiledir is shared by multiple
# computers (for example, if the home directory is on NFS), this
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论