Fix dependencies on config.h for typedefs.h
[alexxy/gromacs.git] / src / programs / mdrun / runner.c
index 96d4f2f06c2dee625ac8a7513586d05c137b6b96..30044a2d193bb8897ae3ef5934b7c788ff04d63f 100644 (file)
@@ -60,6 +60,7 @@
 #include "pme.h"
 #include "mdatoms.h"
 #include "repl_ex.h"
+#include "deform.h"
 #include "qmmm.h"
 #include "domdec.h"
 #include "coulomb.h"
@@ -109,6 +110,12 @@ tMPI_Thread_mutex_t deform_init_box_mutex = TMPI_THREAD_MUTEX_INITIALIZER;
 
 
 #ifdef GMX_THREAD_MPI
+/* The minimum number of atoms per tMPI thread. With fewer atoms than this,
+ * the number of threads will get lowered.
+ */
+#define MIN_ATOMS_PER_MPI_THREAD    90
+#define MIN_ATOMS_PER_GPU           900
+
 struct mdrunner_arglist
 {
     gmx_hw_opt_t    hw_opt;