Skip to content

[mps/inductor] Adjust lowering to not emit comments #144630

@dcci

Description

@dcci

🐛 Describe the bug

Edit
The problem weren't VLAs, rather, the fact that // is a comment in metal and an operation in python.

** Original report **
There are currently a fair amount of inductor tests that are failing because the lowering emits VLAs, which aren't supported by the Metal shading language (according to https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf -- only fixed sized arrays are supported).

We will need to massage the codegen a little bit to not emit VLAs, or find some alternative solution. Filing this issue so that I don't forget.

cc: @malfet

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen @chauhang @penguinwu

Metadata

Metadata

Assignees

Labels

module: mpsRelated to Apple Metal Performance Shaders frameworkoncall: pt2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions