Forum Discussion
Altera_Forum
Honored Contributor
8 years agoVariable declaration place question
the FPGA resource allocation will be different if the variable declaration in different place? //declare the variable i, j, k not in the loop int i; int j; int k; for (...) {...
Altera_Forum
Honored Contributor
8 years agoIt certainly does, please read "Intel FPGA SDK for OpenCL Best Practices Guide, Section 1.6.3, Declare Variables in the Deepest Scope Possible".