Skip to content

Commit 4d9276d

Browse files
committed
Modified is_C_load condition
Signed-off-by: Chawla, Amit K <[email protected]>
1 parent 8abea79 commit 4d9276d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

include/cutlass/epilogue/collective/xe_array_epilogue.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,9 @@ class CollectiveEpilogue<
435435

436436
//Instead of calling is_C_load_needed. We do heirachical check
437437
//so that runtime check not there when ElementC is void
438-
if constexpr (is_source_supported) {
439-
if (fusion_callbacks.is_C_load_needed()) {
440-
//cordinates for C and D are the same
441-
copy(params.xe_load_c.with(get<0>(load_store_tensors)), tCgD(_, epi_m, epi_n), trC);
442-
}
438+
if (is_C_load_needed) {
439+
//cordinates for C and D are the same
440+
copy(params.xe_load_c.with(get<0>(load_store_tensors)), tCgD(_, epi_m, epi_n), trC);
443441
}
444442

445443
cst_callbacks.previsit(epi_m, epi_n, 0, is_C_load_needed);

include/cutlass/epilogue/collective/xe_epilogue.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,8 @@ class CollectiveEpilogue<
413413

414414
//Instead of calling is_C_load_needed. We do heirachical check
415415
//so that runtime check not there when ElementC is void
416-
if constexpr (is_source_supported) {
417-
if (fusion_callbacks.is_C_load_needed()) {
418-
copy(params.xe_load_c, tCgC(_, epi_m, epi_n), trC);
419-
}
416+
if (is_C_load_needed) {
417+
copy(params.xe_load_c, tCgC(_, epi_m, epi_n), trC);
420418
}
421419

422420
cst_callbacks.previsit(epi_m, epi_n, 0, is_C_load_needed);

0 commit comments

Comments
 (0)