已合并
GCC14编译问题解决 #2687
Sun创建于 5月11日
GCC14编译问题解决 #2687
已合并
Sun创建于 5月11日
4 个文件变更+4-1
@@ -20,6 +20,7 @@
20#include "op_common/op_host/util/shape_util.h"20#include "op_common/op_host/util/shape_util.h"
21#include "op_common/op_host/util/platform_util.h"21#include "op_common/op_host/util/platform_util.h"
22#include "op_api/op_util.h"22#include "op_api/op_util.h"
23+#include <algorithm>
23 24 
24using namespace std;25using namespace std;
25using namespace ge;26using namespace ge;
@@ -905,7 +905,7 @@ __aicore__ inline void PadV3GradGather<T,modeName>::GatherAddScatter(__local_mem
905 uint16_t loops = (curElements + vlCount - 1) / vlCount;905 uint16_t loops = (curElements + vlCount - 1) / vlCount;
906 for (uint16_t i = 0; i < loops; i++) {906 for (uint16_t i = 0; i < loops; i++) {
907 uint32_t offset = i * vlCount;907 uint32_t offset = i * vlCount;
908- uint32_t remaining = curElements - offset;908+ uint64_t remaining = curElements - offset;
909 uint32_t curCount = static_cast<uint32_t>(Std::min(vlCount, remaining));909 uint32_t curCount = static_cast<uint32_t>(Std::min(vlCount, remaining));
910 910 
911 AscendC::MicroAPI::MaskReg mask = AscendC::MicroAPI::UpdateMask<PromoteDataT>(curCount);911 AscendC::MicroAPI::MaskReg mask = AscendC::MicroAPI::UpdateMask<PromoteDataT>(curCount);
@@ -16,6 +16,7 @@
16#include "runtime/infer_shape_context.h"16#include "runtime/infer_shape_context.h"
17#include "register/op_impl_registry.h"17#include "register/op_impl_registry.h"
18#include "log/log.h"18#include "log/log.h"
19+#include <algorithm>
19 20 
20using namespace ge;21using namespace ge;
21namespace ops {22namespace ops {
@@ -14,6 +14,7 @@
14 */14 */
15#include "log/log.h"15#include "log/log.h"
16#include "register/op_impl_registry.h"16#include "register/op_impl_registry.h"
17+#include <algorithm>
17 18 
18using namespace ge;19using namespace ge;
19namespace ops {20namespace ops {