Skip to content

Commit d010e02

Browse files
committed
wip
1 parent a955fd1 commit d010e02

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/cpp/test_cluster.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ INSTANTIATE_TEST_SUITE_P(
103103
});
104104

105105
using ClusterReductionTestAutoScheduler = ClusterReductionTest;
106-
TEST_P(ClusterReductionTestAutoScheduler, SoftmaxDtypeHiddenSize) {
106+
TEST_P(ClusterReductionTestAutoScheduler, Softmax) {
107107
auto [hidden_size, dtype] = GetParam();
108108
int batch_size = scheduler_utils::safeDiv(deviceSMCount(), 8);
109109
auto fusion_ptr = std::make_unique<Fusion>();
@@ -112,9 +112,9 @@ TEST_P(ClusterReductionTestAutoScheduler, SoftmaxDtypeHiddenSize) {
112112
auto tv0 = makeContigTensor(2, dtype);
113113
fusion.addInput(tv0);
114114
auto tv1 = maybeCastOp(DataType::Float, tv0);
115-
auto tv2 = softmax(tv1, 1);
116-
auto tv3 = maybeCastOp(DataType::BFloat16, tv2);
117-
fusion.addOutput(tv3);
115+
auto tv2 = softmax(tv1, 1);
116+
auto tv3 = maybeCastOp(DataType::BFloat16, tv2);
117+
fusion.addOutput(tv3);
118118
auto unscheduled_fusion_copy = fusion;
119119

120120
auto options =
@@ -129,7 +129,6 @@ TEST_P(ClusterReductionTestAutoScheduler, SoftmaxDtypeHiddenSize) {
129129
}
130130
testValidate(&unscheduled_fusion_copy, outputs, {t0});
131131
}
132-
133132
INSTANTIATE_TEST_SUITE_P(
134133
,
135134
ClusterReductionTestAutoScheduler,

tests/cpp/utils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,9 @@ bool isSchedulerInUse(
745745
const nvfuser::FusionKernelRuntime* kernel_rt,
746746
const SchedulerType& scheduler_type);
747747

748+
// Disable magic zero
749+
const CompileParams matmul_cparams{DataType::Int32, 255, false};
750+
748751
// Utility to generate tensor with bias applied on the input tensor
749752
TensorView* biasEpilogue(TensorView* tensor, TensorView* bias);
750753

0 commit comments

Comments
 (0)