#ifndef GMX_OMP_H
#define GMX_OMP_H
+#include "types/commrec.h"
+#include "mdrun.h"
+
/* This module defines wrappers for OpenMP API functions and enables compiling
* code even when OpenMP is turned off in the build system.
* Therefore, OpenMP API functions should always be used through these wrappers
* by a num_threads clause. Acts as a wrapper for omp_get_max_threads(void). */
void gmx_omp_set_num_threads(int num_threads);
+/*! Check for externally set thread affinity to avoid conflicts with GROMACS internal setting. */
+void gmx_omp_check_thread_affinity(FILE *fplog, const t_commrec *cr,
+ gmx_hw_opt_t *hw_opt);
+
#endif /* GMX_OMP_H */