From a2358c93783a6b4613986c7f2ba431e73512c7fd Mon Sep 17 00:00:00 2001 From: jjsjann123 Date: Fri, 3 Jan 2025 13:28:18 -0800 Subject: [PATCH] small fixes --- benchmarks/cpp/utils.cpp | 8 ++++---- csrc/scheduler/no_op.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmarks/cpp/utils.cpp b/benchmarks/cpp/utils.cpp index f0c99f830f8..4d069b3ec47 100644 --- a/benchmarks/cpp/utils.cpp +++ b/benchmarks/cpp/utils.cpp @@ -190,14 +190,14 @@ int64_t runBenchmarkIterations( ->groups() .size() > 1; - const auto& compile_log = executor_cache->getMostRecentExecutorInfo(); - auto params = toString(compile_log.params); - auto lparams = toString( - compile_log.fusion_executor->as()->lastLaunchParams()); // Only set if not segmented. In the case of segmented fusions, // this could be confusing as the log would refect only the last // segment. Revisit if necessary. if (!segmented) { + const auto& compile_log = executor_cache->getMostRecentExecutorInfo(); + auto params = toString(compile_log.params); + auto lparams = toString( + compile_log.fusion_executor->as()->lastLaunchParams()); benchmark_state.SetLabel(params + lparams); } diff --git a/csrc/scheduler/no_op.cpp b/csrc/scheduler/no_op.cpp index a7eb6e2de1f..c9bbac94c97 100644 --- a/csrc/scheduler/no_op.cpp +++ b/csrc/scheduler/no_op.cpp @@ -111,7 +111,7 @@ std::unique_ptr NoOpScheduler::computeHeuristics( Fusion* fusion, SchedulerRuntimeInfo& runtime_info, HeuristicDataCache* data_cache) { - auto params = std::make_unique(SchedulerType::NoOp); + auto params = std::make_unique(SchedulerType::NoOp); params->cparams.index_type = runtime_info.getIndexType(); return params; }