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

STEllAR-GROUP / hpx / #882

31 Aug 2023 07:44PM UTC coverage: 41.798% (-44.7%) from 86.546%
#882

push

19442 of 46514 relevant lines covered (41.8%)

126375.38 hits per line

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

0.0
/libs/core/affinity/include/hpx/affinity/parse_affinity_options.hpp
1
////////////////////////////////////////////////////////////////////////////////
2
//  Copyright (c) 2007-2024 Hartmut Kaiser
3
//  Copyright (c) 2008-2009 Chirag Dekate, Anshul Tandon
4
//  Copyright (c) 2012-2013 Thomas Heller
5
//
6
//  SPDX-License-Identifier: BSL-1.0
7
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
8
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
////////////////////////////////////////////////////////////////////////////////
10

11
#pragma once
12

13
#include <hpx/config.hpp>
14
#include <hpx/modules/errors.hpp>
15
#include <hpx/modules/topology.hpp>
16

17
#include <cstddef>
18
#include <string>
19
#include <vector>
20

21
#include <hpx/config/warnings_prefix.hpp>
22

23
namespace hpx::threads {
24

25
    HPX_CXX_EXPORT HPX_CORE_EXPORT void parse_affinity_options(
26
        std::string const& spec, std::vector<mask_type>& affinities,
27
        std::size_t used_cores, std::size_t max_cores, std::size_t num_threads,
28
        std::vector<std::size_t>& num_pus, bool use_process_mask,
29
        error_code& ec = throws);
30

31
    // backwards compatibility helper
32
    HPX_CXX_EXPORT inline void parse_affinity_options(std::string const& spec,
33
        std::vector<mask_type>& affinities, error_code& ec = throws)
34
    {
35
        std::vector<std::size_t> num_pus;
36
        parse_affinity_options(
37
            spec, affinities, 1, 1, affinities.size(), num_pus, false, ec);
38
    }
39
}    // namespace hpx::threads
40

41
#include <hpx/config/warnings_suffix.hpp>
×
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

© 2026 Coveralls, Inc