Open ykhorzon opened 3 years ago
For more detail about my environment.
I already confirmed that my TPUs can work in host and container. I had 4 PCIe coral TPUs on my x86 ubuntu System. The TPUs can work properly in host system. and also work perfectly in single container.
docker run --rm -it --privileged pose-estimation:dev bash
root@aed003d7e701:~# ls -al /dev/ | grep apex
crw-rw---- 1 root 1001 120, 0 Aug 29 03:39 apex_0
crw-rw---- 1 root 1001 120, 1 Aug 29 03:39 apex_1
crw-rw---- 1 root 1001 120, 2 Aug 29 03:39 apex_2
crw-rw---- 1 root 1001 120, 3 Aug 29 03:39 apex_3
# then run pose-estimation source code successfully...
Description
Is there any way to assign(mount) apex_0 to container_0 then apex_1 to container_1? I tried docker run --device and --cap-add flag but nothing work.
It will give run time error. It seems to something wrong in driver or device mounting.
But I checked /dev/apex and it look fine.
If using --privileged, all the apex_* will mount in container.
docker run --rm -it --privileged pose-estimation:dev bash
When I run another container with same command, it will occur coral TPU device is busy.Click to expand!
### Issue Type Support, Others ### Operating System Ubuntu ### Coral Device Mini PCIe ### Other Devices _No response_ ### Programming Language Python 3.8 ### Relevant Log Output _No response_