Skip to content

Commit

Permalink
deque: Fix compilation error when calling device_range()
Browse files Browse the repository at this point in the history
  • Loading branch information
stotko committed Jan 8, 2020
1 parent c28b367 commit 1431532
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/stdgpu/deque.cuh
Expand Up @@ -48,6 +48,15 @@
namespace stdgpu
{

namespace detail
{

template <typename T>
struct deque_collect_positions;

} // namespace detail


/**
* \brief A generic container similar to std::deque on the GPU
* \tparam T The type of the stored elements
Expand Down Expand Up @@ -305,6 +314,9 @@ class deque

private:

template <typename T2>
friend class detail::deque_collect_positions;

STDGPU_DEVICE_ONLY bool
occupied(const index_t n) const;

Expand Down

0 comments on commit 1431532

Please sign in to comment.