Altera_Forum
Honored Contributor
8 years agoHelp with porting a CUDA code to OpenCL
Hi everyone.
I am porting a CUDA kernel to OpenCL kernel to execute it on a FPGA (Stratix V). The code looks very similar so it shouldn't be a problem except that this FPGA board supports only OpenCL 1.0. So I have some questions regarding the code I have to port. 1) With CUDA you can call different functions asynchronously and allocate and store the data on the GPU regardless of the kernel you are executing (as far as I understood). Is this possible with OpenCL? 2) This algorithm is partially sequential and parallel. How can I achieve the same behavior without loosing performances with OpenCL? Can I use more kernels? And if yes how does that work? 3) Any suggestion about how should I approach this? Thank you very much for those who will be able to help me.