You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Revive Metal runtime HAL backend with one written against the C HAL API #4370
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.
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! :)
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 :)
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.
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. :)
Activity
antiagainst commentedon Jan 5, 2021
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! :)
benvanik commentedon Jan 5, 2021
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 :)
antiagainst commentedon Jan 5, 2021
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.
Removing Metal backend until it can be replaced.
Removing Metal backend until it can be replaced.
Removing Metal backend until it can be replaced.
Removing Metal backend until it can be replaced.
Removing Metal backend until it can be replaced.
freedomtan commentedon Jan 6, 2021
@antiagainst and @benvanik Yes, I am interested in working on it. Please tell me exactly what / where to start.
antiagainst commentedon Jan 6, 2021
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. :)
Removing Metal backend until it can be replaced.
Removing Metal backend until it can be replaced.
Removing Metal backend until it can be replaced.
51 remaining items
Update to KhronosGroup/SPIRV-Cross@3550a54a (2023-02-25) (#12379)
[cmake] Make writing check tests easier for external drivers (#12380)
[metal] Populate proper capability and limits for SPIR-V CodeGen (#12391
Update to KhronosGroup/SPIRV-Cross@3550a54a (2023-02-25) (iree-org#12379
[cmake] Make writing check tests easier for external drivers (iree-or…
[metal] Populate proper capability and limits for SPIR-V CodeGen (ire…
[metal] Implement a Metal HAL driver (#12713)
Update to KhronosGroup/SPIRV-Cross@3550a54a (2023-02-25) (iree-org#12379
[cmake] Make writing check tests easier for external drivers (iree-or…
[metal] Populate proper capability and limits for SPIR-V CodeGen (ire…