diff --git a/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc b/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc index fc1d512294..eec4d23dfa 100644 --- a/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc +++ b/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc @@ -74,10 +74,6 @@ void ProfilingUtils::GetTraceHccl(const std::vector &cnode_exec_order) } void ProfilingUtils::SetTraceFpStart(const std::vector &cnode_exec_order) { - if (!profiling_trace.trace_fp_start.empty()) { - return; - } - const char *trace_fp_start = std::getenv(kFpStartNode); if (trace_fp_start != nullptr) { profiling_trace.trace_fp_start = std::string(trace_fp_start);