From e2561c23d53ceee06e75b67d7f1c2f247efd6649 Mon Sep 17 00:00:00 2001 From: glyh Date: Tue, 7 Jan 2025 18:14:01 +0800 Subject: [PATCH 1/2] add missing headers to pass compilation on more gcc versions --- include/core/data_type.h | 1 + include/core/graph.h | 4 +++- include/core/op_type.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/core/data_type.h b/include/core/data_type.h index 0b7c1fa..aa0e126 100644 --- a/include/core/data_type.h +++ b/include/core/data_type.h @@ -1,5 +1,6 @@ #pragma once #include "core/common.h" +#include namespace infini { diff --git a/include/core/graph.h b/include/core/graph.h index 9326eaf..12eb72d 100644 --- a/include/core/graph.h +++ b/include/core/graph.h @@ -2,6 +2,8 @@ #include "core/allocator.h" #include "core/operator.h" #include "core/tensor.h" +#include +#include namespace infini { @@ -116,4 +118,4 @@ namespace infini bool sorted; }; -} // namespace infini \ No newline at end of file +} // namespace infini diff --git a/include/core/op_type.h b/include/core/op_type.h index db67f33..1f03e30 100644 --- a/include/core/op_type.h +++ b/include/core/op_type.h @@ -4,6 +4,7 @@ #include #include +#include namespace infini { From 54f1dbc3a96767f235b1ee7b79e856f7df9457d0 Mon Sep 17 00:00:00 2001 From: glyh Date: Tue, 7 Jan 2025 18:52:14 +0800 Subject: [PATCH 2/2] fix headers inclusion ordering --- include/core/graph.h | 2 +- include/core/op_type.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/core/graph.h b/include/core/graph.h index 12eb72d..c45580c 100644 --- a/include/core/graph.h +++ b/include/core/graph.h @@ -2,8 +2,8 @@ #include "core/allocator.h" #include "core/operator.h" #include "core/tensor.h" -#include #include +#include namespace infini { diff --git a/include/core/op_type.h b/include/core/op_type.h index 1f03e30..ffe2d6e 100644 --- a/include/core/op_type.h +++ b/include/core/op_type.h @@ -2,9 +2,9 @@ #ifndef OP_TYPE_H #define OP_TYPE_H +#include #include #include -#include namespace infini {