Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fthaler committed Sep 25, 2024
1 parent 304878d commit a83027f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/gridtools/fn/backend/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ namespace gridtools::fn::backend {
constexpr GT_FUNCTION auto make_unrolled_loops(Sizes const &sizes, UnrollFactors) {
return tuple_util::host_device::fold(
[&](auto outer, auto dim) {
using unroll_factor = std::remove_reference_t<decltype(host_device::at_key<decltype(dim)>(
std::declval<UnrollFactors const &>()))>;
using unroll_factor = element_at<decltype(dim), UnrollFactors>;
return [outer = std::move(outer),
inner = sid::make_unrolled_loop<decltype(dim), unroll_factor::value>(
host_device::at_key<decltype(dim)>(sizes))](
Expand Down

0 comments on commit a83027f

Please sign in to comment.