Skip to content

[SYCL][Scheduler] Refactor commands #839

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
merged 1 commit into from
Nov 18, 2019

Conversation

romanovvlad
Copy link
Contributor

  1. Store requirements in all the commands. This prevents potential use
    after free.

  2. Unified way to access stored requirement. For most of the functions
    that are only one requirement that needs to be stored and accessed.
    Being able to get it using just parent type(Command) simplifies code
    which sets dependency

  3. Align/Fix variables names across commands

Signed-off-by: Vlad Romanov [email protected]

sergey-semenov
sergey-semenov previously approved these changes Nov 15, 2019
@romanovvlad
Copy link
Contributor Author

Fixed the compilation error found by pre commit.

  • Refactored code a little bit more.

sergey-semenov
sergey-semenov previously approved these changes Nov 18, 2019
Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

Please, be more specific in the PR title. "Refactor commands" is too vague to understand the purpose of the change.

@romanovvlad romanovvlad force-pushed the private/vromanov/CommandsRefactoring2 branch 2 times, most recently from 8b6a75e to 7d93390 Compare November 18, 2019 16:36
1. Store requirements in all the commands. This prevents potential use
after free.

2. Unified way to access stored requirement. For most of the functions
that are only one requirement that needs to be stored and accessed.
Being able to get it using just parent type(Command) simplifies code
which sets dependency

3. Align/Fix variables names across commands

Signed-off-by: Vlad Romanov <[email protected]>
@romanovvlad romanovvlad force-pushed the private/vromanov/CommandsRefactoring2 branch from 7d93390 to 09edefe Compare November 18, 2019 17:44
@bader bader merged commit ee4b1f7 into intel:sycl Nov 18, 2019
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