Forum Discussion
Altera_Forum
Honored Contributor
12 years agoThanks for your reply. I mean the kernel switches between multiple .aocx files. It is much more difficult for FPGA to update context than CPU/GPU. So, I want to know the exact time the FPGA requires to swap out .aocx file. Have you ever tested it? How to test?
--- Quote Start --- If you mean kernel switches between multiple .aocx files then the configuration time and buffer movement times can be significant if you don't ammortize it over the compute time (so if the kernel run times are quick then the overhead will be significant). Due to this, choosing which kernels to combine into a single .aocx file can be important, depending on how you group them you can decrease the amount of overhead. When the OpenCL runtime has to swap out .aocx files all global buffers live in the FPGA have to be pulled back to the host before reconfiguration then restored after. --- Quote End ---