diff --git a/include/cuco/detail/static_multimap/device_view_impl.inl b/include/cuco/detail/static_multimap/device_view_impl.inl index 13e62d709..25aa0a63b 100644 --- a/include/cuco/detail/static_multimap/device_view_impl.inl +++ b/include/cuco/detail/static_multimap/device_view_impl.inl @@ -512,7 +512,8 @@ class static_multimap::device_view_ #endif // end CUCO_HAS_CUDA_BARRIER } else { for (auto index = lane_id; index < num_outputs; index += g.size()) { - *(output_begin + offset + index) = output_buffer[index]; + thrust::get<0>(*(output_begin + offset + index)) = output_buffer[index].first; + thrust::get<1>(*(output_begin + offset + index)) = output_buffer[index].second; } } }