"test/vscode:/vscode.git/clone" did not exist on "313bbea5886850acab286f45e9d9816cf0b0dca0"
Commit 11bc1594 authored by Paul's avatar Paul
Browse files

Formatting

parent 3c45174a
...@@ -381,17 +381,15 @@ argument program::eval(std::unordered_map<std::string, argument> params) const ...@@ -381,17 +381,15 @@ argument program::eval(std::unordered_map<std::string, argument> params) const
{ {
auto& ctx = this->impl->ctx; auto& ctx = this->impl->ctx;
#ifndef NDEBUG #ifndef NDEBUG
auto sctx = ctx; auto sctx = ctx;
auto check_context = [&](auto f) { auto check_context = [&](auto f) {
assert(is_shared(ctx, sctx)); assert(is_shared(ctx, sctx));
auto x = f(); auto x = f();
sctx = ctx; sctx = ctx;
return x; return x;
}; };
#else #else
auto check_context = [](auto f) { auto check_context = [](auto f) { return f(); };
return f();
};
#endif #endif
if(enabled(MIGRAPHX_TRACE_EVAL{})) if(enabled(MIGRAPHX_TRACE_EVAL{}))
{ {
...@@ -459,8 +457,7 @@ void program::perf_report(std::ostream& os, std::size_t n, parameter_map params) ...@@ -459,8 +457,7 @@ void program::perf_report(std::ostream& os, std::size_t n, parameter_map params)
overhead_vec.reserve(n); overhead_vec.reserve(n);
for(std::size_t i = 0; i < n; i++) for(std::size_t i = 0; i < n; i++)
{ {
overhead_vec.push_back(time<milliseconds>( overhead_vec.push_back(time<milliseconds>([&] { dry_run(params); }));
[&] { dry_run(params); }));
} }
double total_time = common_average(total_vec); double total_time = common_average(total_vec);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment