Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Executing Multiple kernels on Altera FPGA

Hi ,

I am trying to port multiple kernels onto FPGA.

The online material on Altera OpenCL compilation suggests to have all the kernels in a single cl file.

Can anyone please tell me the steps to compile such a file.

I have a gpu based opencl code that has a intelligence of picking the kernel binary file if its already present.

The binary for Altera FPGA can be generated by offline compiling the kernel.

In case of GPU, the binaries are seperate for each kernels. By having all the kernels in a single file all that we generate is a single aocx binary file.

My question now is how should i link the appropriate kernel functions with the clCreateProgramObject routine of OpenCL implementation ????

I hope you have understood the question

Thanks

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I agree, I'm just stating how the product works today. I have sent this recommendation to the engineering team for a potential future enhancement.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It badly requires Partial Reconfiguration; Otherwise, the overhead is so high that the application scope is limited.

    --- Quote Start ---

    The SDRAM controllers are reconfigured while the device is reconfigured so the contents in the memory devices may (probably will) become corrupt. That's why the buffers are pulled up to the host and back down after the configuration cycle.

    --- Quote End ---