Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, DLA, Software Stack, and Reference Designs
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
422 Discussions

Kernel stop right at the "printf" command.

SBioo
Beginner
500 Views

I have design which behaves weird in one specific situation, and stops progressing, which I don't know the reason.

 

In this design I have added "printfs" to the non-autorun kernels to track the behavior of each single kernel. Interesting I have a kernel as below:

 

Screenshot from 2019-06-25 13-48-37.png

 

As I run this kernel and dump the output to a file, I can see that the logs are ending like this:

 

Screenshot from 2019-06-25 13-51-00.png

 

As you can see, the log ends with "plate=2047". In the code we know that we have another "printf" after this one, right away. Logically that "printf" should definitely do the printing and then maybe the blocking happens?

 

Any idea what is going on? and how this problem can be addressed?

 

Thanks

0 Kudos
1 Reply
HRZ
Valued Contributor II
162 Views

Have you checked the beginning of the log to see how it starts? The compiler might have reordered your printfs. Printf output is dumped after kernel execution, which means your kernel must have executed all the code and exited if you are getting printf output.

Reply