Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't OpenCL support recursion?

I am currently working on a OpenCL project and I am wonder why it does not support recursion. Is it related to parallelism?

like image 647
zoodoo Avatar asked Dec 20 '22 23:12

zoodoo


1 Answers

It is related to the target hardware, I think. To support recursion requires several hardware features that certain classes of OpenCL devices (ie. GPUs) don't have. Without them, maintaining a call stack and doing indirect code branching isn't practical. NVIDIA don't support recursion on all their CUDA capable hardware for the same reason.

like image 142
talonmies Avatar answered Apr 10 '23 12:04

talonmies