Forum Discussion

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

Is there any way to enforce the printf() output order?

Hi all,

I find in Altera Opencl the printf() can be used directly in kernel codes but the output order is not guaranteed when multiple work-items are executed simultaneously.

So is there any way to enforce the output order? Or is there any way to get a global timer/cycle inside the kernel codes to indicate the activity cycle by cycle?

Thanks.
No RepliesBe the first to reply