#ifndef GMX_EWALD_PME_H
#define GMX_EWALD_PME_H
-#include "config.h"
-
#include <string>
#include "gromacs/gpu_utils/gpu_macros.h"
*/
inline bool pme_gpu_task_enabled(const gmx_pme_t *pme)
{
- return (GMX_GPU != GMX_GPU_NONE) && (pme != nullptr) && (pme_run_mode(pme) != PmeRunMode::CPU);
+ return (pme != nullptr) && (pme_run_mode(pme) != PmeRunMode::CPU);
}
// The following functions are all the PME GPU entry points,
bUseGPU = fr->nbv->bUseGPU;
bUseOrEmulGPU = bUseGPU || (fr->nbv->emulateGpu == EmulateGpuNonbonded::Yes);
- const auto pmeRunMode = ((GMX_GPU == GMX_GPU_NONE) || fr->pmedata == nullptr) ? PmeRunMode::CPU : pme_run_mode(fr->pmedata);
+ const auto pmeRunMode = fr->pmedata ? pme_run_mode(fr->pmedata) : PmeRunMode::CPU;
// TODO slim this conditional down - inputrec and duty checks should mean the same in proper code!
const bool useGpuPme = EEL_PME(fr->ic->eeltype) && thisRankHasDuty(cr, DUTY_PME) &&
((pmeRunMode == PmeRunMode::GPU) || (pmeRunMode == PmeRunMode::Mixed));