Don't use fah_fsync
[alexxy/gromacs.git] / src / external / thread_mpi / include / thread_mpi / wait.h
index 47e2244a9b0cd40a40b59a7970b3e4ca42ee535d..ae2942291900dc945354e0a287e0b12d53cc5ca2 100644 (file)
 
 #if TMPI_WAIT_FOR_NO_ONE
 
-#if !(defined( _WIN32 ) || defined( _WIN64 ) )
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if GMX_FAHCORE
+// This lets F@H throttle CPU usage
+#define TMPI_YIELD_WAIT_DATA
+#define TMPI_YIELD_WAIT_DATA_INIT(data)
+#define TMPI_YIELD_WAIT(data) fcYieldWait()
+
+#elif !(defined( _WIN32 ) || defined( _WIN64 ) )
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif