{
const int end = forceToAdd.size();
- int gmx_unused nt = gmx_omp_nthreads_get(ModuleMultiThread::PME);
+ int gmx_unused nt = gmx_omp_nthreads_get(ModuleMultiThread::Pme);
#pragma omp parallel for num_threads(nt) schedule(static)
for (int i = 0; i < end; i++)
{
if (nsettle > 0)
{
- nth = gmx_omp_nthreads_get(ModuleMultiThread::SETTLE);
+ nth = gmx_omp_nthreads_get(ModuleMultiThread::Settle);
}
else
{
}
/* Allocate thread-local work arrays */
- int nthreads = gmx_omp_nthreads_get(ModuleMultiThread::SETTLE);
+ int nthreads = gmx_omp_nthreads_get(ModuleMultiThread::Settle);
if (nthreads > 1 && threadConstraintsVirial == nullptr)
{
snew(threadConstraintsVirial, nthreads);
}
/* only babble if we are really overriding with a different value */
- if ((bSepPME && m == ModuleMultiThread::PME && nth != modth.gnth_pme) || (nth != modth.gnth))
+ if ((bSepPME && m == ModuleMultiThread::Pme && nth != modth.gnth_pme) || (nth != modth.gnth))
{
GMX_LOG(mdlog.warning)
.asParagraph()
{
/* pick the global PME node nthreads if we are setting the number
* of threads in separate PME nodes */
- nth = (bSepPME && m == ModuleMultiThread::PME) ? modth.gnth_pme : modth.gnth;
+ nth = (bSepPME && m == ModuleMultiThread::Pme) ? modth.gnth_pme : modth.gnth;
}
gmx_omp_nthreads_set(m, nth);
pick_module_nthreads(mdlog, ModuleMultiThread::Pairsearch, bSepPME);
pick_module_nthreads(mdlog, ModuleMultiThread::Nonbonded, bSepPME);
pick_module_nthreads(mdlog, ModuleMultiThread::Bonded, bSepPME);
- pick_module_nthreads(mdlog, ModuleMultiThread::PME, bSepPME);
+ pick_module_nthreads(mdlog, ModuleMultiThread::Pme, bSepPME);
pick_module_nthreads(mdlog, ModuleMultiThread::Update, bSepPME);
- pick_module_nthreads(mdlog, ModuleMultiThread::VSITE, bSepPME);
- pick_module_nthreads(mdlog, ModuleMultiThread::LINCS, bSepPME);
- pick_module_nthreads(mdlog, ModuleMultiThread::SETTLE, bSepPME);
+ pick_module_nthreads(mdlog, ModuleMultiThread::VirtualSite, bSepPME);
+ pick_module_nthreads(mdlog, ModuleMultiThread::Lincs, bSepPME);
+ pick_module_nthreads(mdlog, ModuleMultiThread::Settle, bSepPME);
/* set the number of threads globally */
if (bOMP)
Pairsearch,
Nonbonded,
Bonded,
- PME,
+ Pme,
Update,
- VSITE,
- LINCS,
- SETTLE,
+ VirtualSite,
+ Lincs,
+ Settle,
Count
};
* The current constraint to task assignment code can create independent
* tasks only when not more than two constraints are connected sequentially.
*/
- li->ntask = gmx_omp_nthreads_get(ModuleMultiThread::LINCS);
+ li->ntask = gmx_omp_nthreads_get(ModuleMultiThread::Lincs);
li->bTaskDep = (li->ntask > 1 && bMoreThanTwoSeq);
if (debug)
{
Lincs* lincsd;
int maxwarn = 100;
int warncount_lincs = 0;
- gmx_omp_nthreads_set(ModuleMultiThread::LINCS, 1);
+ gmx_omp_nthreads_set(ModuleMultiThread::Lincs, 1);
// Communication record
t_commrec cr;
return std::make_unique<VirtualSitesHandler>(mtop, cr->dd, pbcType);
}
-ThreadingInfo::ThreadingInfo() : numThreads_(gmx_omp_nthreads_get(ModuleMultiThread::VSITE))
+ThreadingInfo::ThreadingInfo() : numThreads_(gmx_omp_nthreads_get(ModuleMultiThread::VirtualSite))
{
if (numThreads_ > 1)
{
* mechanism to keep cycle counting working during the transition
* to task parallelism. */
int nthreads_pp = gmx_omp_nthreads_get(ModuleMultiThread::Nonbonded);
- int nthreads_pme = gmx_omp_nthreads_get(ModuleMultiThread::PME);
+ int nthreads_pme = gmx_omp_nthreads_get(ModuleMultiThread::Pme);
wallcycle_scale_by_num_threads(
wcycle, thisRankHasDuty(cr, DUTY_PME) && !thisRankHasDuty(cr, DUTY_PP), nthreads_pp, nthreads_pme);
auto cycle_sum(wallcycle_sum(cr, wcycle));
*/
const int numThreadsOnThisRank = thisRankHasDuty(cr, DUTY_PP)
? gmx_omp_nthreads_get(ModuleMultiThread::Nonbonded)
- : gmx_omp_nthreads_get(ModuleMultiThread::PME);
+ : gmx_omp_nthreads_get(ModuleMultiThread::Pme);
checkHardwareOversubscription(
numThreadsOnThisRank, cr->nodeid, *hwinfo_->hardwareTopology, physicalNodeComm, mdlog);
mdrunOptions.reproducible,
ewaldcoeff_q,
ewaldcoeff_lj,
- gmx_omp_nthreads_get(ModuleMultiThread::PME),
+ gmx_omp_nthreads_get(ModuleMultiThread::Pme),
pmeRunMode,
nullptr,
deviceContext,
{
GMX_RELEASE_ASSERT(pmedata, "pmedata was NULL while cr->duty was not DUTY_PP");
/* do PME only */
- walltime_accounting = walltime_accounting_init(gmx_omp_nthreads_get(ModuleMultiThread::PME));
+ walltime_accounting = walltime_accounting_init(gmx_omp_nthreads_get(ModuleMultiThread::Pme));
gmx_pmeonly(pmedata,
cr,
&nrnb,