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

Backport TBB deprecation and related changes to 6-22 #7065

Merged
merged 20 commits into from
Jan 21, 2021

Conversation

xvallspl
Copy link
Contributor

As requested by CMS (@mrodozov)

Replace all uses of TPoolManager, based on the deprecated
tbb_task_scheduler_init and its implicit task_arena, by explicit
manipulation of our own central instance of task_arena, as
suggested by intel:
https://software.intel.com/sites/default/files/managed/b2/d2/TBBRevamp.pdf

Work out some gymnastics to keep tbb out of the headers,
encapsulating it within the new RTaskArenaWrapper class. Couldn't
find a solution for the forward-declaration tbb::task_arena, which
is an alias of a versioned namespace dependent class that we are
forced to forward declare instead (tbb::interface7::tbb_task_arena).
...when checking for bandwith control
...and only allow RTaskarenaWrapper to be constructed from
GetGlobalTaskArena
..for things that were true in TPoolManager but not anymore
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/default.
Running on null:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu16/nortcxxmod.
Running on sft-ubuntu-1604-1.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-debian10-i386/cxx14.
Running on pcepsft10.dyndns.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac11.0/cxx17.
Running on macphsft23.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-fedora30/cxx14.
Running on root-fedora30-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac1014/python3.
Running on macitois21.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

xvallspl added a commit to xvallspl/roottest that referenced this pull request Jan 20, 2021
Due to moving from TPoolManager to RTaskArena as an interface to
the TBB pool of threads.

See root-project/root#7065
    warn when the number of threads set by the user is limited at runtime
    by tbb::global_control.

    Fix for github issue root-project#6363: root-project#6363
Introduce yet another layer of abstraction in ROpaqueTaskArena,
a class inheriting from tbb::task_arena that will allow us to keep
tbb hidden from ROOT interfaces while solving the issue of having to
forward-declare tbb::task_arena in an interface-dependent way
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-performance-centos8-multicore/default.
Running on null:/data/sftnight/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-debian10-i386/cxx14.
Running on pcepsft10.dyndns.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu16/nortcxxmod.
Running on sft-ubuntu-1604-2.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac11.0/cxx17.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac1014/python3.
Running on macitois21.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-fedora30/cxx14.
Running on root-fedora30-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@xvallspl xvallspl self-assigned this Jan 20, 2021
@xvallspl xvallspl merged commit 98ff530 into root-project:v6-22-00-patches Jan 21, 2021
xvallspl added a commit to root-project/roottest that referenced this pull request Jan 22, 2021
Due to moving from TPoolManager to RTaskArena as an interface to
the TBB pool of threads.

See root-project/root#7065
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