@@ -96,7 +96,7 @@ class fixed_pinned_pool_memory_resource {
9696 void deallocate_async (void * ptr,
9797 std::size_t bytes,
9898 std::size_t alignment,
99- cuda::stream_ref stream)
99+ cuda::stream_ref stream) noexcept
100100 {
101101 if (bytes <= pool_size_ && ptr >= pool_begin_ && ptr < pool_end_) {
102102 pool_->deallocate_async (ptr, bytes, alignment, stream);
@@ -105,14 +105,14 @@ class fixed_pinned_pool_memory_resource {
105105 }
106106 }
107107
108- void deallocate_async (void * ptr, std::size_t bytes, cuda::stream_ref stream)
108+ void deallocate_async (void * ptr, std::size_t bytes, cuda::stream_ref stream) noexcept
109109 {
110110 return deallocate_async (ptr, bytes, rmm::RMM_DEFAULT_HOST_ALIGNMENT, stream);
111111 }
112112
113113 void deallocate (void * ptr,
114114 std::size_t bytes,
115- std::size_t alignment = rmm::RMM_DEFAULT_HOST_ALIGNMENT)
115+ std::size_t alignment = rmm::RMM_DEFAULT_HOST_ALIGNMENT) noexcept
116116 {
117117 deallocate_async (ptr, bytes, alignment, stream_);
118118#if CCCL_MAJOR_VERSION > 3 || (CCCL_MAJOR_VERSION == 3 && CCCL_MINOR_VERSION >= 1)
@@ -156,7 +156,7 @@ class fixed_pinned_pool_memory_resource {
156156 return this ->allocate (bytes, alignment);
157157 }
158158
159- void deallocate_sync (void * ptr, std::size_t bytes, std::size_t alignment)
159+ void deallocate_sync (void * ptr, std::size_t bytes, std::size_t alignment) noexcept
160160 {
161161 return this ->deallocate (ptr, bytes, alignment);
162162 }
@@ -166,7 +166,10 @@ class fixed_pinned_pool_memory_resource {
166166 return this ->allocate_async (bytes, alignment, stream);
167167 }
168168
169- void deallocate (rmm::cuda_stream_view stream, void * ptr, std::size_t bytes, std::size_t alignment)
169+ void deallocate (rmm::cuda_stream_view stream,
170+ void * ptr,
171+ std::size_t bytes,
172+ std::size_t alignment) noexcept
170173 {
171174 return this ->deallocate_async (ptr, bytes, alignment, stream);
172175 }
@@ -260,7 +263,7 @@ class new_delete_memory_resource {
260263
261264 void deallocate (void * ptr,
262265 std::size_t bytes,
263- std::size_t alignment = rmm::RMM_DEFAULT_HOST_ALIGNMENT)
266+ std::size_t alignment = rmm::RMM_DEFAULT_HOST_ALIGNMENT) noexcept
264267 {
265268 rmm::detail::aligned_host_deallocate (
266269 ptr, bytes, alignment, [](void * ptr) { ::operator delete (ptr); });
@@ -269,12 +272,12 @@ class new_delete_memory_resource {
269272 void deallocate_async (void * ptr,
270273 std::size_t bytes,
271274 std::size_t alignment,
272- [[maybe_unused]] cuda::stream_ref stream)
275+ [[maybe_unused]] cuda::stream_ref stream) noexcept
273276 {
274277 deallocate (ptr, bytes, alignment);
275278 }
276279
277- void deallocate_async (void * ptr, std::size_t bytes, cuda::stream_ref stream)
280+ void deallocate_async (void * ptr, std::size_t bytes, cuda::stream_ref stream) noexcept
278281 {
279282 deallocate (ptr, bytes, rmm::RMM_DEFAULT_HOST_ALIGNMENT);
280283 }
@@ -294,7 +297,7 @@ class new_delete_memory_resource {
294297 return this ->allocate (bytes, alignment);
295298 }
296299
297- void deallocate_sync (void * ptr, std::size_t bytes, std::size_t alignment)
300+ void deallocate_sync (void * ptr, std::size_t bytes, std::size_t alignment) noexcept
298301 {
299302 return this ->deallocate (ptr, bytes, alignment);
300303 }
@@ -304,7 +307,10 @@ class new_delete_memory_resource {
304307 return this ->allocate_async (bytes, alignment, stream);
305308 }
306309
307- void deallocate (rmm::cuda_stream_view stream, void * ptr, std::size_t bytes, std::size_t alignment)
310+ void deallocate (rmm::cuda_stream_view stream,
311+ void * ptr,
312+ std::size_t bytes,
313+ std::size_t alignment) noexcept
308314 {
309315 return this ->deallocate_async (ptr, bytes, alignment, stream);
310316 }
0 commit comments