Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6404 Discussions

programs get blocked when multiple enquee ,

idata
Employee
596 Views

Hi, I have this

 

for (…) {

 

enquee()

 

enquee()

 

read()

 

read()

 

}

 

after a few thousands of iteration program get blocked on a read call,

 

but this way it work

 

for (…) {

 

enquee()

 

read()

 

enquee()

 

read()

 

}

 

the issue is that this last way is slower

 

any suggestion?
0 Kudos
1 Reply
idata
Employee
321 Views

@llero The issue may be related to performing a read() and the output queue being empty. I was just wondering what version of the NCSDK you are using? Please try using the latest NCSDK version (2.05) if you aren't already doing so. Some fifo issues were fixed with version 2.05 that were a problem with 2.04.

 

You can also try increasing the size of the fifos. The number of fifo elements can be set using Graph.allocate_with_fifos() or Fifo.allocate() and changing the number of elements for each fifo. This will allow you to be able to have larger fifo queues.

0 Kudos
Reply