提交 286b16ef authored 作者: --global's avatar --global

Add missing arguments to GpuKernel_init

上级 0d99258d
...@@ -160,10 +160,10 @@ class GpuKernelBase(object): ...@@ -160,10 +160,10 @@ class GpuKernelBase(object):
size_t sz = sizeof(%(bvar)s); size_t sz = sizeof(%(bvar)s);
PyGpuContextObject *c = pygpu_default_context(); PyGpuContextObject *c = pygpu_default_context();
if (GpuKernel_init(&%(ovar)s, c->ops, c->ctx, 1, &bcode, &sz, "%(kname)s", if (GpuKernel_init(&%(ovar)s, c->ops, c->ctx, 1, &bcode, &sz, "%(kname)s",
%(numargs)u, types, GA_USE_BINARY) != GA_NO_ERROR) { %(numargs)u, types, GA_USE_BINARY, NULL) != GA_NO_ERROR) {
if ((%(err)s = GpuKernel_init(&%(ovar)s, c->ops, c->ctx, 1, &%(cname)s, if ((%(err)s = GpuKernel_init(&%(ovar)s, c->ops, c->ctx, 1, &%(cname)s,
NULL, "%(kname)s", %(numargs)u, types, NULL, "%(kname)s", %(numargs)u, types,
%(flags)s)) != GA_NO_ERROR) { %(flags)s, NULL)) != GA_NO_ERROR) {
PyErr_Format(PyExc_RuntimeError, "GpuKernel_init error %%d: %%s", PyErr_Format(PyExc_RuntimeError, "GpuKernel_init error %%d: %%s",
%(err)s, Gpu_error(c->ops, c->ctx, %(err)s)); %(err)s, Gpu_error(c->ops, c->ctx, %(err)s));
return %(error_out)s; return %(error_out)s;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论