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

Moving task_group_exptensions out of the preview #668

Merged
merged 7 commits into from
Dec 21, 2021

Conversation

anton-potapov
Copy link
Contributor

@anton-potapov anton-potapov commented Nov 22, 2021

Description

  • Moved task_handle and related out of Preview features to be aligned with
    oneAPI V1.1 rev 1
    :

Following features, as not part of the spec are still preview ones:

  • is_inside_task function
  • scheduler bypass via task_handle

Fixes # - issue number(s) if exists

  • - git commit message contains appropriate signed-off-by string (see CONTRIBUTING.md for details)

Type of change

Choose one or multiple, leave empty if none of the other choices apply

Add respective label(s) to PR if you have permissions

  • bug fix - change which fixes an issue
  • new feature - change which adds functionality
  • tests - change in tests
  • infrastructure - change in infrastructure and CI
  • documentation - documentation update

Tests

  • added - required for new features and for some bug fixes
  • not needed

Documentation

  • updated in # - add PR number
  • needs to be updated
  • not needed

Breaks backward compatibility

  • Yes
  • No
  • Unknown

Notify the following users

List users with @ to send notifications

Other information

- all but :
  - is_inside_task
  - scheduller bypass

Signed-off-by: Anton Potapov <[email protected]>
anton-potapov and others added 2 commits December 1, 2021 12:06
Co-authored-by: Ilya Isaev <[email protected]>
 - removed duplicated test case
Signed-off-by: Anton Potapov <[email protected]>
@isaevil
Copy link
Contributor

isaevil commented Dec 3, 2021

Should we check somewhere for task_handle being only movable?

 - replaced exceptions with asserts for undefined behaviour
Signed-off-by: Anton Potapov <[email protected]>
 - added test for task_handle being non copyable
Signed-off-by: Anton Potapov <[email protected]>
@anton-potapov
Copy link
Contributor Author

anton-potapov commented Dec 7, 2021

Should we check somewhere for task_handle being only movable?

added static_assertion test

@oneapi-src oneapi-src deleted a comment from alongwithyou Dec 7, 2021
@anton-potapov anton-potapov changed the title - Moving task_group_exptensions out of the preview Moving task_group_exptensions out of the preview Dec 7, 2021
include/oneapi/tbb/detail/_exception.h Outdated Show resolved Hide resolved
include/oneapi/tbb/task_arena.h Show resolved Hide resolved
include/oneapi/tbb/task_arena.h Outdated Show resolved Hide resolved
include/oneapi/tbb/task_group.h Show resolved Hide resolved
include/oneapi/tbb/task_arena.h Outdated Show resolved Hide resolved
oneapi::tbb::task_handle h;

oneapi::tbb::task_group tg;
std::atomic<bool> run {false};
Copy link
Contributor

Choose a reason for hiding this comment

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

The same about run

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

test/conformance/conformance_task_group.cpp Show resolved Hide resolved
TEST_CASE("Task handle blocks wait"){
oneapi::tbb::task_group tg;

std::atomic<bool> completed {false};
Copy link
Contributor

Choose a reason for hiding this comment

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

Make completed to be non-atomic

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

test/conformance/conformance_task_group.cpp Show resolved Hide resolved
test/conformance/conformance_task_group_context.cpp Outdated Show resolved Hide resolved
anton-potapov and others added 2 commits December 8, 2021 00:38
 - made some flags in the tests non-atomic for TSAN to raise a flag if
implementation is incorrect

Signed-off-by: Anton Potapov <[email protected]>
@anton-potapov anton-potapov merged commit 74b7fc7 into oneapi-src:master Dec 21, 2021
kboyarinov pushed a commit that referenced this pull request Dec 27, 2021
Moving task_group_exptensions out of the preview

- moved all but :
  - is_inside_task
  - scheduller bypass

- replaced exceptions with asserts for undefined behavior
 - made some flags in the tests non-atomic for TSAN to raise a flag if
implementation is incorrect

Signed-off-by: Anton Potapov <[email protected]>
Co-authored-by: Ilya Isaev <[email protected]>
Co-authored-by: Alex <[email protected]>
anton-potapov added a commit to anton-potapov/oneTBB that referenced this pull request Jan 13, 2022
anton-potapov added a commit that referenced this pull request Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants