Reduce hwloc & cpuid test requirements
[gromacs.git] / src / programs / mdrun / runner.h
blobbfbaa315a193a03d3da68bc535f2be9caba51f2b
1 /*
2 * This file is part of the GROMACS molecular simulation package.
4 * Copyright (c) 2015, by the GROMACS development team, led by
5 * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
6 * and including many others, as listed in the AUTHORS file in the
7 * top-level source directory and at http://www.gromacs.org.
9 * GROMACS is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 2.1
12 * of the License, or (at your option) any later version.
14 * GROMACS is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with GROMACS; if not, see
21 * http://www.gnu.org/licenses, or write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 * If you want to redistribute modifications to GROMACS, please
25 * consider that scientific software is very special. Version
26 * control is crucial - bugs must be traceable. We will be happy to
27 * consider code for inclusion in the official distribution, but
28 * derived work must not be called official GROMACS. Details are found
29 * in the README & COPYING files - if they are missing, get the
30 * official version at http://www.gromacs.org.
32 * To help us fund GROMACS development, we humbly ask that you cite
33 * the research papers on the package. Check out http://www.gromacs.org.
35 /*! \internal \file
37 * \brief Declares the routine running the inetgrators.
39 * \author David van der Spoel <david.vanderspoel@icm.uu.se>
40 * \ingroup module_mdlib
42 #ifndef GMX_MDLIB_RUNNER_H
43 #define GMX_MDLIB_RUNNER_H
45 #include <cstdio>
47 #include "gromacs/hardware/hw_info.h"
48 #include "gromacs/math/vec.h"
49 #include "gromacs/utility/basedefinitions.h"
50 #include "gromacs/utility/real.h"
52 struct gmx_output_env_t;
53 struct t_commrec;
54 struct t_filenm;
56 namespace gmx
59 /*! \brief Driver routine, that calls the different methods
61 * \param[in] hw_opt Hardware detection structure
62 * \param[in] fplog File pointer for log file
63 * \param[in] cr Communication data
64 * \param[in] nfile Number of files
65 * \param[in] fnm Array of filenames and file properties
66 * \param[in] oenv Output variables for storing xvg files etc.
67 * \param[in] bVerbose Verbose output or not
68 * \param[in] nstglobalcomm Number of steps between global communication
69 * \param[in] ddxyz Division of sub-boxes over processors for
70 * use in domain decomposition parallellization
71 * \param[in] dd_rank_order Ordering of the PP and PME ranks
72 * \param[in] npme The number of separate PME ranks requested, -1 = auto
73 * \param[in] rdd The maximum distance for bonded interactions with DD (nm)
74 * \param[in] rconstr Maximum distance for P-LINCS (nm)
75 * \param[in] dddlb_opt File name for debugging
76 * \param[in] dlb_scale File name for debugging
77 * \param[in] ddcsx File name for debugging
78 * \param[in] ddcsy File name for debugging
79 * \param[in] ddcsz File name for debugging
80 * \param[in] nbpu_opt Type of nonbonded processing unit
81 * \param[in] nstlist_cmdline Override neighbor search frequency
82 * \param[in] nsteps_cmdline Override number of simulation steps
83 * \param[in] nstepout How often to write to the console
84 * \param[in] resetstep Reset the step counter
85 * \param[in] nmultisim Number of parallel simulations to run
86 * \param[in] repl_ex_nst Number steps between replica exchange attempts
87 * \param[in] repl_ex_nex Number of replicas in REMD
88 * \param[in] repl_ex_seed The seed for Monte Carlo swaps
89 * \param[in] pforce Minimum force for printing (for debugging)
90 * \param[in] cpt_period How often to checkpoint the simulation
91 * \param[in] max_hours Maximume length of the simulation (wall time)
92 * \param[in] imdport Interactive MD port (socket)
93 * \param[in] Flags More command line options
95 int mdrunner(gmx_hw_opt_t *hw_opt,
96 FILE *fplog, struct t_commrec *cr, int nfile,
97 const t_filenm fnm[], const gmx_output_env_t *oenv, gmx_bool bVerbose,
98 int nstglobalcomm, ivec ddxyz, int dd_rank_order, int npme,
99 real rdd, real rconstr, const char *dddlb_opt, real dlb_scale,
100 const char *ddcsx, const char *ddcsy, const char *ddcsz,
101 const char *nbpu_opt, int nstlist_cmdline,
102 gmx_int64_t nsteps_cmdline, int nstepout, int resetstep,
103 int nmultisim, int repl_ex_nst, int repl_ex_nex,
104 int repl_ex_seed, real pforce, real cpt_period, real max_hours,
105 int imdport, unsigned long Flags);
108 } // namespace gmx
110 #endif // GMX_MDLIB_RUNNER_H