CPPuddle
Loading...
Searching...
No Matches
sycl_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 SYCL_BUFFER_UTIL_HPP
11#define SYCL_BUFFER_UTIL_HPP
12
14
15namespace recycler {
16
17namespace detail {
18
19template <class T>
21 [[deprecated("Use from header sycl_recycling_allocators.hpp instead")]] =
22 cppuddle::memory_recycling::detail::sycl_host_default_allocator<T>;
23
24template <class T>
26 [[deprecated("Use from header sycl_recycling_allocators.hpp instead")]] =
27 cppuddle::memory_recycling::detail::sycl_device_default_allocator<T>;
28
29} // end namespace detail
30
31template <typename T, std::enable_if_t<std::is_trivial<T>::value, int> = 0>
33 [[deprecated("Use from header sycl_recycling_allocators.hpp instead")]] =
35
36template <typename T, std::enable_if_t<std::is_trivial<T>::value, int> = 0>
38 [[deprecated("Use from header sycl_recycling_allocators.hpp instead")]] =
40
41} // end namespace recycler
42#endif
detail::aggressive_recycle_allocator< T, detail::sycl_host_default_allocator< T > > recycle_allocator_sycl_host
Recycling allocator for SYCL pinned host memory (default device).
Definition sycl_recycling_allocators.hpp:26
detail::recycle_allocator< T, detail::sycl_device_default_allocator< T > > recycle_allocator_sycl_device
Recycling allocator for SYCL device memory (default device).
Definition sycl_recycling_allocators.hpp:30
Definition buffer_manager.hpp:21
Deprecated LEGACY namespace. Kept around for compatiblity with old code for now.
Definition aligned_buffer_util.hpp:15
Underlying allocator for SYCL device memory (using the sycl::default_selector{}).
Definition sycl_underlying_allocators.hpp:44
Underlying host allocator for SYCL pinned memory (using the sycl::default_selector{}...
Definition sycl_underlying_allocators.hpp:17