const PairlistParams& listParams,
const nbnxn_atomdata_t* nbat,
int /*rank*/,
- gmx_bool bLocalAndNonlocal)
+ bool bLocalAndNonlocal)
{
cudaError_t stat;
// TODO: this needs to be moved later because conditional wait could brake timing
// with a future OpenCL implementation, but with CUDA timing is anyway disabled
// in all cases where we skip the wait.
- gpu_accumulate_timings(nb->timings, nb->timers, nb->plist[iLocality], aloc, stepWork,
- nb->bDoTime != 0);
+ gpu_accumulate_timings(nb->timings, nb->timers, nb->plist[iLocality], aloc, stepWork, nb->bDoTime);
if (stepWork.computeEnergy || stepWork.computeVirial)
{
const nbnxn_atomdata_t gmx_unused* nbat,
int gmx_unused rank,
/* true if both local and non-local are done on GPU */
- gmx_bool gmx_unused bLocalAndNonlocal) GPU_FUNC_TERM_WITH_RETURN(nullptr);
+ bool gmx_unused bLocalAndNonlocal) GPU_FUNC_TERM_WITH_RETURN(nullptr);
/** Initializes pair-list data for GPU, called at every pair search step. */
GPU_FUNC_QUALIFIER
cl_timers_t* t = nb->timers;
cl_command_queue stream = nb->stream[iloc];
- bool bDoTime = (nb->bDoTime) != 0;
+ bool bDoTime = nb->bDoTime;
/* Don't launch the non-local H2D copy if there is no dependent
work to do: neither non-local nor other (e.g. bonded) work
cl_timers_t* t = nb->timers;
cl_command_queue stream = nb->stream[iloc];
- bool bDoTime = (nb->bDoTime) != 0;
+ bool bDoTime = nb->bDoTime;
cl_nbparam_params_t nbparams_params;
cl_plist_t* plist = nb->plist[iloc];
cl_timers_t* t = nb->timers;
cl_command_queue stream = nb->stream[iloc];
- bool bDoTime = nb->bDoTime == CL_TRUE;
+ bool bDoTime = nb->bDoTime;
if (plist->haveFreshList)
{
cl_atomdata_t* adat = nb->atdat;
cl_timers_t* t = nb->timers;
- bool bDoTime = nb->bDoTime == CL_TRUE;
+ bool bDoTime = nb->bDoTime;
cl_command_queue stream = nb->stream[iloc];
/* don't launch non-local copy-back if there was no non-local work to do */
const PairlistParams& listParams,
const nbnxn_atomdata_t* nbat,
const int rank,
- const gmx_bool bLocalAndNonlocal)
+ const bool bLocalAndNonlocal)
{
cl_int cl_error;
cl_command_queue_properties queue_properties;
snew(nb->plist[InteractionLocality::NonLocal], 1);
}
- nb->bUseTwoStreams = static_cast<cl_bool>(bLocalAndNonlocal);
+ nb->bUseTwoStreams = bLocalAndNonlocal;
nb->timers = new cl_timers_t();
snew(nb->timings, 1);
init_plist(nb->plist[InteractionLocality::Local]);
/* OpenCL timing disabled if GMX_DISABLE_GPU_TIMING is defined. */
- nb->bDoTime = static_cast<cl_bool>(getenv("GMX_DISABLE_GPU_TIMING") == nullptr);
+ nb->bDoTime = (getenv("GMX_DISABLE_GPU_TIMING") == nullptr);
/* Create queues only after bDoTime has been initialized */
if (nb->bDoTime)
// Timing accumulation should happen only if there was work to do
// because getLastRangeTime() gets skipped with empty lists later
// which leads to the counter not being reset.
- bool bDoTime = ((nb->bDoTime == CL_TRUE) && !h_plist->sci.empty());
+ bool bDoTime = (nb->bDoTime && !h_plist->sci.empty());
cl_command_queue stream = nb->stream[iloc];
cl_plist_t* d_plist = nb->plist[iloc];
cl_int cl_error;
int nalloc, natoms;
bool realloced;
- bool bDoTime = nb->bDoTime == CL_TRUE;
+ bool bDoTime = nb->bDoTime;
cl_timers_t* timers = nb->timers;
cl_atomdata_t* d_atdat = nb->atdat;
cl_command_queue ls = nb->stream[InteractionLocality::Local];