From ab8177cf8f4fd9573eb7ecc4e93c4bd97bbea10d Mon Sep 17 00:00:00 2001 From: "baptiste.legouix" Date: Mon, 27 Oct 2025 10:32:04 +0100 Subject: [PATCH] wip --- include/ecuda/allocators.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ecuda/allocators.hpp b/include/ecuda/allocators.hpp index 550576d..e3147e5 100644 --- a/include/ecuda/allocators.hpp +++ b/include/ecuda/allocators.hpp @@ -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::const_pointer hint = 0 ) + pointer allocate( size_type n, const std::allocator::value_type* hint = 0 ) { pointer ptr = NULL; const cudaError_t result = cudaHostAlloc( reinterpret_cast(&ptr), n*sizeof(T), Flags ); @@ -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::const_pointer hint = 0 ) + __HOST__ pointer allocate( size_type n, const std::allocator::value_type* hint = 0 ) { pointer ptr = NULL; const cudaError_t result = cudaMalloc( reinterpret_cast(&ptr), n*sizeof(T) ); @@ -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::const_pointer hint = 0 ) + __HOST__ pointer allocate( size_type w, size_type h, const std::allocator::value_type* hint = 0 ) { typename ecuda::add_pointer::type ptr = NULL; size_type pitch;