Skip to content
Open
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
6 changes: 3 additions & 3 deletions include/ecuda/allocators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class host_allocator
/// cannot take advantage of it.
/// \return A pointer to the initial element in the block of storage.
///
pointer allocate( size_type n, std::allocator<void>::const_pointer hint = 0 )
pointer allocate( size_type n, const std::allocator<void>::value_type* hint = 0 )
{
pointer ptr = NULL;
const cudaError_t result = cudaHostAlloc( reinterpret_cast<void**>(&ptr), n*sizeof(T), Flags );
Expand Down Expand Up @@ -303,7 +303,7 @@ class device_allocator
/// cannot take advantage of it.
/// \return A pointer to the initial element in the block of storage.
///
__HOST__ pointer allocate( size_type n, std::allocator<void>::const_pointer hint = 0 )
__HOST__ pointer allocate( size_type n, const std::allocator<void>::value_type* hint = 0 )
{
pointer ptr = NULL;
const cudaError_t result = cudaMalloc( reinterpret_cast<void**>(&ptr), n*sizeof(T) );
Expand Down Expand Up @@ -461,7 +461,7 @@ class device_pitch_allocator
/// cannot take advantage of it.
/// \return A pointer to the initial element in the block of storage.
///
__HOST__ pointer allocate( size_type w, size_type h, std::allocator<void>::const_pointer hint = 0 )
__HOST__ pointer allocate( size_type w, size_type h, const std::allocator<void>::value_type* hint = 0 )
{
typename ecuda::add_pointer<value_type>::type ptr = NULL;
size_type pitch;
Expand Down