• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

STEllAR-GROUP / hpx / #869

20 Jan 2023 12:14AM UTC coverage: 86.397% (-0.09%) from 86.487%
#869

push

web-flow
Merge pull request #6142 from msimberg/update-daint-jenkins-perftest-references

Update performance test references for Piz Daint

174481 of 201952 relevant lines covered (86.4%)

2150263.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

15.38
/libs/full/async_distributed/tests/regressions/async_callback_with_bound_callback.cpp
1
//  Copyright 2015 (c) Hartmut Kaiser
2
//
3
//  SPDX-License-Identifier: BSL-1.0
4
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
5
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6

7
#include <hpx/config.hpp>
8
#if !defined(HPX_COMPUTE_DEVICE_CODE)
9
#include <hpx/hpx.hpp>
10
#include <hpx/hpx_main.hpp>
11
#include <hpx/include/async.hpp>
12
#include <hpx/modules/testing.hpp>
13

14
#include <system_error>
15

16
#if defined(HPX_HAVE_NETWORKING)
17
void async_callback(
×
18
    uint64_t, std::error_code const&, hpx::parcelset::parcel const&)
19
{
20
}
×
21
#else
22
void async_callback(uint64_t) {}
23
#endif
24

25
void func() {}
1✔
26
HPX_PLAIN_ACTION(func)
4✔
27

28
int main()
×
29
{
30
    for (hpx::id_type const& id : hpx::find_all_localities())
×
31
    {
32
        uint64_t buffer_index = 0;
×
33
#if defined(HPX_HAVE_NETWORKING)
34
        hpx::future<void> f = hpx::async_cb(func_action(), id,
×
35
            hpx::bind(&async_callback, buffer_index, hpx::placeholders::_1,
×
36
                hpx::placeholders::_2));
37
#else
38
        hpx::future<void> f = hpx::async_cb(
39
            func_action(), id, hpx::bind(&async_callback, buffer_index));
40
#endif
41
        f.get();
×
42
    }
×
43
    return hpx::util::report_errors();
×
44
}
×
45
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc