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

Require BML_USE_POSIX_MEMALIGN to use posix_memalign() #754

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

mewall
Copy link
Collaborator

@mewall mewall commented Jun 28, 2024

Using the HAVE_POSIX_MEMALIGN code path results in ~1.7x slowdown of an MD code which frequently allocates arrays.

Require a new macro BML_USE_POSIX_MEMALIGN to be defined, to use the code path. Define the macro by default.

@nicolasbock
Copy link
Collaborator

Hi @mewall

Do you see this kind of slow-down on all machines you run the code on or just on a particular architecture / OS combination? If this is a general issue we might simply want to remove this code path all together.

@mewall
Copy link
Collaborator Author

mewall commented Jun 29, 2024 via email

@nicolasbock
Copy link
Collaborator

It would be good to enable the old behavior by default and optionally allow to disable it. This would make sure that the old behavior does not unexpectedly change.

@mewall
Copy link
Collaborator Author

mewall commented Jul 1, 2024 via email

Using the HAVE_POSIX_MEMALIGN code path results in ~1.7x slowdown of an MD code which frequently allocates arrays.

Require a new macro BML_USE_POSIX_MEMALIGN to be defined, to use the code path. Define by default
@mewall
Copy link
Collaborator Author

mewall commented Jul 1, 2024

@nicolasbock The behavior is now the same as before by default. Please merge if OK.

I'll do this and revise the PR.

________________________________ From: Nicolas Bock @.> Sent: Saturday, June 29, 2024 11:37 PM To: lanl/bml @.> Cc: Wall, Michael E @.>; Mention @.> Subject: [EXTERNAL] Re: [lanl/bml] Require BML_USE_POSIX_MEMALIGN to use posix_memalign() (PR #754) It would be good to enable the old behavior by default and optionally allow to disable it. This would make sure that the old behavior does not unexpectedly change. — Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/lanl/bml/pull/754*issuecomment-2198441341__;Iw!!Bt8fGhp8LhKGRg!HhDawgltKfRAbIQpR7xKeTkJ-q9vsTmWVMbkkVW6LVXskIQmO1gElnRz4F4ukV5SrNIrx6Wj-5OPyH9r6hRK2I9v$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA67VELFHQFKLC6NUXJKPH3ZJ6KP3AVCNFSM6AAAAABKCMAAAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGQ2DCMZUGE__;!!Bt8fGhp8LhKGRg!HhDawgltKfRAbIQpR7xKeTkJ-q9vsTmWVMbkkVW6LVXskIQmO1gElnRz4F4ukV5SrNIrx6Wj-5OPyH9r6kH7E-eA$. You are receiving this because you were mentioned.Message ID: @.***>

Copy link
Collaborator

@nicolasbock nicolasbock left a comment

Choose a reason for hiding this comment

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

Thanks!

@nicolasbock nicolasbock merged commit 0df37a8 into master Jul 2, 2024
31 checks passed
@nicolasbock nicolasbock deleted the posix_memalign branch July 2, 2024 06:42
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.

3 participants