Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion include/gridtools/fn/backend/naive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*/
#pragma once

#include <cstddef>
#include <memory>

#include "../../common/functional.hpp"
#include "../../common/hymap.hpp"
#include "../../common/tuple_util.hpp"
Expand Down Expand Up @@ -90,7 +93,8 @@ namespace gridtools::fn::backend {

template <class ThreadPool>
inline auto tmp_allocator(naive_with_threadpool<ThreadPool> be) {
return std::make_tuple(be, sid::allocator(&std::make_unique<char[]>));
return std::make_tuple(
be, sid::allocator([](std::size_t n) { return std::unique_ptr<char[]>(new char[n]); }));
}

template <class ThreadPool, class Allocator, class Sizes, class T>
Expand Down
Loading