Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release-0.19.X
Browse files Browse the repository at this point in the history
  • Loading branch information
aurianer committed Oct 4, 2023
2 parents 313c514 + 9fcfd8f commit 2275822
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux_valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
shell: bash
run: |
cmake --build build --target tests.unit.modules.execution
cmake --build build --target std_thread_scheduler_test
- name: Test
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ namespace pika::ensure_started_detail {

template <typename Error>
friend void tag_invoke(pika::execution::experimental::set_error_t,
ensure_started_receiver&& r, Error&& error) noexcept
ensure_started_receiver r, Error&& error) noexcept
{
r.state->v.template emplace<error_type>(error_type(PIKA_FORWARD(Error, error)));
r.state->set_predecessor_done();
}

friend void tag_invoke(pika::execution::experimental::set_stopped_t,
ensure_started_receiver&& r) noexcept
ensure_started_receiver r) noexcept
{
r.state->set_predecessor_done();
};
Expand All @@ -188,7 +188,7 @@ namespace pika::ensure_started_detail {

template <typename... Ts>
friend auto tag_invoke(pika::execution::experimental::set_value_t,
ensure_started_receiver&& r, Ts&&... ts) noexcept
ensure_started_receiver r, Ts&&... ts) noexcept
-> decltype(std::declval<
pika::detail::variant<pika::detail::monostate, value_type>>()
.template emplace<value_type>(
Expand Down
9 changes: 5 additions & 4 deletions libs/pika/executors/tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ set(tests
thread_pool_scheduler
)

set(std_thread_scheduler_PARAMETERS VALGRIND)

# nvc++ causes test failures in release mode. This is assumed to be a code
# generation bug.
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC")
Expand All @@ -33,8 +35,6 @@ endif()
foreach(test ${tests})
set(sources ${test}.cpp)

set(${test}_PARAMETERS THREADS 4)

source_group("Source Files" FILES ${sources})

set(folder_name "Tests/Unit/Modules/Executors")
Expand All @@ -47,6 +47,7 @@ foreach(test ${tests})
FOLDER ${folder_name}
)

pika_add_unit_test("modules.executors" ${test} ${${test}_PARAMETERS})

pika_add_unit_test(
"modules.executors" ${test} ${${test}_PARAMETERS} THREADS 4
)
endforeach()

0 comments on commit 2275822

Please sign in to comment.