提交 0d21995f authored 作者: Frédéric Bastien's avatar Frédéric Bastien 提交者: GitHub

Merge pull request #4802 from abergeron/bump_cudnn

Bump the max version of cudnn since we work with 5.1.
...@@ -89,11 +89,11 @@ def init_dev(dev, name=None): ...@@ -89,11 +89,11 @@ def init_dev(dev, name=None):
if dev.startswith('cuda'): if dev.startswith('cuda'):
try: try:
cudnn_version = dnn.version() cudnn_version = dnn.version()
# 5100 should not print warning with cudnn 5 final. # 5200 should not print warning with cudnn 5.1 final.
if cudnn_version > 5100: if cudnn_version >= 5200:
warnings.warn("Your cuDNN version is more recent than Theano." warnings.warn("Your cuDNN version is more recent than Theano."
" If you see problems, try updating Theano or" " If you see problems, try updating Theano or"
" downgrading cuDNN to version 5.") " downgrading cuDNN to version 5.1.")
if config.print_active_device: if config.print_active_device:
print("Using cuDNN version %d on context %s" % print("Using cuDNN version %d on context %s" %
(cudnn_version, name), file=sys.stderr) (cudnn_version, name), file=sys.stderr)
......
...@@ -583,12 +583,12 @@ def use(device, ...@@ -583,12 +583,12 @@ def use(device,
if dnn_available(): if dnn_available():
(hdr_v, runtime_v) = dnn_version() (hdr_v, runtime_v) = dnn_version()
cudnn_version = runtime_v cudnn_version = runtime_v
# 5100 should not print warning with cudnn 5 final. # 5200 should not print warning with cudnn 5 final.
if cudnn_version > 5100: if cudnn_version >= 5200:
warn = ("Your cuDNN version is more recent than the one" warn = ("Your cuDNN version is more recent than the one"
" Theano officially supports." " Theano officially supports."
" If you see any problems, try updating Theano or" " If you see any problems, try updating Theano or"
" downgrading cuDNN to version 5.") " downgrading cuDNN to version 5.1.")
except Exception: except Exception:
cudnn_version = dnn_available.msg cudnn_version = dnn_available.msg
print("Using gpu device %d: %s (CNMeM is %s, cuDNN %s)" % ( print("Using gpu device %d: %s (CNMeM is %s, cuDNN %s)" % (
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论