提交 c707a744 authored 作者: notoraptor's avatar notoraptor

Update pygpu version checking.

上级 83623f46
...@@ -45,9 +45,9 @@ def init_dev(dev, name=None): ...@@ -45,9 +45,9 @@ def init_dev(dev, name=None):
global pygpu_activated global pygpu_activated
if not config.cxx: if not config.cxx:
raise RuntimeError("The new gpu-backend need a c++ compiler.") raise RuntimeError("The new gpu-backend need a c++ compiler.")
if (pygpu.version.major, pygpu.version.minor) < (0, 6): if (pygpu.version.major, pygpu.version.minor, pygpu.version.patch) < (0, 6, 1):
raise ValueError( raise ValueError(
"Your installed version of pygpu is too old, please upgrade to 0.6 or later") "Your installed version of pygpu is too old, please upgrade to 0.6.1 or later")
# This is for the C headers API, we need to match the exact version. # This is for the C headers API, we need to match the exact version.
if pygpu.gpuarray.api_version()[0] != 1: if pygpu.gpuarray.api_version()[0] != 1:
raise ValueError( raise ValueError(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论