Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / mdrunutility / threadaffinity.h
index f5b890660f56ad501b3b8a82154031a8340804a8..820c93a9019efad8dcf1f165e0b19e0daeb6c657 100644 (file)
@@ -59,22 +59,22 @@ class PhysicalNodeCommunicator;
 
 class IThreadAffinityAccess
 {
-    public:
-        virtual bool isThreadAffinitySupported() const        = 0;
-        virtual bool setCurrentThreadAffinityToCore(int core) = 0;
+public:
+    virtual bool isThreadAffinitySupported() const        = 0;
+    virtual bool setCurrentThreadAffinityToCore(int core) = 0;
 
-    protected:
-        virtual ~IThreadAffinityAccess();
+protected:
+    virtual ~IThreadAffinityAccess();
 };
 
 } // namespace gmx
 
 /*! \brief Communicates within physical nodes to discover the
  * distribution of threads over ranks. */
-void analyzeThreadsOnThisNode(const gmx::PhysicalNodeCommunicator &physicalNodeComm,
+void analyzeThreadsOnThisNode(const gmx::PhysicalNodeCommunicatorphysicalNodeComm,
                               int                                  numThreadsOnThisRank,
-                              int                                 *numThreadsOnThisNode,
-                              int                                 *intraNodeThreadOffset);
+                              int*                                 numThreadsOnThisNode,
+                              int*                                 intraNodeThreadOffset);
 
 /*! \brief
  * Sets the thread affinity using the requested setting stored in hw_opt.
@@ -91,15 +91,14 @@ void analyzeThreadsOnThisNode(const gmx::PhysicalNodeCommunicator &physicalNodeC
  *   in the set of all the threads of all MPI ranks within a node (ordered by MPI rank ID).
  * \param[in]  affinityAccess         Interface for low-level access to affinity details.
  */
-void
-gmx_set_thread_affinity(const gmx::MDLogger         &mdlog,
-                        const t_commrec             *cr,
-                        const gmx_hw_opt_t          *hw_opt,
-                        const gmx::HardwareTopology &hwTop,
-                        int                          numThreadsOnThisRank,
-                        int                          numThreadsOnThisNode,
-                        int                          intraNodeThreadOffset,
-                        gmx::IThreadAffinityAccess  *affinityAccess);
+void gmx_set_thread_affinity(const gmx::MDLogger&         mdlog,
+                             const t_commrec*             cr,
+                             const gmx_hw_opt_t*          hw_opt,
+                             const gmx::HardwareTopology& hwTop,
+                             int                          numThreadsOnThisRank,
+                             int                          numThreadsOnThisNode,
+                             int                          intraNodeThreadOffset,
+                             gmx::IThreadAffinityAccess*  affinityAccess);
 
 /*! \brief
  * Checks the process affinity mask and if it is found to be non-zero,
@@ -115,9 +114,9 @@ gmx_set_thread_affinity(const gmx::MDLogger         &mdlog,
  * With bAfterOpenmpInit false, it will also detect whether OpenMP environment
  * variables for setting the affinity are set.
  */
-void
-gmx_check_thread_affinity_set(const gmx::MDLogger &mdlog,
-                              gmx_hw_opt_t *hw_opt, int ncpus,
-                              gmx_bool bAfterOpenmpInit);
+void gmx_check_thread_affinity_set(const gmx::MDLogger& mdlog,
+                                   gmx_hw_opt_t*        hw_opt,
+                                   int                  ncpus,
+                                   gmx_bool             bAfterOpenmpInit);
 
 #endif