提交 30426fe2 authored 作者: notoraptor's avatar notoraptor

Update c_code_cache_definition() method of

GpuArrayType so that it now depends on GpuArray ABI version instead of API version.
上级 5b7edbde
...@@ -476,10 +476,8 @@ class GpuArrayType(Type): ...@@ -476,10 +476,8 @@ class GpuArrayType(Type):
return ['gpuarray'] return ['gpuarray']
def c_code_cache_version(self): def c_code_cache_version(self):
ver = pygpu.gpuarray.api_version() ver = pygpu.gpuarray.abi_version()
# we only use the major version since the minor revision are return (2,) + ver
# API-compatible.
return (2, ver[0])
class _operators(_tensor_py_operators): class _operators(_tensor_py_operators):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论