Skip to content

Commit

Permalink
Merge pull request #803 from aurianer/release_notes_0_19_1
Browse files Browse the repository at this point in the history
Add release notes for pika patch release 0.19.1
  • Loading branch information
aurianer authored Oct 9, 2023
2 parents 2275822 + 9bda172 commit a3e0bee
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .gitlab/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ clang14_debug_build:

.test_common_mc:
stage: test
extends: .test_common
extends: .container-runner-daint-mc
extends:
- .test_common
- .container-runner-daint-mc
variables:
SLURM_CONSTRAINT: mc
SLURM_PARTITION: normal
PROCESSOR_COUNT: 36

.test_common_gpu:
extends: .test_common
extends: .container-runner-daint-gpu
extends:
- .test_common
- .container-runner-daint-gpu
variables:
SLURM_CONSTRAINT: gpu
SLURM_PARTITION: normal
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<!--- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
<!--- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->

## 0.19.1 (2023-10-09)

### Bugfixes

- Fix a bug in `drop_operation_state` when the predecessor sender is sending a tuple. ([#801](https://github.com/pika-org/pika/pull/801))

## 0.19.0 (2023-10-04)

### New features
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# ##############################################################################
set(PIKA_VERSION_MAJOR 0)
set(PIKA_VERSION_MINOR 19)
set(PIKA_VERSION_PATCH 0)
set(PIKA_VERSION_DATE 20231004)
set(PIKA_VERSION_PATCH 1)
set(PIKA_VERSION_DATE 20231009)
set(PIKA_VERSION_TAG "")

set(PIKA_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace pika::drop_op_state_detail {

try
{
auto ts_local = std::tuple(PIKA_FORWARD(Ts, ts)...);
std::tuple<std::decay_t<Ts>...> ts_local(PIKA_FORWARD(Ts, ts)...);
r.op_state->op_state.reset();

std::apply(pika::util::detail::bind_front(pika::execution::experimental::set_value,
Expand Down
14 changes: 14 additions & 0 deletions libs/pika/execution/tests/unit/algorithm_drop_operation_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <memory>
#include <stdexcept>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>

Expand Down Expand Up @@ -107,6 +108,19 @@ int main()
PIKA_TEST(set_value_called);
}

{
std::atomic<bool> set_value_called{false};
auto s = ex::just(std::tuple<int, std::string>(42, "hello")) | ex::drop_operation_state();
constexpr auto f = [](std::tuple<int, std::string>&& t) {
PIKA_TEST_EQ(std::get<int>(t), 42);
PIKA_TEST_EQ(std::get<std::string>(t), std::string("hello"));
};
auto r = callback_receiver<decltype(f)>{f, set_value_called};
auto os = ex::connect(std::move(s), std::move(r));
ex::start(os);
PIKA_TEST(set_value_called);
}

// Test that operation state is actually dropped
{
auto sp = std::make_shared<int>(42);
Expand Down

0 comments on commit a3e0bee

Please sign in to comment.