Skip to content

CTL: Add a CTL sources to the UMF #913

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 3 commits into from
Dec 19, 2024
Merged

Conversation

KFilipek
Copy link
Contributor

@KFilipek KFilipek commented Nov 19, 2024

Description

This commit introduces sources and compilation of the CTL.

Checklists

TODO:

  • Move CTL sources
  • Make code compiled and symbols are exposed
  • Run tests

Other:

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly
  • CI workflows, not executed per PR (e.g. Nightly), 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
  • All newly added source files have a license
  • All newly added source files are referenced in CMake files
  • Logger (with debug/info/... messages) is used

@KFilipek KFilipek self-assigned this Nov 19, 2024
@KFilipek KFilipek added the enhancement New feature or request label Nov 19, 2024
src/ctl/ctl.c Outdated
*/
int ctl_load_config_from_string(struct ctl *ctl, void *ctx,
const char *cfg_string) {
// LOG(3, "ctl %p ctx %p cfg_string \"%s\"", ctl, ctx, cfg_string);
Copy link
Contributor

Choose a reason for hiding this comment

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

LOG could be replaced with our LOG_* macros

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Temporarily deleted

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll leave this issue open, for LOGs to come back, when ready

Copy link
Contributor

Choose a reason for hiding this comment

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

bump, pls add LOGs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not a scope of this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

a few places with the old LOG( were removed, just please bring them back using our logger

@KFilipek KFilipek force-pushed the ctl-base branch 8 times, most recently from 5c52d3a to cdd3d46 Compare November 22, 2024 10:30
@KFilipek KFilipek force-pushed the ctl-base branch 15 times, most recently from 4f30764 to 0f8383e Compare November 29, 2024 08:32
@KFilipek KFilipek force-pushed the ctl-base branch 2 times, most recently from 0d68c68 to 44ec630 Compare December 3, 2024 10:12
@bratpiorka bratpiorka marked this pull request as ready for review December 13, 2024 10:36
@lukaszstolarczuk
Copy link
Contributor

now all changes are in a single commit, at best the original code should be in the first commit and all our changes in a sep. one - this would be easier to distingush our changes, e.g. in case of any issues found

Thanks for introducing a sep. commit, but it still require some cleanup. At least the description of the 3rd commit should be rather in the first commit:

image

@KFilipek
Copy link
Contributor Author

now all changes are in a single commit, at best the original code should be in the first commit and all our changes in a sep. one - this would be easier to distingush our changes, e.g. in case of any issues found

Thanks for introducing a sep. commit, but it still require some cleanup. At least the description of the 3rd commit should be rather in the first commit:

image

I've changed commits descriptions.

@KFilipek KFilipek force-pushed the ctl-base branch 3 times, most recently from 80da367 to 12dbce6 Compare December 17, 2024 15:54
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

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

2 nits, 1 issue, beside it looks good


// This file was originally under following license:
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2016-2024, Intel Corporation */
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: do we need the second copyright? it's same company, it's even the same dates. If really needed we can merge them e.g. as in here: https://github.com/oneapi-src/unified-memory-framework/blob/main/src/uthash/uthash.h#L3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will create an issue for it

*
*/

// This file was originally under following license:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: why mixing 2 comment methods? we could stick to /**/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will create an issue for it

@KFilipek KFilipek merged commit 2e3325f into oneapi-src:main Dec 19, 2024
77 checks passed
@KFilipek KFilipek mentioned this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants