提交 67b769d6 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix the kernel name and explain where it came from in the doc.

上级 ec0711f0
...@@ -169,10 +169,13 @@ be:: ...@@ -169,10 +169,13 @@ be::
args[2] = &dims[1]; args[2] = &dims[1];
ls = 1; ls = 1;
gs = 256; gs = 256;
err = GpuKernel_call(&k_obj, 1, &ls, &gs, 0, args); err = GpuKernel_call(&k_k, 1, &ls, &gs, 0, args);
// ... // ...
The name of the kernel object depends on the name you passed to
Kernel() when you declared it (or the name in you `#kernel`
statement). It defaults to `'k_' + name`.
For other operations in the C code you should refer to the For other operations in the C code you should refer to the
`libgpuarray documentation `libgpuarray documentation
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论