-
Notifications
You must be signed in to change notification settings - Fork 80
feat: remove memory access adapters: CPU Boundary AIR, initialize/finalize memory #2318
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
base: feat/access-adapter-removal
Are you sure you want to change the base?
Conversation
Commit: 60d1d19 |
d0e7bae to
9d0bea8
Compare
f937ae0 to
3706b09
Compare
df72623 to
e5cca45
Compare
This reverts commit 9c30237.
2051624 to
a5814d4
Compare
| /// Whether access adapters are enabled. When disabled, all memory accesses must be of the | ||
| /// standard block size (ie, 4 for address spaces 1-3). | ||
| #[new(value = "true")] | ||
| pub access_adapters_enabled: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm wondering if instead of storing a separate variable, we just have an access_adapters_enabled function that returns true if native address space is used and false otherwise. just so that there's a single source of truth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is currently a function to check if native address space is used, is_native_as_used. i kept it as a field, to force it to be true/false for testing purposes. there is an additional function, with_auto_access_adapters which automatically sets the field, depending on is_native_as_used
| use std::collections::BTreeMap; | ||
| let mut chunk_map: BTreeMap<(u32, u32), ([u32; BLOCKS_PER_CHUNK], [F; CHUNK])> = | ||
| BTreeMap::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we do this by just a par_iter on a vector or do we need a btreemap here? btreemaps are slow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved: 5bd398c
note, have to do it in two passes, because of race conditions if accessing the same chunk
Closes INT-5723, INT-5724, INT-5726