|
|
|
@ -22,7 +22,6 @@
|
|
|
|
|
#include "graph/ge_context.h"
|
|
|
|
|
#include "runtime/base.h"
|
|
|
|
|
#include "graph/load/new_model_manager/davinci_model.h"
|
|
|
|
|
#include "opskernel_manager/ops_kernel_builder_manager.h"
|
|
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
const char *const kTrainingTrace = "training_trace";
|
|
|
|
@ -496,11 +495,6 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ProfilingManager::ProfIn
|
|
|
|
|
GELOGE(FAILED, "Runtime profiler start failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
Status hccl_ret = OpsKernelBuilderManager::Instance().ProfStart(model_load_mask);
|
|
|
|
|
if (hccl_ret != SUCCESS) {
|
|
|
|
|
GELOGE(FAILED, "Hccl profiler start failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
is_load_profiling_ = true;
|
|
|
|
|
GELOGI("Prof init: model load profiling on.");
|
|
|
|
|
}
|
|
|
|
@ -530,12 +524,6 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ProfilingManager::ProfFi
|
|
|
|
|
GELOGE(FAILED, "Runtime profiler stop failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Status hccl_ret = OpsKernelBuilderManager::Instance().ProfStop(PROF_MODEL_LOAD_MASK);
|
|
|
|
|
if (hccl_ret != SUCCESS) {
|
|
|
|
|
GELOGE(FAILED, "Hccl profiler stop failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
for (auto device_id_module : device_id_module_map_) {
|
|
|
|
|
if (device_id_module.second != 0) {
|
|
|
|
|
uint32_t device_id = static_cast<uint32_t>(device_id_module.first);
|
|
|
|
@ -661,12 +649,6 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ProfilingManager::ProfSt
|
|
|
|
|
GELOGE(FAILED, "Runtime profiler config proc failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Status hccl_ret = OpsKernelBuilderManager::Instance().ProfStart(module);
|
|
|
|
|
if (hccl_ret != SUCCESS) {
|
|
|
|
|
GELOGE(FAILED, "Hccl profiler start failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
if ((module & PROF_MODEL_EXECUTE_MASK) == PROF_MODEL_EXECUTE_MASK) {
|
|
|
|
|
for (int32_t i = 0; i < device_num; i++) {
|
|
|
|
|
if (std::find(device_id_.begin(), device_id_.end(), device_list[i]) == device_id_.end()) {
|
|
|
|
@ -708,11 +690,6 @@ FMK_FUNC_HOST_VISIBILITY FMK_FUNC_DEV_VISIBILITY Status ProfilingManager::ProfSt
|
|
|
|
|
GELOGE(FAILED, "Prof stop: runtime profiler config proc failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
Status hccl_ret = OpsKernelBuilderManager::Instance().ProfStop(module);
|
|
|
|
|
if (hccl_ret != SUCCESS) {
|
|
|
|
|
GELOGE(FAILED, "Hccl profiler stop failed.");
|
|
|
|
|
return FAILED;
|
|
|
|
|
}
|
|
|
|
|
uint64_t execute_model_mask = module & PROF_MODEL_EXECUTE_MASK;
|
|
|
|
|
if (execute_model_mask == PROF_MODEL_EXECUTE_MASK) {
|
|
|
|
|
for (int32_t i = 0; i < device_num; i++) {
|
|
|
|
|