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

Shared memory between cores with 2D array and 1D arrays not possible #51

Open
RobinGeens opened this issue Oct 17, 2024 · 0 comments
Open

Comments

@RobinGeens
Copy link
Contributor

RobinGeens commented Oct 17, 2024

To define a shared memory link between two cores, the top level memory should be exactly the same. This means that also the served dimensions should be the same, and in case the top level memory serves both dimensions of the 2D array, the top level memory of the 1D array must also have 2 served dimensions.

This can easily be mitigated by defining the 1D array as a 2D array [D1, D2] with sizes [128, 1], and unrolling an arbitrary dimension at D2 (e.g. D2: (B, 1)) to prevent multiple runs of the spatial mapping generator.

This approach is cumbersome and confusing for first time users.

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