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

uninitialized_relocate w/ type_support primitive #6344

Merged
merged 9 commits into from
Sep 25, 2023

Conversation

isidorostsa
Copy link
Contributor

@isidorostsa isidorostsa commented Sep 6, 2023

This PR replaces the type_support::uninitialized_relocate with a primitive version for uninitialized relocation, named uninitialized_relocate_n_primitive. This is used by the parallel and sequenced versions of algorithms::uninitialized_relocate.

In contrast to the previous attempt of implementing the relocation functions, #6314, this does not place the primitive in transfer.hpp, which is in the algorithms module, nor does it modify loop.hpp to add the specific exception handling method required by uninitialized_relocate.

The goal of keeping a primitive in type support, which is relatively low level in terms of dependencies, is to use it in the higher level small_vector and other data structures.

@isidorostsa isidorostsa force-pushed the relocate_primitives branch 4 times, most recently from 34dec13 to b435397 Compare September 8, 2023 16:58
@isidorostsa isidorostsa changed the title move is_(trivially_)relocatable to experimental Implement the hpx relocation algorithms with the revised dependencies Sep 9, 2023
@isidorostsa isidorostsa changed the title Implement the hpx relocation algorithms with the revised dependencies uninitialized_relocate algorithms w/ type_support primitive Sep 9, 2023
@isidorostsa isidorostsa changed the title uninitialized_relocate algorithms w/ type_support primitive uninitialized_relocate w/ type_support primitive Sep 9, 2023
@hkaiser hkaiser added this to the 1.10.0 milestone Sep 10, 2023
@hkaiser
Copy link
Member

hkaiser commented Sep 10, 2023

One of the builders reports: https://cdash.cscs.ch/test/104782688

hkaiser
hkaiser previously approved these changes Sep 10, 2023
Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

It looks like the failing builders are unrelated (caused by problems on rostam). LGTM, thanks!

@isidorostsa isidorostsa force-pushed the relocate_primitives branch 3 times, most recently from 2aa7101 to b2d0ed3 Compare September 11, 2023 11:19
using iter_value_type_t =
typename std::iterator_traits<Iter>::value_type;

template <typename Iter, typename Dummy = void>
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: we usually call the second parameter Enable to convey its purpose.

@hkaiser
Copy link
Member

hkaiser commented Sep 25, 2023

bors merge

bors bot pushed a commit that referenced this pull request Sep 25, 2023
6344: uninitialized_relocate w/ type_support primitive r=hkaiser a=isidorostsa

This PR replaces the `type_support::uninitialized_relocate` with a primitive version for uninitialized relocation, named `uninitialized_relocate_n_primitive`. This is used by the parallel and sequenced versions of `algorithms::uninitialized_relocate`.

In contrast to the previous attempt of implementing the relocation functions, #6314, this does not place the primitive in `transfer.hpp`, which is in the `algorithms` module, nor does it modify `loop.hpp` to add the specific exception handling method required by `uninitialized_relocate`. 

The goal of keeping a primitive in type support, which is relatively low level in terms of dependencies, is to use it in the higher level `small_vector` and other data structures. 

6348: Adding --exclusive to launching tests on rostam r=hkaiser a=hkaiser



6349: Moving hpx::threads::run_as_xxx to namespace hpx r=hkaiser a=hkaiser

- run_as_os_thread
- run_as_hpx_thread

Co-authored-by: isidorostsa <tsa.isidoros@gmail.com>
Co-authored-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
@bors
Copy link

bors bot commented Sep 25, 2023

This PR was included in a batch that successfully built, but then failed to merge into master. It will not be retried.

Additional information:

Response status code: 422
{"message":"Changes must be made through a pull request.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

@hkaiser hkaiser merged commit 1ec0c0f into STEllAR-GROUP:master Sep 25, 2023
18 checks passed
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.

2 participants