Forum Discussion

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

Many flow control statements required

I have to map the OpenCL application with a lot of flow control statements, it works well on GPU. However, it incurs deadlock on FPGA.

What is the difference? What should I do? What should I read? Merry Christmas.

1 Reply

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

    Without seeing the code I'm not sure we'll be much help. Make sure you don't have any barriers or fences inside a conditional statement. The scheduling of work-items on an FPGA can vary with respect to a GPU so perhaps there is a hazard not being addressed in the kernel.