Skip to content

The last CTL patch :) - #1524

Merged
lukaszstolarczuk merged 11 commits into
oneapi-src:mainfrom
lplewa:ctl_split
Oct 13, 2025
Merged

The last CTL patch :)#1524
lukaszstolarczuk merged 11 commits into
oneapi-src:mainfrom
lplewa:ctl_split

Conversation

@lplewa

@lplewa lplewa commented Sep 17, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@lplewa lplewa changed the title Ctl split The last CTL patch :) Sep 17, 2025
@lplewa
lplewa force-pushed the ctl_split branch 11 times, most recently from 629b379 to 2706166 Compare September 18, 2025 14:44
@lplewa
lplewa marked this pull request as ready for review September 18, 2025 15:22
@lplewa
lplewa requested a review from a team as a code owner September 18, 2025 15:22

@lukaszstolarczuk lukaszstolarczuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

after all, this is super huge PR - I'd split this somehow, if easily done...

Comment thread .github/workflows/reusable_compatibility.yml
Comment thread examples/ctl/ctl_example.c
Comment thread examples/README.md Outdated
Comment thread examples/README.md Outdated
Comment thread examples/README.md
Comment thread include/umf/memory_provider_ops.h
Comment thread test/ctl/ctl_env_disjoint_pool.cfg
Comment thread docs/config/examples.rst Outdated
Comment thread docs/config/examples.rst
Comment thread docs/config/ctl.rst
@lplewa
lplewa force-pushed the ctl_split branch 2 times, most recently from 94517a8 to decb1fd Compare September 19, 2025 14:44
Comment thread README.md Outdated
Comment thread docs/config/ctl.rst
Comment thread docs/config/ctl.rst Outdated
Comment thread docs/config/ctl.rst Outdated
Comment thread docs/config/ctl.rst Outdated
Comment thread docs/config/ctl.rst Outdated
Comment thread docs/config/ctl.rst
Comment thread examples/ctl/CMakeLists.txt
Comment thread README.md Outdated
Comment thread docs/config/examples.rst
Comment thread docs/config/examples.rst
Comment thread examples/README.md Outdated
Comment thread examples/ctl/CMakeLists.txt
Comment thread examples/ctl/CMakeLists.txt Outdated
Comment thread examples/ctl/ctl.c Outdated
Comment thread src/ctl/ctl_defaults.c Outdated
Comment thread src/pool/pool_disjoint.c Outdated
Comment thread src/pool/pool_disjoint.c Outdated
@bratpiorka
bratpiorka requested a review from Copilot October 8, 2025 08:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR consolidates final CTL (Control Interface) changes for version 1.0, including error code adjustments and comprehensive implementation of CTL functionality for providers and pools. The CTL system provides a hierarchical interface for configuring and querying UMF components.

Key changes:

  • Introduced new error code UMF_RESULT_ERROR_INVALID_CTL_PATH for invalid CTL paths
  • Added comprehensive CTL parameter support for disjoint pools with default overrides
  • Enhanced provider and pool initialization with post-initialization hooks
  • Added extensive test coverage and examples for CTL functionality

Reviewed Changes

Copilot reviewed 49 out of 49 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
include/umf/base.h Added new error code UMF_RESULT_ERROR_INVALID_CTL_PATH
test/utils/cpp_helpers.hpp Updated default error return from UMF_RESULT_ERROR_UNKNOWN to UMF_RESULT_ERROR_INVALID_CTL_PATH
test/pools/disjoint_pool_ctl.cpp Added comprehensive CTL tests for disjoint pool parameters and defaults
test/pools/disjoint_pool.cpp Added post-initialization CTL calls to existing tests
src/pool/pool_disjoint.c Implemented extensive CTL parameter support with read/write handlers
src/memory_provider.c Added provider CTL defaults system and post-initialization support
src/memory_pool.c Enhanced pool creation with CTL defaults and post-initialization
examples/ctl/ Added comprehensive CTL usage examples

Comment thread test/pools/disjoint_pool_ctl.cpp
Comment thread test/pools/disjoint_pool_ctl.cpp
Comment thread test/pools/disjoint_pool_ctl.cpp
Comment thread test/pools/disjoint_pool_ctl.cpp
Comment thread examples/ctl/custom_ctl.c Outdated
Comment thread examples/ctl/CMakeLists.txt Outdated
Comment thread include/umf/memory_provider_ops.h
Comment thread src/ctl/ctl_defaults.c Outdated
Comment thread test/common/fork_helpers.hpp

@lukaszstolarczuk lukaszstolarczuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, I mostly reviewed the docs.

1 issue left in my prev. comments - a typo.

@bratpiorka

Copy link
Copy Markdown
Contributor

@lplewa ping :)

@lukaszstolarczuk
lukaszstolarczuk merged commit 10b0aec into oneapi-src:main Oct 13, 2025
36 of 54 checks passed
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.

5 participants