Forum Discussion
Altera_Forum
Honored Contributor
9 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 O...
Altera_Forum
Honored Contributor
9 years agoI am struggling to understand how to covert a NDRange for OpenCL from CUDA.
Say this is my kernel launch for CUDA: initMatrix << < _h_cols, _h_rows >> > (var1, va2, var3, var4); Cols and Rows are just integer numbers and the matrix has been made flat so no 2D. How can I convert this to a OpenCL NDRange? Thanks..