CPPuddle
Loading...
Searching...
No Matches
cuda_buffer_util.hpp
Go to the documentation of this file.
1// Copyright (c) 2024 Gregor Daiß
2//
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6// DEPRECATED: Do not use this file
7// Only intended to make the old interface work a bit longer.
8// See deprecation warnings for the new location of the functionality
9
10#ifndef CUDA_BUFFER_UTIL_HPP
11#define CUDA_BUFFER_UTIL_HPP
12
13#include "buffer_manager.hpp"
16
17namespace recycler {
18namespace detail {
19
20template <class T>
22 [[deprecated("Use from header cuda_recycling_allocators.hpp instead")]] =
24
25template <class T>
27 [[deprecated("Use from header cuda_recycling_allocators.hpp instead")]] =
29
30} // end namespace detail
31
32template <typename T, std::enable_if_t<std::is_trivial<T>::value, int> = 0>
34 [[deprecated("Use from header cuda_recycling_allocators.hpp instead")]] =
36
37template <typename T, std::enable_if_t<std::is_trivial<T>::value, int> = 0>
39 [[deprecated("Use from header cuda_recycling_allocators.hpp instead")]] =
41
42template <typename T, std::enable_if_t<std::is_trivial<T>::value, int> = 0>
44 [[deprecated("Use from header cuda_recycling_allocators.hpp instead")]] =
46
47template <typename T, typename Host_Allocator,
48 std::enable_if_t<std::is_trivial<T>::value, int> = 0>
50 [[deprecated("Use from header cuda_recycling_allocators.hpp instead")]] =
52
53} // end namespace recycler
54#endif
Contains a RAII wrappers for CUDA device buffers. Intended to be used with the recycling allocators b...
Deprecated LEGACY namespace. Kept around for compatiblity with old code for now.
Definition aligned_buffer_util.hpp:15
RAII wrapper for CUDA device memory using a passed aggregated allocator (which ideally should be an a...
Definition cuda_recycling_device_buffer.hpp:48
RAII wrapper for CUDA device memory (ideally used with a recycling allocator)
Definition cuda_recycling_device_buffer.hpp:23
Recycles not only allocations but also the contents of a buffer.
Definition buffer_management.hpp:840
Underlying allocator for CUDA device memory.
Definition cuda_underlying_allocators.hpp:59
Underlying host allocator for CUDA pinned memory.
Definition cuda_underlying_allocators.hpp:17
Definition buffer_management.hpp:770