Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
307 Views

programs get blocked when multiple enquee ,

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
Community Manager
32 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.