Here is a sample to run GPU and DLAs at the same time.
- Prepare TensorRT engine of GPU and DLA with trtexec. For example
For GPU
trtexec --onnx=/usr/src/tensorrt/data/mnist/mnist.onnx --saveEngine=gpu.engine
For DLA
trtexec --onnx=/usr/src/tensorrt/data/mnist/mnist.onnx --useDLACore=0 --allowgPUFallback --saveEngine=dla.engine
- Compile the repo
make
- Test
Please put the gu.engine and da.engine generated in step l to the cloned repo.
The command runs like this
./test <thread0> <thread1> <thread2> ... <threadK> # -1: GPU, 0: DLAO, 1: DLA1
Ex: Run GPU+DLA0+DLA1
./test -1 0 1