已合并
fix: dot ophpst编译报错修改 #649
Sunee创建于 7月16日
fix: dot ophpst编译报错修改 #649
已合并
Sunee创建于 7月16日
共 3 个文件变更+5-2
@@ -15,6 +15,7 @@
15#ifndef UTIL_BUFFER_H_15#ifndef UTIL_BUFFER_H_
16#define UTIL_BUFFER_H_16#define UTIL_BUFFER_H_
17 17 
18+#include <cstddef>
18namespace Ops {19namespace Ops {
19namespace Base {20namespace Base {
20enum class MemLevel : uint8_t {21enum class MemLevel : uint8_t {
@@ -199,8 +200,8 @@ struct DecodeBufferIdWithPos {
199 200 
200template <int BufferId>201template <int BufferId>
201struct CombinedBufferCount {202struct CombinedBufferCount {
202- const static uint32_t tmp = static_cast<uint32_t>(BufferId) >> (BUF_COMBINE_SHIFT * BUF_COMBINED_MAX) &203+ const static uint32_t tmp =
203- BUF_COMBINE_MASK;204+ static_cast<uint32_t>(BufferId) >> (BUF_COMBINE_SHIFT * BUF_COMBINED_MAX) & BUF_COMBINE_MASK;
204 constexpr static uint32_t Value = (tmp == 0 || tmp > BUF_COMBINED_MAX) ? 1 : tmp;205 constexpr static uint32_t Value = (tmp == 0 || tmp > BUF_COMBINED_MAX) ? 1 : tmp;
205};206};
206 207 
@@ -19,6 +19,7 @@
19#define __aicore__19#define __aicore__
20#endif20#endif
21 21 
22+#include <cstddef>
22#include "aux2.h"23#include "aux2.h"
23namespace Ops {24namespace Ops {
24namespace Base {25namespace Base {
@@ -15,6 +15,7 @@
15#ifndef UTIL_PLACEHOLDER_H_15#ifndef UTIL_PLACEHOLDER_H_
16#define UTIL_PLACEHOLDER_H_16#define UTIL_PLACEHOLDER_H_
17 17 
18+#include <cstddef>
18#include <cstdint>19#include <cstdint>
19#ifndef __CCE_AICORE__20#ifndef __CCE_AICORE__
20#define __aicore__21#define __aicore__