提交 21581731 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Revise makeTester to make it easier to test Gpu ops.

上级 890b9af0
......@@ -504,7 +504,7 @@ class GpuAlloc(HideC, Alloc):
}
if (GpuArray_setarray(&%(zz)s->ga, &%(vv)s->ga) != GA_NO_ERROR) {
PyErr_SetString(PyExc_RuntimeError, "setarray failed");
PyErr_SetString(PyExc_ValueError, "setarray failed");
%(fail)s
}
""" % dict(name=name, ndim=ndim, zz=zz, vv=vv, fail=sub['fail'])
......@@ -515,6 +515,6 @@ class GpuAlloc(HideC, Alloc):
return code
def c_code_cache_version(self):
return (0,)
return (1,)
gpu_alloc = GpuAlloc()
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论