Skip to content

Commit d09aefd

Browse files
vwbakertensorflower-gardener
authored andcommitted
Disable autotuning in test - with --xla_gpu_experimental_enable_fusion_autotuner set to true, this will start to fail because the error returned is actually "No executables to profile!" because all the individual backends fail to compile (and correctly so). Remove autotuning to continue the tests previous goals of testing the native emitter's return error.
PiperOrigin-RevId: 816033671
1 parent acdc008 commit d09aefd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

third_party/xla/xla/service/gpu/tests/gpu_kernel_tiling_test.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,12 @@ TEST_F(GpuKernelTilingTest, ReductionInputTooLarge) {
399399
}
400400
)";
401401
auto hlo_module = ParseAndReturnVerifiedModule(kHloString).value();
402+
// Disable autotuning because this is checking for an error returned by the
403+
// Native Emitter. With autotuning enabled, the error is that autotuning
404+
// itself fails to find a config because all the backends return failure.
405+
hlo_module->mutable_config()
406+
.mutable_debug_options()
407+
.set_xla_gpu_autotune_level(0);
402408
absl::Status status = CompileToExecutable(std::move(hlo_module)).status();
403409

404410
if (xla::PlatformUtil::CanonicalPlatformName("gpu").value() == "rocm") {

0 commit comments

Comments
 (0)