Skip to content

Commit

Permalink
[MMA_FROM_SMEM_IT_RES] Change how residuals are handled (#393)
Browse files Browse the repository at this point in the history
Co-authored-by: danthe3rd <danthe3rd>
  • Loading branch information
danthe3rd committed Sep 15, 2022
1 parent 664a462 commit 51dd119
Show file tree
Hide file tree
Showing 5 changed files with 396 additions and 338 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#pragma once

#include "predicated_tile_access_iterator_residual_last.h"
#include "predicated_tile_iterator_residual_last.h"

namespace cutlass {
namespace transform {
namespace threadblock {

template <typename BaseIterator>
struct MakeIteratorResidualLast;

template <
typename Shape,
typename Element,
typename Layout,
int AdvanceRank,
typename ThreadMap,
int AccessSize,
bool Gather>
struct MakeIteratorResidualLast<PredicatedTileIterator<
Shape,
Element,
Layout,
AdvanceRank,
ThreadMap,
AccessSize,
Gather>> {
using Iterator = PredicatedTileIteratorResidualLast<
Shape,
Element,
Layout,
AdvanceRank,
ThreadMap,
AccessSize,
Gather>;
};

template <
typename Shape,
typename Element,
typename Layout,
int AdvanceRank,
typename ThreadMap,
typename AccessType,
bool Gather>
struct MakeIteratorResidualLast<PredicatedTileAccessIterator<
Shape,
Element,
Layout,
AdvanceRank,
ThreadMap,
AccessType,
Gather>> {
using Iterator = PredicatedTileAccessIteratorResidualLast<
Shape,
Element,
Layout,
AdvanceRank,
ThreadMap,
AccessType,
Gather>;
};
} // namespace threadblock
} // namespace transform
} // namespace cutlass
Loading

0 comments on commit 51dd119

Please sign in to comment.