cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
411 Views
Registered: ‎10-18-2018

Using xfOpenCV from multiple threads

Jump to solution

Greetings,

I'm using the ZCU104 evaluation kit and my hardware accelerated functions are only using around 20% of the FPGA resources. I would like to instantiate four copies of it and run them from four different threads; however I can't find any multithreaded examples in the xfopencv-2018.2 examples folder. Does reVISION support multiple-instantiation of hardware functions and invoking from multiple threads? If so are there examples.

Many thanks,

- Malcolm

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
358 Views
Registered: ‎08-20-2018

Re: Using xfOpenCV from multiple threads

Jump to solution

Hi @malcolmnixon

You can absolutely use multiple threads in xfopencv based applications.

Please refer below example for multi-thread implementation,

https://github.com/Xilinx/SDSoC_Examples/tree/master/cpp/getting_started/multi_threading

Below example is multiple hw instances,

https://github.com/Xilinx/SDSoC_Examples/tree/master/cpp/getting_started/multiple_hw_instance

 

Best Regards,

Nutan

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution

View solution in original post

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
359 Views
Registered: ‎08-20-2018

Re: Using xfOpenCV from multiple threads

Jump to solution

Hi @malcolmnixon

You can absolutely use multiple threads in xfopencv based applications.

Please refer below example for multi-thread implementation,

https://github.com/Xilinx/SDSoC_Examples/tree/master/cpp/getting_started/multi_threading

Below example is multiple hw instances,

https://github.com/Xilinx/SDSoC_Examples/tree/master/cpp/getting_started/multiple_hw_instance

 

Best Regards,

Nutan

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution

View solution in original post

0 Kudos