eiln/ane

How to add ane into current asahi linux

XY-cpp opened this issue · 6 comments

XY-cpp commented

I have successfully installed the latest asahi linux on my Mac, and I want to enable ANE on my Mac.
I tried to compile it but failed. The error message is as follow:

/home/xy/Downloads/ane/ane/./src/ane_drv.c:377:17: error :‘accel_open’ undeclared here (not in a function); did you mean ‘seq_open’?
  377 |         .open = accel_open,
      |                 ^~~~~~~~~~
      |                 seq_open

Could you please tell me how to add ane into current asahi linux?

eiln commented

It's not upstream yet, but it will be very soon and, by then, it will be installed automatically. In the meantime, you are probably missing CONFIG_DRM_ACCEL (not sure if fedora enables those) and/or the kernel development headers.

Hi, just curious if you had insight into when this will be merged into upstream? Thank you.

eiln commented

Around/before the summer I think. No hard dates though

Hi, I'm curious what's the difference between the effort of porting MPS driver and this ANE driver? I understand CoreML is built upon MPS, so is your ANE port leveraging the MPS driver here (https://rosenzweig.io/blog/first-conformant-m1-gpu-driver.html)?

And my second question is that is this possible to make a dockerized asahi linux image leveraging your ANE support and make it possible to run coreML inside a docker container on top of macOS? I feel that Docker for macOS is built upon Hypervisor framework, so all the kernel level driver that asahi implemented won't take any effect, am I correct on this?

Thank for your great work!

Hi, I'm curious what's the difference between the effort of porting MPS driver and this ANE driver? I understand CoreML is built upon MPS, so is your ANE port leveraging the MPS driver here (https://rosenzweig.io/blog/first-conformant-m1-gpu-driver.html)?

And my second question is that is this possible to make a dockerized asahi linux image leveraging your ANE support and make it possible to run coreML inside a docker container on top of macOS? I feel that Docker for macOS is built upon Hypervisor framework, so all the kernel level driver that asahi implemented won't take any effect, am I correct on this?

Thank for your great work!

After decades of researching, I think there is no way to run neural network on desktop level OpenGL. I tried run tflite model on OpenGL but failed.

About your second question, I think you are correct. A virtual machine can't use ANE.