Points Conversions¶
Provides utilities for copying data between host and device points.
- Authors
Simone Balducci, Felice Pantaleo, Marco Rovere, Wahid Redjeb, Aurora Perego, Francesco Giacomini
-
namespace clue¶
Functions¶
-
template<concepts::queue TQueue, std::size_t Ndim, concepts::device TDev>
void copyToHost(TQueue &queue, PointsHost<Ndim> &h_points, const PointsDevice<Ndim, TDev> &d_points)¶ Copies the results of the clustering from the device points to the host points.
- Template Parameters:¶
- Parameters:¶
- TQueue &queue¶
The queue used for the device operations
- PointsHost<Ndim> &h_points¶
The points allocated on the host, where the clustering results will be saved
- const PointsDevice<Ndim, TDev> &d_points¶
The points allocated on the device, where the clustering has been run
-
template<concepts::queue TQueue, std::size_t Ndim, concepts::device TDev>
auto copyToHost(TQueue &queue, const PointsDevice<Ndim, TDev> &d_points)¶ Copies the results of the clustering from the device points to the host points.
-
template<concepts::queue TQueue, std::size_t Ndim, concepts::device TDev>
void copyToDevice(TQueue &queue, PointsDevice<Ndim, TDev> &d_points, const PointsHost<Ndim> &h_points)¶ Copies the coordinates and weights of the points from the host to the device.
-
template<concepts::queue TQueue, std::size_t Ndim, concepts::device TDev>
auto copyToDevice(TQueue &queue, const PointsHost<Ndim> &h_points)¶ Copies the coordinates and weights of the points from the host to the device.
-
template<concepts::queue TQueue, std::size_t Ndim, concepts::device TDev>