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

Hbmpim dialect #10

Open
h4midf opened this issue Aug 12, 2024 · 0 comments
Open

Hbmpim dialect #10

h4midf opened this issue Aug 12, 2024 · 0 comments

Comments

@h4midf
Copy link
Collaborator

h4midf commented Aug 12, 2024

Structure of the system:
Although the simulator is configurable, we will stick to Samsung's hbmpim paper parameters. With that said, in a single call to the device, a maximum of 16 banks, 64 channels, 1 rank, and 8 GRF can be configured.

cnm.workgroup { cnm.physical_dims = ["banks", "channels", "ranks", "grf"] } : !cnm.workgroup<16x64x1x8>

At the moment, the simulator implements different APIs for writing the data to the device for different operations. For example, preloadNoReplacement and preloadGemv function calls are used for elementWiseOperations and GEMV kernels. Because of this, the cnm.scatter is not directly lowered in the conversion pass; instead, depending on the operation in the launch block, the respective function is created.
Also, for all of this to work, we should limit the launch block to only a single operation.

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

No branches or pull requests

1 participant