提交 8f43baf5 authored 作者: Frederic Bastien's avatar Frederic Bastien

Revert "Don't force recompile with the new flag"

This reverts commit e62e923b. We force the recompilation in this PR already. So keep the code base simpler.
上级 2e6ecbba
...@@ -1208,9 +1208,7 @@ AddConfigVar('cmodule.age_thresh_use', ...@@ -1208,9 +1208,7 @@ AddConfigVar('cmodule.age_thresh_use',
AddConfigVar('cmodule.debug', AddConfigVar('cmodule.debug',
"If True, define a DEBUG macro (if not exists) for any compiled C code.", "If True, define a DEBUG macro (if not exists) for any compiled C code.",
BoolParam(False), BoolParam(False),
# Do not add it in the c key when we keep use the old default. in_c_key=True)
# To do not recompile for no good reason.
in_c_key=lambda: theano.config.cmodule.debug)
def default_blas_ldflags(): def default_blas_ldflags():
......
...@@ -193,16 +193,7 @@ def get_config_hash(): ...@@ -193,16 +193,7 @@ def get_config_hash():
We only take into account config options for which `in_c_key` is True. We only take into account config options for which `in_c_key` is True.
""" """
all_opts = [] all_opts = sorted([c for c in _config_var_list if c.in_c_key],
for c in _config_var_list:
if callable(c.in_c_key):
i = c.in_c_key()
else:
i = c.in_c_key
if i:
all_opts.append(c)
all_opts = sorted(all_opts,
key=lambda cv: cv.fullname) key=lambda cv: cv.fullname)
return theano.gof.utils.hash_from_code('\n'.join( return theano.gof.utils.hash_from_code('\n'.join(
['%s = %s' % (cv.fullname, cv.__get__(True, None)) for cv in all_opts])) ['%s = %s' % (cv.fullname, cv.__get__(True, None)) for cv in all_opts]))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论