Skip to content

[REVIEW] Align memory resource allocation sizes to 8-byte#165

Merged
jrhemstad merged 4 commits intorapidsai:branch-0.11from
OlivierNV:fea-rmm-blkalign
Oct 22, 2019
Merged

[REVIEW] Align memory resource allocation sizes to 8-byte#165
jrhemstad merged 4 commits intorapidsai:branch-0.11from
OlivierNV:fea-rmm-blkalign

Conversation

@OlivierNV
Copy link
Copy Markdown
Contributor

@OlivierNV OlivierNV commented Oct 22, 2019

Align size of memory allocations to 8 bytes.

Copy link
Copy Markdown
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Just one namespace suggestion. Also need the changelog.

@harrism harrism added the 4 - Waiting on author Waiting for author to respond to review label Oct 22, 2019
/**
* Align up to a power of 2, align_bytes is expected to be a nonzero power of 2
*/
inline std::size_t align_up(std::size_t v, std::size_t align_bytes) noexcept
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated. Couldn't find the eyeroll emoji in in github.

@jrhemstad jrhemstad merged commit bada123 into rapidsai:branch-0.11 Oct 22, 2019
@harrism harrism removed the 4 - Waiting on author Waiting for author to respond to review label Sep 8, 2021
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