Skip to content

Commit

Permalink
Fix query for constness constructing device_input_data_t
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Nov 12, 2024
1 parent e636d31 commit 3b68842
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ttg/ttg/device/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ namespace ttg::device {

struct device_input_data_t {
using impl_data_t = decltype(TTG_IMPL_NS::buffer_data(std::declval<ttg::Buffer<int>>()));
: impl_data(data), scope(scope), is_const(is_const), is_scratch(is_scratch)

device_input_data_t(impl_data_t data, ttg::scope scope, bool isconst, bool isscratch)
: impl_data(data), scope(scope), is_const(isconst), is_scratch(isscratch)
{ }
impl_data_t impl_data;
ttg::scope scope;
Expand All @@ -38,8 +40,8 @@ namespace ttg::device {
return std::array{
device_input_data_t{TTG_IMPL_NS::buffer_data(std::get<Is>(a.ties)),
std::get<Is>(a.ties).scope(),
ttg::meta::is_const_v<std::tuple_element<Is, arg_types>>,
ttg::meta::is_devicescratch_v<std::tuple_element<Is, arg_types>>}...};
ttg::meta::is_const_v<std::tuple_element_t<Is, arg_types>>,
ttg::meta::is_devicescratch_v<std::tuple_element_t<Is, arg_types>>}...};
}
} // namespace detail

Expand Down

0 comments on commit 3b68842

Please sign in to comment.