提交 484a4576 authored 作者: Frederic Bastien's avatar Frederic Bastien

More detailed error message and a hint to a cause (NVIDIA don't give a good error message for that)

上级 649b9361
......@@ -119,7 +119,8 @@ def _make_handle(ctx):
with ctx:
err = cudnn.cudnnCreate(ctypes.byref(handle))
if err != 0:
raise RuntimeError("error creating cudnn handle")
raise RuntimeError("Error creating cudnn handle. "
"This can be a sign of a too old driver.", err)
return handle
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论