Skip to content

Commit

Permalink
Construct device points with std::make_optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldu committed Jan 28, 2025
1 parent d48e818 commit edb8138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/CLUEstering/CLUEstering.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE_CLUE {
const KernelType& kernel,
Queue queue_,
std::size_t block_size) {
d_points = PointsAlpaka<Ndim>(queue_, h_points.nPoints());
d_points = std::make_optional<PointsAlpaka<Ndim>>(queue_, h_points.nPoints());
auto& dev_points = *d_points;
make_clusters(h_points, dev_points, kernel, queue_, block_size);
}
Expand Down

0 comments on commit edb8138

Please sign in to comment.