Altera_Forum
Honored Contributor
7 years agoVector_Add example with 4 Compute Units
Hi,
I am trying to understand the use of "num_compute_units(N)" attribute by using "Vector_Add" example . I have not a physical board so I am using the emulator. I attach an image of the OpenCL code with the above attribute. I have several doubts regards its functioning because of the kernel execution time without the attribute is better than the code with "num_compute_units(4)" attribute (as in the attached image). I expect that the code with four CUs reduces the execution time. Do I have to do some changes in the OpenCL code? Thanks for your help Marco Montini