-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][PI] Removal of PI_CALL family of macros & implementation of Plugin_impl class #1030
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
bader
merged 15 commits into
intel:sycl
from
garimagu:private/garimagu/piplugin_platformobj
Feb 10, 2020
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
581ba0d
[SYCL][PI] Removal of PI_CALL family of macros & implementation of Pl…
garimagu b336fc1
[SYC][PI] Fixed a bug in commands.cpp file.
garimagu a38f9eb
[SYCL][PI] Renamed plugin_impl to plugin class.
garimagu 0d21709
Changes in commands.cpp file while creation of event_impl to avoid
garimagu ba54c65
Using const reference to pass a shared_ptr instead of passing by value.
garimagu 035a29f
Include context_impl* ParentContext instead of ptr_platform_impl in
garimagu bd37e6b
Addition of suggested changes.
garimagu 9dd5501
Addition of suggested changes.
garimagu 37696b9
The error introduced during rebase/conflict resolution.
garimagu 1dad546
Addition of missing initialization when using std::transform
garimagu 8bea933
Addition of suggested changes.
garimagu 8570e84
Rebase error fix.
garimagu 502557b
Removed the use of auto keyword.
garimagu da92ae9
rebase errors and issues.
garimagu 4bea0ee
Rebase conflict resolution errors and
garimagu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What about adding some free functions to avoid explicitly extracting PI Plugin every time? Something like:
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.
We wanted to avoid making such calls that takes an extra argument beyond the arguments of the function call.
It should look like a function call.
Also, what is the benefit over the existing call format?
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 any comments?
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.
In most cases in this PR, call to a plugin performed only once, so suggested format can save you one line at most of call sites.
I'm not pushing towards my suggestion, this was just an idea. If the intent was to make this call as close as possible to actual call which will be performed under the hood, then let it be. I don't have objections against it