-
Notifications
You must be signed in to change notification settings - Fork 789
[SYCL] Refactor memory objects to improve ABI stability #1076
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
[SYCL] Refactor memory objects to improve ABI stability #1076
Conversation
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
#include <CL/sycl/detail/sycl_mem_obj_i.hpp> | ||
#include <CL/sycl/detail/type_traits.hpp> | ||
#include <CL/sycl/event.hpp> | ||
#include <CL/sycl/property_list.hpp> | ||
#include <CL/sycl/stl.hpp> | ||
|
||
#include <type_traits> | ||
#include <cstring> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe cstring should be placed before type_traits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that suggested placement is correct. See LLVM Coding Standards: there are 4 main sections of includes, each of them is sorted alphabetically, but they didn't overlap between each other
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlexeySachkov I have moved cstring
above type_traits
. For some reason GitHub doesn't show this comment as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
6ce3fd0
to
47117d5
Compare
This patch is a part of effort to decouple SYCL Runtime library
interface from its actual implementation. The goal is to improve
SYCL ABI/API compatibility between different versions of library.
The following changes were applied to SYCLMemObjT, as well as
buffer and image classes:
templates for SYCLMemObjT, buffer_impl, and image_imp.
were refactored to use public APIs only. All usages of private
APIs were moved to cpp files.
and buffer_impl to image and buffer accordingly, since they
did not use any private APIs at all.
Signed-off-by: Alexander Batashev [email protected]