Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/dev/accel/accelXXX not found #6

Open
williamwu971 opened this issue Jun 27, 2024 · 1 comment
Open

/dev/accel/accelXXX not found #6

williamwu971 opened this issue Jun 27, 2024 · 1 comment

Comments

@williamwu971
Copy link

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
@fathonix
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants