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

[Refactor] Create an Intermediate representation of compute shaders on the GPU #1274

Merged
merged 16 commits into from
Feb 8, 2024

Conversation

nathanielsimard
Copy link
Member

@nathanielsimard nathanielsimard commented Feb 7, 2024

Decouple de data structures used for generating gpu shaders from the ones compiling the shaders to wgsl. I added 2 dialects: gpu and wgsl, more will come.

There are some places where the compiler is hardcoded, but it's going to be updated and removed in following PRs as we migrate all operations to the gpu dialect and support compiling to wgsl.

Todos

  • Update the documentation

Copy link
Member

@louisfd louisfd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scanned it kinda fast but it's pretty awesome how ops are generic over the compiler

@nathanielsimard nathanielsimard merged commit fb6cc2d into main Feb 8, 2024
13 checks passed
@nathanielsimard nathanielsimard deleted the refactor/wgpu/ir branch February 8, 2024 17:34
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

Successfully merging this pull request may close these issues.

2 participants