Altera_Forum
Honored Contributor
12 years agoAbout branch optimization
Hi,
I'm developing opencl both on Altera FPGA and on Intel GPU. According to the Intel GPU optimization guide. To improve the performance, a branch should be written asbool comparison;
comparison= /*calculation of the condition*/
if(comparison){
/*do something*/
} However, when I run the this optimized kernel on FPGA, the performance gets worse. I understand that the GPU optimization technique is not supposed to work on FPGA. But I would like to know how this change affects the FPGA performance? Any help will be appreciated!