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 OS provider config API #925

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vinser52
Copy link
Contributor

@vinser52 vinser52 commented Nov 22, 2024

Description

Change the L0 provider config as we agreed in #844

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly
  • New tests added, especially if they will fail without my changes
  • Added/extended example(s) to cover this functionality
  • Extended the README/documentation

@vinser52 vinser52 requested a review from a team as a code owner November 22, 2024 00:12
@vinser52 vinser52 changed the title Svinogra os params Update OS provider config API Nov 22, 2024
@vinser52 vinser52 added the v0.10.x Should be merged before making stable branch v0.10.x label Nov 22, 2024
@vinser52 vinser52 force-pushed the svinogra_os_params branch 2 times, most recently from 37132e1 to 283b26f Compare November 22, 2024 01:03

umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps();
umf_os_memory_provider_params_t params = umfOsMemoryProviderParamsDefault();

Get a default memory provider parameters. The handle to the parameters object
Copy link
Contributor

Choose a reason for hiding this comment

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

Get default OS memory...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

&os_memory_provider);
umfOsMemoryProviderParamsDestroy(os_params);
Copy link
Contributor

Choose a reason for hiding this comment

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

we could also check return value of this func

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, but what we should do with that? It does not impact the benchamrk. As you can see below we also do not check the return of the umfMemoryProviderDestroy

@vinser52 vinser52 force-pushed the svinogra_os_params branch 3 times, most recently from 55da957 to 2ab852c Compare November 25, 2024 13:36
@vinser52 vinser52 requested a review from ldorau November 25, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v0.10.x Should be merged before making stable branch v0.10.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants