diff --git a/mindspore/ccsrc/backend/kernel_compiler/gpu/math/matrix_inverse_gpu_kernel.h b/mindspore/ccsrc/backend/kernel_compiler/gpu/math/matrix_inverse_gpu_kernel.h index 71230cd1ee..4d04615da3 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/gpu/math/matrix_inverse_gpu_kernel.h +++ b/mindspore/ccsrc/backend/kernel_compiler/gpu/math/matrix_inverse_gpu_kernel.h @@ -89,7 +89,6 @@ class MatrixInverseGpuKernel : public GpuKernel { kernel_node_ = kernel_node; handle_ = device::gpu::GPUDeviceManager::GetInstance().GetCublasHandle(); auto input_shape = AnfAlgo::GetPrevNodeOutputInferShape(kernel_node, 0); - if (input_shape.empty() || input_shape.size() < 2) { MS_LOG(EXCEPTION) << "The dim entered needs to be greater than 2, but " << input_shape.size() << " was taken"; } diff --git a/mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_broadcast.cc b/mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_broadcast.cc index 6c8eb8c6b5..ec5073194c 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_broadcast.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/hccl/hcom_all_broadcast.cc @@ -33,7 +33,6 @@ bool HcomAllBroadCastKernel::Launch(const std::vector &inputs, MS_EXCEPTION_IF_NULL(stream_ptr); auto hccl_result = HcclBroadcast(inputs[0]->addr, hccl_count_, hccl_data_type_list_[0], root_id_, HcclContext::GetInstance().hccl_comm(), stream_ptr); - if (hccl_result != HCCL_SUCCESS) { MS_LOG(ERROR) << "HcomBroadcastOp : hcom_broadcast fail, return: " << hccl_result; return false; diff --git a/mindspore/ccsrc/backend/optimizer/somas/somas_solver_core.cc b/mindspore/ccsrc/backend/optimizer/somas/somas_solver_core.cc index 69cf66cfbb..04b6a8b0db 100644 --- a/mindspore/ccsrc/backend/optimizer/somas/somas_solver_core.cc +++ b/mindspore/ccsrc/backend/optimizer/somas/somas_solver_core.cc @@ -33,7 +33,6 @@ using std::vector; namespace mindspore { namespace somas { - Status SomasSolverCore::MemoryAllocationSolver() { auto start = std::chrono::system_clock::now(); Status retval = SUCCESS; diff --git a/mindspore/ccsrc/backend/optimizer/somas/somas_solver_pre.cc b/mindspore/ccsrc/backend/optimizer/somas/somas_solver_pre.cc index 2defd7bb23..3cdc5787b0 100644 --- a/mindspore/ccsrc/backend/optimizer/somas/somas_solver_pre.cc +++ b/mindspore/ccsrc/backend/optimizer/somas/somas_solver_pre.cc @@ -27,7 +27,6 @@ namespace mindspore { namespace somas { - constexpr auto kSolNumThresholdMultiThread = 8; Status SomasSolverPre::checkTensors(TensorsDescMap *pTensors, uint32_t index1, uint32_t index2) { auto &tensors = *pTensors; diff --git a/mindspore/ccsrc/backend/session/ascend_inference_session.cc b/mindspore/ccsrc/backend/session/ascend_inference_session.cc index c9f1dca6d9..57564cab11 100644 --- a/mindspore/ccsrc/backend/session/ascend_inference_session.cc +++ b/mindspore/ccsrc/backend/session/ascend_inference_session.cc @@ -212,6 +212,5 @@ std::string AscendInferenceSession::InputsInfo(const std::vector & } return graph + " " + actual; } - } // namespace session } // namespace mindspore diff --git a/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc b/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc index 5444047536..48b1b02a7e 100644 --- a/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc +++ b/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc @@ -63,7 +63,6 @@ bool IsSameServer(const std::vector &rank_ids) { string DoGetHcomGroup(const string &original_group) { string communi_parallel_mode = parallel::ParallelContext::GetInstance()->communi_parallel_mode(); - if (communi_parallel_mode == parallel::ALL_GROUP_PARALLEL) { return original_group; } diff --git a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc index df41af0cfd..9e25b6e437 100644 --- a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc +++ b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc @@ -112,7 +112,6 @@ void ProfilingManager::PluginUnInit() const { Status ProfilingManager::GetProfConf(const NotNull prof) { string job_id = std::to_string(GetJobId()); - if (memcpy_s(prof->jobId, sizeof(prof->jobId), job_id.c_str(), strlen(job_id.c_str())) != EOK) { MS_LOG(ERROR) << "Copy job_id failed."; return PROF_FAILED; diff --git a/mindspore/ccsrc/runtime/device/cpu/cpu_memory_manager.cc b/mindspore/ccsrc/runtime/device/cpu/cpu_memory_manager.cc index 242880b161..2a56a9f479 100644 --- a/mindspore/ccsrc/runtime/device/cpu/cpu_memory_manager.cc +++ b/mindspore/ccsrc/runtime/device/cpu/cpu_memory_manager.cc @@ -21,7 +21,6 @@ namespace mindspore { namespace device { namespace cpu { - uint8_t *CPUMemoryManager::MallocStaticMem(size_t size, bool, uint32_t) { void *ptr = malloc(size); if (ptr != nullptr) { diff --git a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h index d14440e6e9..73788eaa79 100644 --- a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h +++ b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h @@ -27,7 +27,6 @@ namespace mindspore { namespace device { - class DynamicKernel { public: DynamicKernel(void *stream, const CNodePtr &cnode_ptr) diff --git a/mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc b/mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc index d77c0949da..aad184427f 100644 --- a/mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc +++ b/mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc @@ -1268,7 +1268,6 @@ session::KernelWithIndex GPUKernelRuntime::GetPrevNodeOutput(const AnfNodePtr &n return addr_iter->second[i]; } - } // namespace gpu } // namespace device } // namespace mindspore