Skip to content

Commit cd4f49b

Browse files
[FA] Fix compile failure on advanced path (#3567)
The workaround for advanced path was accidentally removed in dc237c2. Signed-off-by: Whitney Tsang <[email protected]>
1 parent 1ddca06 commit cd4f49b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Analysis/Utility.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ unsigned ReduceOpHelper::getIntraWarpSizeWithUniqueData() {
108108
}
109109

110110
bool ReduceOpHelper::isWarpSynchronous() {
111+
// FIXME: In the default path tensors will always have a layout. Tensors do
112+
// not have a layout only in the advanced path. We need to find a workaround
113+
// in order to remove this change.
114+
if (!srcEncoding)
115+
return true;
111116
return getWarpsPerCTAWithUniqueData(srcEncoding, srcShape)[axis] == 1;
112117
}
113118

0 commit comments

Comments
 (0)