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

Update bml_allocate.c #376

Merged
merged 1 commit into from
Feb 7, 2022
Merged

Update bml_allocate.c #376

merged 1 commit into from
Feb 7, 2022

Conversation

tokshgithub
Copy link
Collaborator

@tokshgithub tokshgithub commented Apr 30, 2020

modified HAVE_POSIX_MEMALIGN macro for first touch


This change is Reviewable

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.

Could you fix the indentation?

@@ -54,6 +54,7 @@ bml_allocate_memory(
#elif defined(HAVE_POSIX_MEMALIGN)
char *ptr;
posix_memalign((void **) &ptr, MALLOC_ALIGNMENT, size);
#pragma omp parallel for simd
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the change is fine, however, this raises the compiler requirement to OpenMP >= 4.0, which means gcc >= 4.9. Right now we are still testing with gcc-4.7. In terms of Ubuntu this excludes only Trusty (14.04) which is probably not a big issue.

@github-actions
Copy link

github-actions bot commented Dec 4, 2021

This PR is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the Stale label Dec 4, 2021
@nicolasbock nicolasbock force-pushed the tokshgithub-alignmentpatch-1 branch from 51d6d2b to 67b216a Compare February 7, 2022 16:12
@nicolasbock nicolasbock force-pushed the tokshgithub-alignmentpatch-1 branch from 67b216a to aa8e2db Compare February 7, 2022 16:40
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.

👍🏾

Modified HAVE_POSIX_MEMALIGN macro for first touch.

Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
@nicolasbock nicolasbock force-pushed the tokshgithub-alignmentpatch-1 branch from aa8e2db to eb83935 Compare February 7, 2022 17:12
@nicolasbock nicolasbock merged commit 7d333a9 into master Feb 7, 2022
@nicolasbock nicolasbock deleted the tokshgithub-alignmentpatch-1 branch February 7, 2022 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants