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

Implement sidre-to-conduit copies #1510

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from

Conversation

gunney1
Copy link
Contributor

@gunney1 gunney1 commented Mar 3, 2025

Summary

  • This PR is a feature
  • It does the following:
    • Implement Group::deepCopyToConduit and View::deepCopyToConduit
    • Support copying from one allocator id to another. The allocator ids are set before the copy, and the copy assures destination memory uses the right id.
    • Add tests for the new methods.

The goal of this change is toward supporting transparent switching between sidre and conduit. This is the state of conduit-sidre hierarchy copies, with this PR.

Screenshot_2025-03-03_11-34-22

@gunney1 gunney1 added the Sidre Issues related to Axom's 'sidre' component label Mar 3, 2025
@gunney1 gunney1 self-assigned this Mar 3, 2025
gunney1 added 20 commits March 6, 2025 09:17
The actual fix is on another branch, but I can't wait for it to
be merged.
It's failing.  Maybe because non-Umpire allocators are not
working right or Group isn't using it right.
Also disable test copying in/out of Umpire.
This check needs to wait for proper support for
that kind of copy, which is being performed on
another branch.
change transfer_allocator method name to transferTo.
Also use call-back to return View-specific allocator.
@gunney1 gunney1 force-pushed the feature/gunney/copy-sidre-to-conduit branch from 6764c24 to 41c15d7 Compare March 28, 2025 18:08
@gunney1 gunney1 force-pushed the feature/gunney/copy-sidre-to-conduit branch from 582bbad to 46bb8a7 Compare April 1, 2025 01:06
}
@endcode
*/
struct ConduitMemory
Copy link
Member

Choose a reason for hiding this comment

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

It looks like is does the same job as ConduitAllocateThroughAxom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sidre Issues related to Axom's 'sidre' component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants