Forum Discussion
Altera_Forum
Honored Contributor
8 years agoUsing of Restrict keyword
Hi All, We have implemented 4 kernels in one .cl file. We are trying to optimize the kernels. So gone through AOCL best practices guide, it suggests the usage of restrict keyword in pointer argume...
Altera_Forum
Honored Contributor
8 years agoPlease find the below resource utilisation numbers with and without restrict
With Restrict Family : Arria 10 Device : 10AX115H3F34E2SG Timing Models : Final Logic utilization (in ALMs) : 258,918 / 427,200 ( 61 % ) Total registers : 456008 Total pins : 155 / 618 ( 25 % ) Total virtual pins : 0 Total block memory bits : 19,882,664 / 55,562,240 ( 36 % ) Total RAM Blocks : 2,312 / 2,713 ( 85 % ) Total DSP Blocks : 192 / 1,518 ( 13 % ) Total HSSI RX channels : 4 / 24 ( 17 % ) Total HSSI TX channels : 4 / 24 ( 17 % ) Total PLLs : 30 / 80 ( 38 % ) Without Restrict Family : Arria 10 Device : 10AX115H3F34E2SG Timing Models : Final Logic utilization (in ALMs) : 249,039 / 427,200 ( 58 % ) Total registers : 453705 Total pins : 155 / 618 ( 25 % ) Total virtual pins : 0 Total block memory bits : 12,301,448 / 55,562,240 ( 22 % ) Total RAM Blocks : 1,755 / 2,713 ( 65 % ) Total DSP Blocks : 192 / 1,518 ( 13 % ) Total HSSI RX channels : 4 / 24 ( 17 % ) Total HSSI TX channels : 4 / 24 ( 17 % ) Total PLLs : 30 / 80 ( 38 % )