/* static */
std::unique_ptr<HloModule> HloTestBase::CreateNewModule(const string& name) {
HloModuleConfig config;
- auto debug_options = HloTestBase::GetDebugOptionsForTest();
- debug_options.set_xla_gpu_max_kernel_unroll_factor(1);
- config.set_debug_options(debug_options);
-
+ config.set_debug_options(GetDebugOptionsForTest());
return MakeUnique<HloModule>(name, VersionedComputationHandle(), config);
}
auto debug_options = legacy_flags::GetDebugOptionsFromFlags();
// TODO(b/38354253): Change tests to use Parameters instead of Constants.
debug_options.add_xla_disable_hlo_passes("constant_folding");
+ debug_options.set_xla_gpu_max_kernel_unroll_factor(1);
return debug_options;
}