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

ranges: Fix compilation 64-bit index type #157

Merged
merged 1 commit into from
May 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/stdgpu/impl/ranges_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ device_range<T>::device_range(T* p,
}


#if STDGPU_USE_32_BIT_INDEX
template <typename T>
STDGPU_HOST_DEVICE
device_range<T>::device_range(T* p,
Expand All @@ -52,6 +53,7 @@ device_range<T>::device_range(T* p,
{

}
#endif


template <typename T>
Expand Down Expand Up @@ -143,6 +145,7 @@ host_range<T>::host_range(T* p,
}


#if STDGPU_USE_32_BIT_INDEX
template <typename T>
STDGPU_HOST_DEVICE
host_range<T>::host_range(T* p,
Expand All @@ -152,6 +155,7 @@ host_range<T>::host_range(T* p,
{

}
#endif


template <typename T>
Expand Down
7 changes: 7 additions & 0 deletions src/stdgpu/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include <stdgpu/iterator.h>
#include <stdgpu/platform.h>

// For compatibility only. Remove this along with deprecated constructors
#include <stdgpu/config.h>



namespace stdgpu
Expand Down Expand Up @@ -65,6 +68,7 @@ class device_range
device_range(T* p,
index64_t n);

#if STDGPU_USE_32_BIT_INDEX
/**
* \deprecated Replaced by device_range(T*, index64_t)
* \brief Constructor
Expand All @@ -75,6 +79,7 @@ class device_range
STDGPU_HOST_DEVICE
device_range(T* p,
index_t n);
#endif

/**
* \brief Constructor
Expand Down Expand Up @@ -179,6 +184,7 @@ class host_range
host_range(T* p,
index64_t n);

#if STDGPU_USE_32_BIT_INDEX
/**
* \deprecated Replaced by host_range(T*, index64_t)
* \brief Constructor
Expand All @@ -189,6 +195,7 @@ class host_range
STDGPU_HOST_DEVICE
host_range(T* p,
index_t n);
#endif

/**
* \brief Constructor
Expand Down