google-coral / libedgetpu

Source code for the userspace level runtime driver for Coral.ai devices.
Apache License 2.0
181 stars 62 forks source link

Apex driver failure on Ubuntu 20.04 on Raspberry Pi Compute Module 4. #17

Closed RyanHir closed 3 years ago

RyanHir commented 3 years ago

Hello,

I am trying to use the "Mini PCIe Accelerator" on the Raspberry Pi Compute Module 4 running Ubuntu Mate 20.04 64-bit. I am able to install the drivers and necessary runtimes required. On the device, I have libedgetpu1-std=15.0, python3-pycoral=1.0.1, and gasket-dkms=1.0-14, these are able to run the "USB Accelerator". But when I go to use the PCIe Accelerator, I am unable to get past ValueError: Failed to load delegate from libedgetpu.so.1 when running...

from pycoral.utils import edgetpu

# Works on usb accelerator
tpu = edgetpu.make_interpreter("ssd_mobilenet_v2_coco_quant_postprocess_edgetpu.tflite")

And for debugging purposes, I ran dmesg and found...

apex 0000:01:00.1: Couldn't reinit interupts: -524
apex 0000:01:00.1: Permission checking failed.

This is concerning as the Getting Started page for the M.2/Mini PCIe accelerators say that Ubuntu 16.04 or later is supported on ARMv8. I have the apex driver setup with the proper udev rules and added my user to the group.

RyanHir commented 3 years ago

Closing in order to follow issue at https://github.com/google-coral/edgetpu/issues/280