Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / hardware / hw_info.h
index 15ebfa788e99d036148b5bcc0b85b965761b8f9d..caf19a5c6e8bf7278a3f278b8eba8e2c82df60f0 100644 (file)
@@ -46,7 +46,7 @@ namespace gmx
 {
 class CpuInfo;
 class HardwareTopology;
-} // namespace
+} // namespace gmx
 
 /* Hardware information structure with CPU and GPU information.
  * It is initialized by gmx_detect_hardware().
@@ -70,27 +70,27 @@ struct gmx_hw_info_t
     int nthreads_hw_avail;
 
 
-    std::unique_ptr<gmx::CpuInfo>          cpuInfo;           /* Information about CPU capabilities */
-    std::unique_ptr<gmx::HardwareTopology> hardwareTopology;  /* Information about hardware topology */
+    std::unique_ptr<gmx::CpuInfo>          cpuInfo; /* Information about CPU capabilities */
+    std::unique_ptr<gmx::HardwareTopology> hardwareTopology; /* Information about hardware topology */
 
 
     /* Data reduced through MPI over all physical nodes */
-    int                 nphysicalnode;       /* Number of physical nodes */
-    int                 ncore_tot;           /* Sum of #cores over all nodes, can be 0 */
-    int                 ncore_min;           /* Min #cores over all nodes */
-    int                 ncore_max;           /* Max #cores over all nodes */
-    int                 nhwthread_tot;       /* Sum of #hwthreads over all nodes */
-    int                 nhwthread_min;       /* Min #hwthreads over all nodes */
-    int                 nhwthread_max;       /* Max #hwthreads over all nodes */
-    int                 ngpu_compatible_tot; /* Sum of #GPUs over all nodes */
-    int                 ngpu_compatible_min; /* Min #GPUs over all nodes */
-    int                 ngpu_compatible_max; /* Max #GPUs over all nodes */
-
-    int                 simd_suggest_min;    /* Highest SIMD instruction set supported by all ranks */
-    int                 simd_suggest_max;    /* Highest SIMD instruction set supported by at least one rank */
-
-    gmx_bool            bIdenticalGPUs;      /* TRUE if all ranks have the same type(s) and order of GPUs */
-    bool                haveAmdZen1Cpu;      /* TRUE when at least one CPU in any of the nodes is AMD Zen of the first generation */
+    int nphysicalnode;       /* Number of physical nodes */
+    int ncore_tot;           /* Sum of #cores over all nodes, can be 0 */
+    int ncore_min;           /* Min #cores over all nodes */
+    int ncore_max;           /* Max #cores over all nodes */
+    int nhwthread_tot;       /* Sum of #hwthreads over all nodes */
+    int nhwthread_min;       /* Min #hwthreads over all nodes */
+    int nhwthread_max;       /* Max #hwthreads over all nodes */
+    int ngpu_compatible_tot; /* Sum of #GPUs over all nodes */
+    int ngpu_compatible_min; /* Min #GPUs over all nodes */
+    int ngpu_compatible_max; /* Max #GPUs over all nodes */
+
+    int simd_suggest_min; /* Highest SIMD instruction set supported by all ranks */
+    int simd_suggest_max; /* Highest SIMD instruction set supported by at least one rank */
+
+    gmx_bool bIdenticalGPUs; /* TRUE if all ranks have the same type(s) and order of GPUs */
+    bool     haveAmdZen1Cpu; /* TRUE when at least one CPU in any of the nodes is AMD Zen of the first generation */
 };
 
 
@@ -116,25 +116,25 @@ enum class ThreadAffinity
 struct gmx_hw_opt_t
 {
     //! Total number of threads requested (thread-MPI + OpenMP).
-    int            nthreads_tot = 0;
+    int nthreads_tot = 0;
     //! Number of thread-MPI threads requested.
-    int            nthreads_tmpi = 0;
+    int nthreads_tmpi = 0;
     //! Number of OpenMP threads requested.
-    int            nthreads_omp = 0;
+    int nthreads_omp = 0;
     //! Number of OpenMP threads to use on PME_only ranks.
-    int            nthreads_omp_pme = 0;
+    int nthreads_omp_pme = 0;
     //! Thread affinity switch, see enum above.
     ThreadAffinity threadAffinity = ThreadAffinity::Select;
     //! Logical core pinning stride.
-    int            core_pinning_stride = 0;
+    int core_pinning_stride = 0;
     //! Logical core pinning offset.
-    int            core_pinning_offset = 0;
+    int core_pinning_offset = 0;
     //! Empty, or a string provided by the user declaring (unique) GPU IDs available for mdrun to use.
-    std::string    gpuIdsAvailable = "";
+    std::string gpuIdsAvailable = "";
     //! Empty, or a string provided by the user mapping GPU tasks to devices.
-    std::string    userGpuTaskAssignment = "";
+    std::string userGpuTaskAssignment = "";
     //! Tells whether mdrun is free to choose the total number of threads (by choosing the number of OpenMP and/or thread-MPI threads).
-    bool           totNumThreadsIsAuto;
+    bool totNumThreadsIsAuto;
 };
 
 #endif