Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
Globals.h
Go to the documentation of this file.
1/*
2 * University of Illinois Open Source License
3 * Copyright 2018-2018 Luthey-Schulten Group,
4 * All rights reserved.
5 *
6 * Developed by: Luthey-Schulten Group
7 * University of Illinois at Urbana-Champaign
8 * http://www.scs.uiuc.edu/~schulten
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a copy of
11 * this software and associated documentation files (the Software), to deal with
12 * the Software without restriction, including without limitation the rights to
13 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14 * of the Software, and to permit persons to whom the Software is furnished to
15 * do so, subject to the following conditions:
16 *
17 * - Redistributions of source code must retain the above copyright notice,
18 * this list of conditions and the following disclaimers.
19 *
20 * - Redistributions in binary form must reproduce the above copyright notice,
21 * this list of conditions and the following disclaimers in the documentation
22 * and/or other materials provided with the distribution.
23 *
24 * - Neither the names of the Luthey-Schulten Group, University of Illinois at
25 * Urbana-Champaign, nor the names of its contributors may be used to endorse or
26 * promote products derived from this Software without specific prior written
27 * permission.
28 *
29 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
32 * THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35 * OTHER DEALINGS WITH THE SOFTWARE.
36 *
37 * Author(s): Tyler M. Earnest, Mike Hallock, Elijah Roberts
38 */
39
40#ifndef _GLOBALS_H
41#define _GLOBALS_H
42#include <string>
43#include <vector>
44#include "core/Types.h"
45#include "core/Exceptions.h"
46#include "me/MESolverFactory.h"
47
48using std::string;
49using std::vector;
50
51extern vector<string> cmdline_parameters;
55extern string functionOption;
56
60extern string simulationFilename;
61
65extern vector<int> replicates;
66
70extern time_t checkpointInterval;
71
75extern volatile bool globalAbort;
76
81
85extern int numberCpuCores;
86
90extern float cpuCoresPerReplicate;
91
92#ifdef OPT_CUDA
93
97extern vector<int> cudaDevices;
98
102extern float cudaDevicesPerReplicate;
103
107extern bool shouldPrintCudaCapabilities;
108
109// TODO describe
110extern bool mgpu_disablePeering;
111
115extern int cudaDevicesPerNode;
116
117#endif
118
122extern bool shouldReserveOutputCore;
123
124#ifdef OPT_PYTHON
128extern string libDir;
129
133extern string userLibDir;
134
138extern string scriptPath;
139
143extern string scriptFilename;
144
148extern vector<string> scriptArguments;
149
150#endif
151
152#endif /* _GLOBALS_H */
float cpuCoresPerReplicate
Definition Globals.cpp:91
int numberCpuCores
Definition Globals.cpp:86
vector< string > cmdline_parameters
Definition Globals.cpp:126
lm::me::MESolverFactory solverFactory
Definition Globals.cpp:81
bool shouldReserveOutputCore
Definition Globals.cpp:120
int cudaDevicesPerNode
Definition Globals.cpp:123
string functionOption
Definition Globals.cpp:56
vector< int > replicates
Definition Globals.cpp:66
volatile bool globalAbort
Definition Globals.cpp:76
time_t checkpointInterval
Definition Globals.cpp:71
string simulationFilename
Definition Globals.cpp:61
A factory object used to create Master Equation simulation instances.
Definition MESolverFactory.h:55
STRING userLibDir
Definition lm_python.cpp:105
string libDir
Definition lm_python.cpp:100
string scriptFilename
Definition lm_python.cpp:89
list< string > scriptArguments
Definition lm_python.cpp:94