Skip to content

Removed unnecessary atomics while multi pages alloc/dealloc - #308

Open
saeedelsayed wants to merge 1 commit into
alpaka-group:devfrom
saeedelsayed:optimization/reduce-pages-atomics
Open

Removed unnecessary atomics while multi pages alloc/dealloc#308
saeedelsayed wants to merge 1 commit into
alpaka-group:devfrom
saeedelsayed:optimization/reduce-pages-atomics

Conversation

@saeedelsayed

Copy link
Copy Markdown
Contributor

Removed the unnecessary atomics used to update the chunk size of the pages allocated/dealloced by a thread in multi-page mode except the first page. That is because they are not used while freeing those pages again because the thread uses the chunk size of the first page to know how many pages are allocated and therefore it does not check the other pages chunk size.

warning: These changes have not been tested yet.

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.

1 participant