Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deque: Fix compilation error when calling device_range() #67

Merged
merged 1 commit into from Jan 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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