Gromacs  2018.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
nbnxn_gpu_common_utils.h File Reference
#include "config.h"
#include "nbnxn_cuda/nbnxn_cuda_types.h"
#include "nbnxn_ocl/nbnxn_ocl_types.h"
+ Include dependency graph for nbnxn_gpu_common_utils.h:
+ This graph shows which files directly or indirectly include this file:

Description

Implements common util routines for different NBNXN GPU implementations.

Author
Aleksei Iupinov a.yup.nosp@m.inov.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Functions

static bool canSkipWork (const gmx_nbnxn_gpu_t *nb, int iloc)
 An early return condition for empty NB GPU workloads. More...
 

Function Documentation

static bool canSkipWork ( const gmx_nbnxn_gpu_t nb,
int  iloc 
)
inlinestatic

An early return condition for empty NB GPU workloads.

This is currently used for non-local kernels/transfers only. Skipping the local kernel is more complicated, since the local part of the force array also depends on the non-local kernel. The skip of the local kernel is taken care of separately.