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

Support unaligned tensor memory allocation for PETSc compatibility #75

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Thomas-Ulrich
Copy link

Would it make sense to merge this code?
I just merged the content of the branch new_alignement_mode, used by tandem, with yateto.
No idea what it is useful for ;-)

@uphoffc
Copy link
Contributor

uphoffc commented Oct 16, 2024

The changes allow to enforce that Tensors use unaligned memory instead of relying on the default logic of yateto (that assumes that all power-of-vector-size tensors are aligned). IIRC it is used in tandem as alignment is a compile-time setting in PETSc, cf https://github.com/TEAR-ERC/tandem/blob/main/app/kernels/generate.py#L30

@Thomas-Ulrich Thomas-Ulrich changed the title Thomas/carsten new alignement mode Support unaligned tensor memory allocation for PETSc compatibility Oct 16, 2024
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

Successfully merging this pull request may close these issues.

2 participants