Forum Discussion
Altera_Forum
Honored Contributor
8 years agoOk after a long research now I have a good idea about how to port a CUDA code to Opencl. The only thing is now bothering me is this:
Assume I have kernels and they call __device__ functions in CUDA which do not exist in OpenCL but they are simple functions called by the kernel and these functions lunches other kernels with a particular global dimension and local dimension, how can I translate this easily into OpenCL? I know that with OpenCL 1.0 I cannot launch kernels from kernels so what's the best way to go about this? Thanks..