Skip to content

Commit

Permalink
Use std::pair as the return type in host API
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Oct 28, 2024
1 parent 53cc381 commit 344e4ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/cuco/detail/static_set/static_set.inl
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ template <class Key,
class Allocator,
class Storage>
template <typename InputIt, typename OutputIt1, typename OutputIt2>
cuda::std::pair<OutputIt1, OutputIt2>
std::pair<OutputIt1, OutputIt2>
static_set<Key, Extent, Scope, KeyEqual, ProbingScheme, Allocator, Storage>::retrieve(
InputIt first,
InputIt last,
Expand Down
12 changes: 6 additions & 6 deletions include/cuco/static_set.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <cuco/utility/traits.hpp>

#include <cuda/atomic>
#include <cuda/std/utility>
#include <cuda/stream_ref>
#include <thrust/functional.h>

Expand All @@ -38,6 +37,7 @@

#include <cstddef>
#include <type_traits>
#include <utility>

namespace cuco {
/**
Expand Down Expand Up @@ -617,11 +617,11 @@ class static_set {
* @return The iterator indicating the last valid pair in the output
*/
template <typename InputIt, typename OutputIt1, typename OutputIt2>
cuda::std::pair<OutputIt1, OutputIt2> retrieve(InputIt first,
InputIt last,
OutputIt1 output_probe,
OutputIt2 output_match,
cuda::stream_ref stream = {}) const;
std::pair<OutputIt1, OutputIt2> retrieve(InputIt first,
InputIt last,
OutputIt1 output_probe,
OutputIt2 output_match,
cuda::stream_ref stream = {}) const;

/**
* @brief Asynchronously retrieves the matched key in the set corresponding to all probe keys in
Expand Down

0 comments on commit 344e4ea

Please sign in to comment.