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

Use ABI major version only in c_code_cache_version().

上级 30426fe2
...@@ -476,8 +476,10 @@ class GpuArrayType(Type): ...@@ -476,8 +476,10 @@ class GpuArrayType(Type):
return ['gpuarray'] return ['gpuarray']
def c_code_cache_version(self): def c_code_cache_version(self):
# import pdb; pdb.set_trace()
ver = pygpu.gpuarray.abi_version() ver = pygpu.gpuarray.abi_version()
return (2,) + ver # we only use the major version since the minor revision are compatible.
return (2, ver[0])
class _operators(_tensor_py_operators): class _operators(_tensor_py_operators):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论