/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,2016,2017,2018,2019, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
}
/* HtoD x, q */
- cu_copy_H2D_async(adat->xq + adat_begin, nbatom->x + adat_begin * 4,
+ cu_copy_H2D_async(adat->xq + adat_begin,
+ static_cast<const void *>(nbatom->x().data() + adat_begin * 4),
adat_len * sizeof(*adat->xq), stream);
if (bDoTime)
}
void nbnxn_gpu_launch_cpyback(gmx_nbnxn_cuda_t *nb,
- const nbnxn_atomdata_t *nbatom,
+ nbnxn_atomdata_t *nbatom,
int flags,
int aloc,
bool haveOtherWork)
}
/* DtoH f */
- cu_copy_D2H_async(nbatom->out[0].f + adat_begin * 3, adat->f + adat_begin,
+ cu_copy_D2H_async(nbatom->out[0].f.data() + adat_begin * 3, adat->f + adat_begin,
(adat_len)*sizeof(*adat->f), stream);
/* After the non-local D2H is launched the nonlocal_done event can be