Forum Discussion

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

FPGA(Opencl) code work well in emulator mode, but can't finish run on the FPGA

Hello:

When I run my FPGA(OpenCL) code in emulator mode, the result is right; but after I create hardware configuration file and run on the FPGA, the code is blocked and can't finish.My code used channel.What is the problem?How to debug the code in this situation?Thank you very much!

23 Replies

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

    --- Quote Start ---

    Easiest solution is to put all of your code in one kernel, remove all the channels, and use local memory buffers instead.

    --- Quote End ---

    Now I have remove all the channels and use local memory buffers instead, the same as you say. But after I finish debug this version, I also want to try use channels, to see if use channels can increace performance. Is it necessary to do that I think?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Now I have remove all the channels and use local memory buffers instead, the same as you say. But after I finish debug this version, I also want to try use channels, to see if use channels can increace performance. Is it necessary to do that I think?

    --- Quote End ---

    You can try but based on my experience, channels not only don't increase performance, they also increase area usage considerably.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Now I have remove all the channels and use local memory buffers instead, the same as you say. But after I finish debug this version, I also want to try use channels, to see if use channels can increace performance. Is it necessary to do that I think?

    --- Quote End ---

    Hello,

    I was wondering, whether you were successful in running the kernel in channel configuration,

    I would like to follow your work, please keep us posted.

    Thanks