8000 make disjoint pool a C structure by bratpiorka · Pull Request #898 · oneapi-src/unified-memory-framework · GitHub
[go: up one dir, main page]

Skip to content
8000

make disjoint pool a C structure #898

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

Merged
merged 12 commits into from
Feb 18, 2025

Conversation

bratpiorka
Copy link
Contributor
@bratpiorka bratpiorka commented Nov 14, 2024

make Disjoint Pool a C structure. With this PR:

  • Disjoint Pool code is written in C - NOTE: there are no changes in any algorithm - any optimizations should be done in separate PRs
  • it is no longer a lib - it is always added to UMF lib sources
  • UMF_BUILD_LIBUMF_POOL_DISJOINT option is removed
  • few white-box test cases where we look at internal structures are added - more could be added in separate PRs

@bratpiorka bratpiorka requested a review from a team as a code owner November 14, 2024 13:30
@lukaszstolarczuk lukaszstolarczuk marked this pull request as draft November 14, 2024 13:39
@bratpiorka bratpiorka force-pushed the rrudnick_disjoint_c branch 3 times, most recently from 97807f1 to 3521be5 Compare November 18, 2024 10:14
@bratpiorka bratpiorka force-pushed the rrudnick_disjoint_c branch 8 times, most recently from 17d00a2 to 9b22721 Compare November 27, 2024 09:57
@bratpiorka bratpiorka force-pushed the rrudnick_disjoint_c branch 14 times, most recently from cdad0f1 to 4a8935a Compare December 6, 2024 15:03
@oneapi-src oneapi-src deleted a comment from github-actions bot Feb 12, 2025
@oneapi-src oneapi-src deleted a comment from github-actions bot Feb 12, 2025
@bratpiorka bratpiorka requested review from ldorau and igchor February 13, 2025 08:37
@ldorau
Copy link
Contributor
ldorau commented Feb 17, 2025

@bratpiorka Please rebase and resolve merge conflicts

@bratpiorka bratpiorka force-pushed the rrudnick_disjoint_c branch 2 times, most recently from 59f6772 to 368ab19 Compare February 18, 2025 10:29
@bratpiorka
Copy link
Contributor Author

@bratpiorka Please rebase and resolve merge conflicts

done

bratpiorka and others added 12 commits February 18, 2025 11:08
Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
Instead having two modes - we can have only chunked slabs and full
slabs are just a chunked slab with one chunk. This removes extra
complexity in the code. Should not have performance impact, as we
added few extra steps for big allocations, but removed extra branch in
the code.

Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
There is no reason to do so. This is only extra performance overhead.

Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
this improves redability, and reduces "spaghetti" in the code

Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
this function has nothing releated to capacity.

input parameter to disjointpool should also be renamed, but this is
topic for the diffrent pull request

Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
@ldorau
Copy link
Contributor
ldorau commented Feb 18, 2025

Hanging on the Windows CUDA build :-) ...

@lplewa lplewa merged commit ac367e5 into oneapi-src:main Feb 18, 2025
77 of 78 checks passed
@lukaszstolarczuk lukaszstolarczuk mentioned this pull request Feb 19, 2025
10 tasks
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.

6 participants
0