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

Common implementation of hosts backends buffer #1491

Merged
merged 5 commits into from
Apr 12, 2024

Conversation

SergeyKopienko
Copy link
Contributor

@SergeyKopienko SergeyKopienko commented Apr 10, 2024

The goal of this PR - to reduce the amount of duplicated code in our host backends implementations.

In this PR we implement and use the common implementation of host backends buffer, specialized by different memory allocators.
Previously we had three different implementations of hosts backends buffer: they were absolutely the same but have used different memory allocators.

@SergeyKopienko SergeyKopienko force-pushed the dev/skopienko/host_buffer_impl_refacotring_V1 branch from bdadf3e to 7a01a17 Compare April 10, 2024 09:22
@SergeyKopienko SergeyKopienko force-pushed the dev/skopienko/host_buffer_impl_refacotring_V1 branch from 7a01a17 to 89e2d57 Compare April 10, 2024 09:25
@SergeyKopienko SergeyKopienko marked this pull request as ready for review April 10, 2024 09:26
Copy link
Contributor

@julianmi julianmi left a comment

Choose a reason for hiding this comment

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

LGTM

include/oneapi/dpl/pstl/omp/util.h Outdated Show resolved Hide resolved
Sergey Kopienko added 5 commits April 12, 2024 11:53
…ementation of hosts buffer with specified allocator

(cherry picked from commit 41352c2)
…kend's buffer implementation

(cherry picked from commit 06b946e)
…backend's buffer implementation

(cherry picked from commit 89e2d57)
@SergeyKopienko SergeyKopienko force-pushed the dev/skopienko/host_buffer_impl_refacotring_V1 branch from fba801f to a3e8bca Compare April 12, 2024 09:54
Copy link
Contributor

@MikeDvorskiy MikeDvorskiy left a comment

Choose a reason for hiding this comment

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

LGTM

@SergeyKopienko SergeyKopienko merged commit bc5d135 into main Apr 12, 2024
20 checks passed
@SergeyKopienko SergeyKopienko deleted the dev/skopienko/host_buffer_impl_refacotring_V1 branch April 12, 2024 10:40
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.

3 participants