OpenCL - is it possible to invoke another function from within a kernel?

前端 未结 2 1971
情歌与酒
情歌与酒 2021-02-02 00:40

I am following along with a tutorial located here: http://opencl.codeplex.com/wikipage?title=OpenCL%20Tutorials%20-%201

The kernel they have listed is this, which comput

2条回答
  •  时光说笑
    2021-02-02 01:04

    You can have auxiliary functions for use in the kernel, see OpenCL user defined inline functions . You can not pass function pointers into the kernel.

提交回复
热议问题