#include "grid.h"
#include "internal.h"
+namespace Nbnxm
+{
+
/*! \brief Returns whether CPU SIMD support exists for the given inputrec
*
* If the return value is FALSE and fplog/cr != NULL, prints a fallback
/* One 256-bit FMA per cycle makes 2xNN faster */
*kernel_type = nbnxnk4xN_SIMD_2xNN;
}
-#endif /* GMX_NBNXN_SIMD_2XNN && GMX_NBNXN_SIMD_4XN */
+#endif /* GMX_NBNXN_SIMD_2XNN && GMX_NBNXN_SIMD_4XN */
if (getenv("GMX_NBNXN_SIMD_4XN") != nullptr)
}
}
-#endif // GMX_SIMD
+#endif // GMX_SIMD
}
-const char *lookup_nbnxn_kernel_name(int kernel_type)
+const char *lookup_kernel_name(int kernel_type)
{
const char *returnvalue = nullptr;
switch (kernel_type)
{
GMX_LOG(mdlog.info).asParagraph().appendTextFormatted(
"Using %s %dx%d nonbonded short-range kernels",
- lookup_nbnxn_kernel_name(*kernel_type),
+ lookup_kernel_name(*kernel_type),
nbnxn_kernel_to_cluster_i_size(*kernel_type),
nbnxn_kernel_to_cluster_j_size(*kernel_type));
GMX_LOG(mdlog.warning).asParagraph().appendTextFormatted(
"WARNING: Using the slow %s kernels. This should\n"
"not happen during routine usage on supported platforms.",
- lookup_nbnxn_kernel_name(*kernel_type));
+ lookup_kernel_name(*kernel_type));
}
}
}
{
/* init the NxN GPU data; the last argument tells whether we'll have
* both local and non-local NB calculation on GPU */
- nbnxn_gpu_init(&nbv->gpu_nbv,
- deviceInfo,
- fr->ic,
- nbv->listParams.get(),
- nbv->nbat,
- cr->nodeid,
- (nbv->ngrp > 1));
+ gpu_init(&nbv->gpu_nbv,
+ deviceInfo,
+ fr->ic,
+ nbv->listParams.get(),
+ nbv->nbat,
+ cr->nodeid,
+ (nbv->ngrp > 1));
if ((env = getenv("GMX_NB_MIN_CI")) != nullptr)
{
}
else
{
- nbv->min_ci_balanced = nbnxn_gpu_min_ci_balanced(nbv->gpu_nbv);
+ nbv->min_ci_balanced = gpu_min_ci_balanced(nbv->gpu_nbv);
if (debug)
{
fprintf(debug, "Neighbor-list balancing parameter: %d (auto-adjusted to the number of GPU multi-processors)\n",
*nb_verlet = nbv;
}
+
+} // namespace Nbnxm