-
Notifications
You must be signed in to change notification settings - Fork 41
/
data_std.hpp
39 lines (31 loc) · 1.24 KB
/
data_std.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*****************************************************************************\
* Copyright 2021 Lawrence Livermore National Security, LLC
* (c.f. AUTHORS, NOTICE.LLNS, LICENSE)
*
* This file is part of the Flux resource manager framework.
* For details, see https://github.com/flux-framework.
*
* SPDX-License-Identifier: LGPL-3.0
\*****************************************************************************/
#ifndef DATA_STD_H
#define DATA_STD_H
#include <set>
#include <string>
namespace Flux {
namespace resource_model {
// We create an x_checker planner for each resource vertex for quick exclusivity
// checking. We update x_checker for all of the vertices involved in each
// job allocation/reservation -- subtract 1 from x_checker planner for the
// scheduled span. Any vertex with less than X_CHECKER_NJOBS available in its
// x_checker cannot be exclusively allocated or reserved.
const char * const X_CHECKER_JOBS_STR = "jobs";
const int64_t X_CHECKER_NJOBS = 0x40000000;
using subsystem_t = std::string;
using multi_subsystems_t = std::map<subsystem_t, std::string>;
using multi_subsystemsS = std::map<subsystem_t, std::set<std::string>>;
} // Flux
} // Flux::resource_model
#endif // DATA_STD_H
/*
* vi:tabstop=4 shiftwidth=4 expandtab
*/