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

ukernel: add a common shim layer for better maintainability and split x64 APIs and abstractions into several files #2862

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

Conversation

dzarukin
Copy link
Contributor

@dzarukin dzarukin commented Mar 12, 2025

The common shim layer should allow to modify existing or introduce new APIs without updating all backends but just the one desired.
With current model every change to API forces a developer to update all backends, otherwise, a compilation or linking failure will pop up.

Splitting x64 abstractions follows primitive abstraction coding practice.

@dzarukin dzarukin requested review from a team as code owners March 12, 2025 02:24
@github-actions github-actions bot added the platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64 label Mar 12, 2025
@dzarukin
Copy link
Contributor Author

make test

@dzarukin dzarukin changed the title ukernel: add a common shin layer for better maintainability and split x64 APIs and abstractions into several files ukernel: add a common shim layer for better maintainability and split x64 APIs and abstractions into several files Mar 12, 2025
Copy link
Contributor

@Radu2k Radu2k left a comment

Choose a reason for hiding this comment

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

LGTM. There is one recommendation that I would suggest.

Comment on lines +27 to +29
#define VCHECK_BRGEMM(cond, msg, ...) \
VCONDCHECK(ukernel, create, check, brgemm, (cond), \
status::invalid_arguments, msg, ##__VA_ARGS__)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should move this in the corresponding BRGeMM file and import it here as this is a BRGEMM check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants