-
Notifications
You must be signed in to change notification settings - Fork 744
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][Doc] Update docs to reflect PI removal. #15057
Conversation
628ef9e
to
b5ab22d
Compare
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.
Also these doxygen docs have to be updated:
1
llvm/sycl/source/detail/context_impl.hpp
Lines 61 to 70 in 07bf3c1
/// Construct a context_impl using plug-in interoperability handle. | |
/// | |
/// The constructed context_impl will use the AsyncHandler parameter to | |
/// handle exceptions. | |
/// | |
/// \param UrContext is an instance of a valid plug-in context handle. | |
/// \param AsyncHandler is an instance of async_handler. | |
/// \param Plugin is the reference to the underlying Plugin that this | |
/// \param OwnedByRuntime is the flag if ownership is kept by user or | |
/// transferred to runtime |
2
llvm/sycl/source/detail/context_impl.hpp
Lines 105 to 112 in 07bf3c1
/// Gets the underlying context object (if any) without reference count | |
/// modification. | |
/// | |
/// Caller must ensure the returned object lives on stack only. It can also | |
/// be safely passed to the underlying native runtime API. Warning. Returned | |
/// reference will be invalid if context_impl was destroyed. | |
/// | |
/// \return an instance of raw plug-in context handle. |
3
llvm/sycl/source/detail/context_impl.hpp
Lines 115 to 122 in 07bf3c1
/// Gets the underlying context object (if any) without reference count | |
/// modification. | |
/// | |
/// Caller must ensure the returned object lives on stack only. It can also | |
/// be safely passed to the underlying native runtime API. Warning. Returned | |
/// reference will be invalid if context_impl was destroyed. | |
/// | |
/// \return an instance of raw plug-in context handle. |
4
llvm/sycl/source/detail/event_impl.hpp
Lines 61 to 67 in 07bf3c1
/// Constructs an event instance from a plug-in event handle. | |
/// | |
/// The SyclContext must match the plug-in context associated with the | |
/// ClEvent. | |
/// | |
/// \param Event is a valid instance of plug-in event. | |
/// \param SyclContext is an instance of SYCL context. |
5
llvm/sycl/source/detail/event_impl.hpp
Lines 129 to 137 in 07bf3c1
/// Returns raw interoperability event handle. Returned reference will be | |
/// invalid if event_impl was destroyed. | |
/// | |
/// \return a reference to an instance of plug-in event handle. | |
ur_event_handle_t &getHandleRef(); | |
/// Returns raw interoperability event handle. Returned reference will be | |
/// invalid if event_impl was destroyed. | |
/// | |
/// \return a const reference to an instance of plug-in event handle. |
6
llvm/sycl/source/detail/kernel_impl.hpp
Lines 34 to 41 in 07bf3c1
/// Constructs a SYCL kernel instance from a UrKernel | |
/// | |
/// This constructor is used for plug-in interoperability. It always marks | |
/// kernel as being created from source. | |
/// | |
/// \param Kernel is a valid UrKernel instance | |
/// \param Context is a valid SYCL context | |
/// \param KernelBundleImpl is a valid instance of kernel_bundle_impl |
7
llvm/sycl/source/detail/platform_impl.hpp
Lines 35 to 39 in 07bf3c1
/// Constructs platform_impl from a plug-in interoperability platform | |
/// handle. | |
/// | |
/// \param APlatform is a raw plug-in platform handle. | |
/// \param APlugin is a plug-in handle. |
8
llvm/sycl/source/detail/platform_impl.hpp
Lines 107 to 113 in 07bf3c1
/// Returns raw underlying plug-in platform handle. | |
/// | |
/// Unlike get() method, this method does not retain handler. It is caller | |
/// responsibility to make sure that platform stays alive while raw handle | |
/// is in use. | |
/// | |
/// \return a raw plug-in platform handle. |
Also other things: 9 Line 46 in 07bf3c1
has to be updated, we don't have 10 Lines 125 to 131 in 07bf3c1
We need to rename @intel/dpcpp-nativecpu-pi-reviewers as well (to @intel/dpcpp-nativecpu-ur-reviewers ?) @stdale-intel, can you please rename the group? @aarongreig or @stdale-intel, can you please update the CODEOWNERS file after that? |
+ more 11 12 llvm/.github/workflows/sycl-linux-build.yml Line 172 in 07bf3c1
13
14 Line 54 in 07bf3c1
15 Line 95 in 07bf3c1
16 Line 179 in 07bf3c1
17 Line 71 in 07bf3c1
18 Lines 155 to 156 in 07bf3c1
|
+ update XPTI 19 llvm/xpti/doc/SYCL_Tracing_Implementation.md Lines 66 to 70 in 07bf3c1
20 llvm/sycl/source/detail/xpti_registry.hpp Line 30 in 07bf3c1
21
22
23 llvm/xptifw/samples/syclpi_collector/README.md Lines 1 to 24 in 07bf3c1
24
25
26
27 llvm/sycl/source/detail/xpti_registry.hpp Lines 30 to 34 in 07bf3c1
28 llvm/xptifw/samples/syclpi_collector/CMakeLists.txt Lines 1 to 15 in 07bf3c1
(@KseniyaTikhomirova can provide more information about the update of XPTI (if any)). |
29 Line 61 in 07bf3c1
|
+ 30 llvm/sycl/doc/GetStartedGuide.md Lines 211 to 214 in 07bf3c1
31 llvm/sycl/doc/GetStartedGuide.md Lines 246 to 247 in 07bf3c1
|
32 llvm/sycl/cmake/modules/AddSYCL.cmake Lines 47 to 98 in 07bf3c1
|
@dm-vodopyanov thanks for all the feedback For point #1, the comment is still correct as it refers to the Plugin object (which arguably should be renamed but that isn't a task for this PR) I'm not sure what to do about #23, #24, #25 and #26. The pi_collector example will for sure need re-written now that sycl.pi has been removed, I'll open another sub-ticket on the post-merge work issue to look into this as it's not as trivial as just updating docs. |
It isn't clear if we'll change the terminology on the website, but it for sure wont be until after the next release since the current latest release on there is inarguably a PI plugin. |
@steffenlarsen would you mind taking a look at this so we can get it over the line? |
@dm-vodopyanov @stdale-intel I've created an issue to track so we can unblock merging this #15956 |
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.
Looks reasonable! Just one small mistake. 👍
@bader please take a look so we can get this in for 2025.1 |
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.
Please, resolve merge conflicts.
@intel/llvm-gatekeepers I think we're good to merge this |
Fixes #14928