weltenwort / frigate-synology-dsm7

Dockerfile and docker-compose file to enable google coral USB accelerators in containers on Synology DSM 7
MIT License
119 stars 18 forks source link

Hw acceleration with m2 version of coral possible? #92

Closed jmtatsch closed 1 year ago

jmtatsch commented 1 year ago

Not really an issue but rather a question: Do you think hardware acceleration would work with the m2 version of the coral https://www.coral.ai/products/m2-accelerator-ae and my DS920+ which has 2 m2 slots?

weltenwort commented 1 year ago

Hey @jmtatsch :wave: I don't have any first-hand experience with that, but I also don't want your question to go without a response. The only limitation of the M.2 slots that I have heard about is that any storage devices attached that way can't be included into the storage pool. But I don't have any positive confirmation of other types of M.2 devices being used either, sorry.

Have you considered asking this question in the discussions section of the main frigate repo? You might reach more people that way.

jmtatsch commented 1 year ago

Will do. I have dug a bit deeper. There are some people who have asked about it but never tried it out. Apparently one would need the pci-e driver in gasket-dkms and a bit different libedgetpu1-std for the m2 version.

Do you know if the pci-e driver has to be compiled/installed on the Synology directly or whether it's enough to install it in the docker?

weltenwort commented 1 year ago

Interesting question. If the container is given extensive privileges it should be possible to load kernel modules. The bigger problem might be that you'd probably need the specific kernel headers used by Synology. No idea if they can be found somewhere in the filesystem. :thinking: I'm only speculating once more, sorry.

jmtatsch commented 1 year ago

Good point. I think the risks and amount of work necessary outweigh the benefit. I ordered a yucky old usb stick then.