File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,19 @@ TEST_CASE("Backend Compilation Benchmark") {
100
100
auto func = std::get<1 >(test);
101
101
auto name = std::get<0 >(test);
102
102
103
- Catch::Benchmark::Benchmark (" comp_" + backend + " _" + name).operator =([&func, ®istry](Catch::Benchmark::Chronometer meter) {
103
+ Catch::Benchmark::Benchmark (" comp_" + backend + " _" + name).operator =([&func, ®istry, backend ](Catch::Benchmark::Chronometer meter) {
104
104
std::shared_ptr<tracing::ExecutionTrace> trace = tracing::TraceContext::trace (func);
105
105
auto ssaCreationPhase = tracing::SSACreationPhase ();
106
106
trace = ssaCreationPhase.apply (trace);
107
- auto backend = registry.getBackend (" mlir" );
107
+ auto compBackend = registry.getBackend (" mlir" );
108
108
auto irConversionPhase = tracing::TraceToIRConversionPhase ();
109
109
auto ir = irConversionPhase.apply (trace);
110
110
auto op = engine::Options ();
111
111
// force compilation for the MLIR backend.
112
112
op.setOption (" mlir.eager_compilation" , true );
113
+ op.setOption (" engine.backend" , backend);
113
114
auto dh = compiler::DumpHandler (op, " " );
114
- meter.measure ([&] { return backend ->compile (ir, dh, op); });
115
+ meter.measure ([&] { return compBackend ->compile (ir, dh, op); });
115
116
});
116
117
}
117
118
}
You can’t perform that action at this time.
0 commit comments