Skip to content

Revive Metal runtime HAL backend with one written against the C HAL API #4370

Closed

Description

@benvanik

As part of the HAL C++ -> C rewrite (#4369) the Metal backend (iree/hal/metal/) was temporarily dropped. A commit (referenced here) has the configuration bits that can be reverted to revive it. The new implementation should be written in Objective C (as no need for C++) and against the C API.

Activity

  1. added
    enhancement ➕
    hal/metal
    on Jan 4, 2021
  2. antiagainst commented on Jan 5, 2021

    @antiagainst
    Member

    Hi @freedomtan, cc you here because you've enabled Bazel build configurations for Metal. Thanks a lot for that! Just curious, will this be something that you are potentially interested to lend a hand? If so that would be truly awesome (as there are so many things to work on in IREE and our team just have limited bandwidth). If not then certainly no worry and feel free to ignore! :)

  3. benvanik commented on Jan 5, 2021

    @benvanik
    CollaboratorAuthor

    It should be relatively straightforward to revive it for someone in the Apple dev ecosystem - the base implementation is solid and it's just something that requires some time and attention from someone to port and then finish the missing bits. I didn't want to unilaterally force that on you @antiagainst as I figured you'd be having more fun/impact doing GPU perf work this quarter (which thanks to the spriv-cross approach means that when Metal is revived it'll get a lot of the same benefits!). I may also get around to reviving it after landing the initial work and not feeling the pressure to also land the other big bits I need to :)

  4. antiagainst commented on Jan 5, 2021

    @antiagainst
    Member

    Certainly! :D I will circle back to this eventually if @freedomtan is not interested. But just wanted to ask first just in case, given that this could be a very interesting (and well isolated) task to shape IREE towards @freedomtan's potential use cases.

  5. freedomtan commented on Jan 6, 2021

    @freedomtan
    Contributor

    @antiagainst and @benvanik Yes, I am interested in working on it. Please tell me exactly what / where to start.

  6. antiagainst commented on Jan 6, 2021

    @antiagainst
    Member

    That is fantastic! Thanks @freedomtan! You can read #4369 for background information regarding why we'd like to perform such change. Ben is in the process of putting up initial path towards it as linked in #4369. Please feel free to read it to understand more. After landing that we can look at the situation and have more detailed tasks to collaborate on. :)

  7. 51 remaining items

  8. moved this from In Progress to Backlog in (Deprecated) IREEon Apr 20, 2023
  9. moved this from Backlog to In Progress in (Deprecated) IREEon May 8, 2023
  10. moved this from In Progress to Done in (Deprecated) IREEon Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement ➕hal/metal

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions