Browse Source

ge_runtime downgrade to c++11 standard

tags/v1.1.0
yanghaoran 3 years ago
parent
commit
bb50654349
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +2
    -1
      ge/ge_runtime/task/hccl_task.cc

+ 1
- 1
CMakeLists.txt View File

@@ -148,7 +148,7 @@ elseif (ENABLE_D OR ENABLE_ACL)
# common libraries
find_module(slog libslog.so ${ASCEND_MS_DRIVER_PATH})
find_module(error_manager liberror_manager.so ${ASCEND_MS_RUNTIME_PATH} ${ATLAS_MS_RUNTIME_PATH})
find_module(static_mmpa libmmpa.a ${ASCEND_MS_DRIVER_PATH})
find_module(static_mmpa libmmpa.a ${ASCEND_MS_RUNTIME_PATH} ${ATLAS_MS_RUNTIME_PATH})

if (ENABLE_D)
# training


+ 2
- 1
ge/ge_runtime/task/hccl_task.cc View File

@@ -140,7 +140,8 @@ bool HcclTask::SetSecondaryStream() {

std::map<uint32_t, std::vector<std::weak_ptr<StreamGuard>>> &master_secondary_stream_map =
model_stream_mapping_.at(rt_model_handle_);
if (auto iter = master_secondary_stream_map.find(master_stream_id); iter != master_secondary_stream_map.end()) {
auto iter = master_secondary_stream_map.find(master_stream_id);
if (iter != master_secondary_stream_map.end()) {
std::vector<std::weak_ptr<StreamGuard>> &secondary_stream_vec = iter->second;
auto lock_weak_ptr = [&secondary_stream_vec, this](int64_t index) -> bool {
auto stream = secondary_stream_vec[index].lock();


Loading…
Cancel
Save