!431 ge_runtime downgrade to c++11 standard

From: @nicholas_yhr
Reviewed-by: @liujunzhu,@youui
Signed-off-by: @youui
pull/431/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit a244d9e457

@ -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

@ -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