Skip to content

Commit

Permalink
Apply GitHUB clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kopienko committed Mar 22, 2024
1 parent e7ec4fc commit fb97fa1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions include/oneapi/dpl/pstl/execution_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,21 +164,24 @@ inline constexpr bool __is_host_dispatch_tag_v =
//------------------------------------------------------------------------

template <typename _T, typename _IsVector>
constexpr decltype(auto) __get_buffer_allocator(oneapi::dpl::__internal::__serial_tag<_IsVector>)
constexpr decltype(auto)
__get_buffer_allocator(oneapi::dpl::__internal::__serial_tag<_IsVector>)
{
return ::std::allocator<_T>{};
}

template <typename _T, typename _IsVector>
constexpr decltype(auto) __get_buffer_allocator(oneapi::dpl::__internal::__parallel_tag<_IsVector>)
constexpr decltype(auto)
__get_buffer_allocator(oneapi::dpl::__internal::__parallel_tag<_IsVector>)
{
using __backend_tag = typename oneapi::dpl::__internal::__parallel_tag<_IsVector>::__backend_tag;

return oneapi::dpl::__internal::__get_buffer_allocator<_T>(__backend_tag{});
}

template <typename _T>
constexpr decltype(auto) __get_buffer_allocator(oneapi::dpl::__internal::__parallel_forward_tag)
constexpr decltype(auto)
__get_buffer_allocator(oneapi::dpl::__internal::__parallel_forward_tag)
{
using __backend_tag = typename oneapi::dpl::__internal::__parallel_forward_tag::__backend_tag;

Expand Down
3 changes: 2 additions & 1 deletion include/oneapi/dpl/pstl/omp/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ namespace __internal
// Buffer allocators
//------------------------------------------------------------------------
template <typename _T>
constexpr decltype(auto) __get_buffer_allocator(oneapi::dpl::__internal::__omp_backend_tag)
constexpr decltype(auto)
__get_buffer_allocator(oneapi::dpl::__internal::__omp_backend_tag)
{
return ::std::allocator<_T>{};
}
Expand Down
5 changes: 3 additions & 2 deletions include/oneapi/dpl/pstl/parallel_backend_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ namespace dpl
namespace __internal
{
template <typename _T>
constexpr decltype(auto) __get_buffer_allocator(oneapi::dpl::__internal::__serial_backend_tag)
constexpr decltype(auto)
__get_buffer_allocator(oneapi::dpl::__internal::__serial_backend_tag)
{
return ::std::allocator<_T>{};
}
};
}; // namespace __internal

namespace __serial_backend
{
Expand Down
3 changes: 2 additions & 1 deletion include/oneapi/dpl/pstl/parallel_backend_tbb.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ namespace __internal
// Buffer allocators
//------------------------------------------------------------------------
template <typename _T>
constexpr decltype(auto) __get_buffer_allocator(oneapi::dpl::__internal::__tbb_backend_tag)
constexpr decltype(auto)
__get_buffer_allocator(oneapi::dpl::__internal::__tbb_backend_tag)
{
// Some of our algorithms need to start with raw memory buffer,
// not an initialize array, because initialization/destruction
Expand Down

0 comments on commit fb97fa1

Please sign in to comment.