This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problem about dm8168 dvrrdk dsp alg develop

Hi all:

I have some different algs in dm8168 dsp side, i found that

in mcfw alg_link framework the video datas are passed through one prev link and

the algs run in serial order, so the time delay is total time of every alg costs,

it is seems the framework not so suitable for multi algs,why not these algs are done in parally order,

then time delay will decrease?


another question is that so is the internal mem space which alloc when resources init,

can be shared between algs anymore?

best regards

xavier

  • You can create multiple alg links instances and you can run separate algorithms in each algLink.This will make each algorithm run in a separate thread

    Note that c674 is a single core.There is no parallelism possible by just running two algorithm in two threads. It will take same time to execute two algorithms irrespective of whether they are run serially in one thread or in two threads.

    Only place where multiple threads make sense is if your algorithm uses DMA and you do sem_pend waiting for DMA xfer completion in your algorithm.Then it would allow another thread to be scheduled and algorithm can execute provided it doesn't require are shared resource like internal memory.

    Internal memory can be shared if it is used as scratch memory.