-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packet flow new error message for
aie.packet_rule
op (#1738)
- Loading branch information
1 parent
a863d44
commit 15c572c
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//===- badpacket_flow.mlir -------------------------------------*- MLIR -*-===// | ||
// | ||
// This file is licensed under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// (c) Copyright 2024 Advanced Micro Devices, Inc. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
// RUN: aie-opt --aie-create-pathfinder-flows %s 2>&1 | FileCheck %s | ||
// CHECK: error{{.*}} 'aie.rule' op can lead to false packet id match for id 28, which is not supposed to pass through this port | ||
// CHECK: remark: Please consider changing all uses of packet id 28 to avoid deadlock. | ||
|
||
aie.device(npu1_1col) { | ||
%03 = aie.tile(0, 3) | ||
%02 = aie.tile(0, 2) | ||
%00 = aie.tile(0, 0) | ||
aie.packet_flow(28) { | ||
aie.packet_source<%00, DMA : 0> | ||
aie.packet_dest<%02, Ctrl : 0> | ||
} | ||
aie.packet_flow(29) { | ||
aie.packet_source<%00, DMA : 0> | ||
aie.packet_dest<%03, Ctrl : 0> | ||
} | ||
aie.packet_flow(26) { | ||
aie.packet_source<%00, DMA : 0> | ||
aie.packet_dest<%03, DMA : 0> | ||
} | ||
} |