From 559bcc79d6b6005d573b5eabb19cd0fac82cfde9 Mon Sep 17 00:00:00 2001 From: Paul Taylor <178183+trxcllnt@users.noreply.github.com> Date: Fri, 24 May 2024 21:04:22 -0700 Subject: [PATCH] Fix building cuspatial with CCCL main (#1382) Similar to https://github.com/rapidsai/cudf/pull/15552, we are testing [building RAPIDS with CCCL's main branch](https://github.com/NVIDIA/cccl/pull/1667) to get ahead of any breaking changes. Authors: - Paul Taylor (https://github.com/trxcllnt) Approvers: - Mark Harris (https://github.com/harrism) URL: https://github.com/rapidsai/cuspatial/pull/1382 --- cpp/include/cuspatial/detail/index/construction/phase_2.cuh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/include/cuspatial/detail/index/construction/phase_2.cuh b/cpp/include/cuspatial/detail/index/construction/phase_2.cuh index 88c4947e0..df28ecca1 100644 --- a/cpp/include/cuspatial/detail/index/construction/phase_2.cuh +++ b/cpp/include/cuspatial/detail/index/construction/phase_2.cuh @@ -85,9 +85,9 @@ inline rmm::device_uvector flatten_point_keys( keys_and_levels + num_valid_nodes, flattened_keys.begin(), [last_level = max_depth - 1] __device__(auto const& val) { - bool is_parent{false}; - uint32_t key{}, level{}; - thrust::tie(key, level, is_parent) = val; + auto& key = thrust::get<0>(val); + auto& level = thrust::get<1>(val); + auto& is_parent = thrust::get<2>(val); // if this is a parent node, return max_key. otherwise // compute the key for one level up the tree. Leaf nodes // whose keys are zero will be removed in a subsequent