Adding overload for hpx::init/hpx::start for use with resource partitioner#4374
Conversation
|
Thanks @hkaiser for starting this. @aurianer has another PR almost ready to go which actually passes a callback to |
|
Thanks @msimberg. This change is to avoid a linker error on Windows under certain circumstances. The problem I'm trying to solve is that in cases were the resource-manager is initialized explicitly (with an explicit HPX-main function) the no-argument overload of This PR also makes passing the resource-partitioner to the runtime explicit. I never liked the implicit 'pseudo-global' resource partitioner that was snug in behind the scenes. I have no issue to achieve the two goals in any different way, however. |
…rtitioner - this helps resolving linker errors on Windows if the main entry point to HPX is in a shared library - this also cleans up the API as it makes the use of the resource partitioner explicit Note that this is a breaking API as the use of the no-argument versions of `init` and `start` is now deprecated when using an explicit resource partitioner.
cb6abb5 to
3111219
Compare
|
Thanks ! |
|
I already forgot about the test when I merged this. Let's figure out a test on IRC. |
Note that this is a breaking API as the use of the no-argument versions of
initandstartis now deprecated when using an explicit resource partitioner.