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

Compute maximum alignment at runtime #118

Open
Dawoodoz opened this issue Dec 31, 2024 · 1 comment
Open

Compute maximum alignment at runtime #118

Dawoodoz opened this issue Dec 31, 2024 · 1 comment
Assignees
Labels
Future proofing Aiming to work around year 2200 A.C. Performance
Milestone

Comments

@Dawoodoz
Copy link
Owner

Dawoodoz commented Dec 31, 2024

To make a port to ARM SVE easier in #117, the new memory allocation system should let the maximum memory alignment be a runtime variable accessed using an extern declaration in a header (not to be used before initialized!) instead of a compile time constant.

Because the new memory system has not made it into the stable branch yet, it would be best to make this change before beta version 0.3.0. SVE will probably not be the last instruction set to use variable width registers directly in hardware instructions.

Then we might as well use this to ask Intel processors for the cache line width using intrinsic functions.

@Dawoodoz Dawoodoz added Performance Future proofing Aiming to work around year 2200 A.C. labels Dec 31, 2024
@Dawoodoz Dawoodoz added this to the Version 0.3.0 milestone Dec 31, 2024
@Dawoodoz
Copy link
Owner Author

Dawoodoz commented Feb 1, 2025

#136 implements the feature for Linux and MacOS, so only MS-Windows remaining.

@Dawoodoz Dawoodoz self-assigned this Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Future proofing Aiming to work around year 2200 A.C. Performance
Projects
None yet
Development

No branches or pull requests

1 participant