Skip to content

Commit

Permalink
retain header orders
Browse files Browse the repository at this point in the history
  • Loading branch information
newling committed Nov 1, 2024
1 parent 555ec3a commit f050d94
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
5 changes: 0 additions & 5 deletions runtime/src/iree-amd-aie/aie_runtime/iree_aie_configure.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@

using Path = std::filesystem::path;

extern "C" {
#include "xaie_hwcfg.h"
#include "xaiengine.h"
}

namespace mlir::iree_compiler::AMDAIE {

FailureOr<XAie_DmaDesc> initDMADesc(const AMDAIEDeviceModel &deviceModel,
Expand Down
2 changes: 0 additions & 2 deletions runtime/src/iree-amd-aie/aie_runtime/iree_aie_runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

extern "C" {
#include "xaiengine.h"
#include "xaie_hwcfg.h"
#undef s8
#undef u8
#undef u16
Expand Down Expand Up @@ -169,7 +168,6 @@ int AMDAIEDeviceModel::rows() const {
return MLIRAIELegacy::rows(*this);
assert(isNPUDevice(device) && "expected NPU device");
return devInst.NumRows;

}

int AMDAIEDeviceModel::columns() const {
Expand Down
11 changes: 10 additions & 1 deletion runtime/src/iree-amd-aie/aie_runtime/iree_aie_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@
#define IREE_AIE_RUNTIME_H

#include <optional>
#include <ostream>
#include <sstream>
#include <tuple>
#include <type_traits>

#include "iree-amd-aie/aie_runtime/AMDAIEEnums.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FormattedStream.h"
#include "macros.h"

// clang-format off
#include "iree-amd-aie/aie_runtime/AMDAIEEnums.h"
// clang-format on

extern "C" {

#include "xaie_hwcfg.h"
#include "xaiengine.h"
#include "xaiengine/xaie_device_aieml.h"
#undef s8
#undef u8
#undef u16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ clang-format on
#include <cstdio>

#include "interpreter_op_impl.h"
#include "iree-amd-aie/aie_runtime/xaie_hwcfg.h"
#include "iree-amd-aie/aie_runtime/iree_aie_runtime.h"

#define DATA_SIZE 17
#define WRRD_DATA_SIZE 0x02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ clang-format on
#include <cstdio>

#include "interpreter_op_impl.h"
#include "iree-amd-aie/aie_runtime/xaie_hwcfg.h"
#include "iree-amd-aie/aie_runtime/iree_aie_runtime.h"

using namespace mlir::iree_compiler;
using namespace mlir::iree_compiler::AMDAIE;
Expand Down
3 changes: 0 additions & 3 deletions runtime/src/iree-amd-aie/aie_runtime/test/test_transaction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ clang-format on

#include "interpreter_op_impl.h"
#include "iree-amd-aie/aie_runtime/iree_aie_runtime.h"
#include "iree-amd-aie/aie_runtime/xaie_hwcfg.h"



using namespace mlir::iree_compiler;
using namespace mlir::iree_compiler::AMDAIE;
Expand Down
1 change: 0 additions & 1 deletion runtime/src/iree-amd-aie/aie_runtime/test/utest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ clang-format off
#include <string>

#include "iree-amd-aie/aie_runtime/iree_aie_runtime.h"
#include "iree-amd-aie/aie_runtime/xaie_hwcfg.h"

int main(int argc, char** argv) {
std::string elfPath(argv[1]);
Expand Down

0 comments on commit f050d94

Please sign in to comment.