提交 d29d12d1 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Remove cuda.nvccflags.

上级 92a13296
......@@ -50,16 +50,6 @@ AddConfigVar('cuda.root',
StrParam(default_cuda_root),
in_c_key=False)
AddConfigVar('cuda.nvccflags',
"DEPRECATED, use nvcc.flags instead",
StrParam("", allow_override=False),
in_c_key=False)
if config.cuda.nvccflags != '':
warnings.warn('Configuration variable cuda.nvccflags is deprecated. '
'Please use nvcc.flags instead. You provided value: %s'
% config.cuda.nvccflags)
def filter_nvcc_flags(s):
assert isinstance(s, str)
......@@ -71,9 +61,10 @@ def filter_nvcc_flags(s):
" but '--machine=64' is supported. Please add the '=' symbol."
" nvcc.flags value is '%s'" % s)
return ' '.join(flags)
AddConfigVar('nvcc.flags',
"Extra compiler flags for nvcc",
ConfigParam(config.cuda.nvccflags, filter_nvcc_flags),
ConfigParam("", filter_nvcc_flags),
# Not needed in c key as it is already added.
# We remove it as we don't make the md5 of config to change
# if theano.sandbox.cuda is loaded or not.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论