提交 ab8c46d7 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron 提交者: Frederic Bastien

Require the new version of pygpu.

上级 7a6d676f
...@@ -46,11 +46,12 @@ def init_dev(dev, name=None, preallocate=None): ...@@ -46,11 +46,12 @@ def init_dev(dev, name=None, preallocate=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, pygpu.version.patch) < (0, 6, 1): if (pygpu.version.major != 0 or pygpu.version.minor != 7 or
pygpu.version.patch < 0):
raise ValueError( raise ValueError(
"Your installed version of pygpu is too old, please upgrade to 0.6.1 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] != 2:
raise ValueError( raise ValueError(
"Your installed libgpuarray is not in sync, please make sure to have the appropriate version") "Your installed libgpuarray is not in sync, please make sure to have the appropriate version")
if dev not in init_dev.devmap: if dev not in init_dev.devmap:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论