Unify and clarify a couple of macro definitions in NBNXM
[alexxy/gromacs.git] / src / gromacs / nbnxm / gpu_types_common.h
index 26cd3c165f633817e335b1aaa1d64a3432b99b6f..ebd5db9b343981ae46000064eefe8f58b3b58472 100644 (file)
 #    include "gromacs/gpu_utils/gpuregiontimer_sycl.h"
 #endif
 
+/*! \brief Macro definining default for the prune kernel's j4 processing concurrency.
+ *
+ *  The GMX_NBNXN_PRUNE_KERNEL_J4_CONCURRENCY macro allows compile-time override with the default value of 4.
+ */
+#ifndef GMX_NBNXN_PRUNE_KERNEL_J4_CONCURRENCY
+#    define GMX_NBNXN_PRUNE_KERNEL_J4_CONCURRENCY 4
+#endif
+//! Default for the prune kernel's j4 processing concurrency.
+static constexpr int c_pruneKernelJ4Concurrency = GMX_NBNXN_PRUNE_KERNEL_J4_CONCURRENCY;
+
 /** \internal
  * \brief Parameters required for the GPU nonbonded calculations.
  */