Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- To reuse helper functions I recommend placing the those functions into a seperate file and include the file in the kernel files that require it. Only the functions used by a kernel will get pulled into the hardware so you don't have to worry about bloating up the hardware with extra helper functions that are not used. --- Quote End --- Thanks for the recommendation, thats good to know that only used functions get pulled in. So that is a reasonable solution (although I do have somewhat of a philosophical issue with puting function implementations in a header file, or including a .cl file but I guess it works so that will work fine) Thanks,