eiln/ane

/dev/accel/accelXXX not found

williamwu971 opened this issue · 1 comments

When trying to use the Neural engine of an Apple M2 Ultra, the provided examples fail because /dev/accel/accelXXX devices do not exist. I believe I have the correct kernel version, with support for the accelerators:

cat /boot/config-6.8.0-1008-apple-arm  | grep CONFIG_DRM_ACCEL
CONFIG_DRM_ACCEL=y
CONFIG_DRM_ACCEL_QAIC=m

This is the output

ane/test/matmul$ ./main.out
LIBANE: ERR: failed to find device with dev_id 0
LIBANE: ERR: failed to open device with dev_id 0
failed to init

Is there anything that needs to be done in order to create the /dev/accel/accelXXX files?
I noticed that in ane/Makefile, the existence of /dev/accel/accel0 is assumed.
sudo chmod 666 /dev/accel/accel0

The kernel module is also successfully loaded

ane/ane$ sudo ./run.sh status
Module                  Size  Used by
ane                    49152  0
module is installed