/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2016,2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017,2018,2019, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
continue;
}
auto modeTargetsPmeOnGpus = (mode.first.find("PmeOnGpu") != std::string::npos);
- if (modeTargetsPmeOnGpus && !pme_gpu_supports_build(*hardwareInfo_, nullptr))
+ if (modeTargetsPmeOnGpus &&
+ !(pme_gpu_supports_build(nullptr) &&
+ pme_gpu_supports_hardware(*hardwareInfo_, nullptr)))
{
// This run mode will cause a fatal error from mdrun when
// it finds an unsuitable device, which is not something