-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use chess not Peano for trace programming examples and guide (#1886)
Co-authored-by: Joseph Melber <[email protected]>
- Loading branch information
1 parent
b18dc8e
commit 9fe5fb5
Showing
11 changed files
with
153 additions
and
48 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
15 changes: 15 additions & 0 deletions
15
programming_examples/basic/vector_scalar_mul/run_makefile_chess.lit
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,15 @@ | ||
// (c) Copyright 2024 Advanced Micro Devices, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// REQUIRES: ryzen_ai, chess | ||
// | ||
// RUN: mkdir -p test_chess | ||
// RUN: cd test_chess | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: env CHESS=true make -f %S/Makefile | ||
// RUN: %run_on_npu make -f %S/Makefile run | FileCheck %s | ||
// RUN: %run_on_npu make -f %S/Makefile run_py | FileCheck %s | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: env CHESS=true %run_on_npu make -f %S/Makefile trace | FileCheck %s | ||
// RUN: env CHESS=true %run_on_npu make -f %S/Makefile trace_py | FileCheck %s | ||
// CHECK: PASS! |
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
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
// (c) Copyright 2024 Advanced Micro Devices, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// REQUIRES: ryzen_ai, peano | ||
// | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: make -f %S/Makefile | ||
// RUN: %run_on_npu make -f %S/Makefile run | FileCheck %s | ||
// RUN: %run_on_npu make -f %S/Makefile run_py | FileCheck %s | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: %run_on_npu make -f %S/Makefile trace_py | FileCheck %s | ||
// CHECK: PASS! | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// REQUIRES: ryzen_ai, peano | ||
// | ||
// RUN: mkdir -p test_peano | ||
// RUN: cd test_peano | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: env CHESS=false make -f %S/Makefile | ||
// RUN: %run_on_npu make -f %S/Makefile run | FileCheck %s | ||
// RUN: %run_on_npu make -f %S/Makefile run_py | FileCheck %s | ||
// make -f %S/Makefile clean | ||
// env CHESS=false %run_on_npu make -f %S/Makefile trace | FileCheck %s | ||
// env CHESS=false %run_on_npu make -f %S/Makefile trace_py | FileCheck %s | ||
// CHECK: PASS! |
16 changes: 16 additions & 0 deletions
16
programming_guide/section-4/section-4b/run_makefile_chess.lit
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,16 @@ | ||
// (c) Copyright 2024 Advanced Micro Devices, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// REQUIRES: ryzen_ai, chess | ||
// | ||
// RUN: mkdir -p test_chess | ||
// RUN: cd test_chess | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: env CHESS=true make -f %S/Makefile | ||
// RUN: %run_on_npu make -f %S/Makefile run | FileCheck %s | ||
// RUN: %run_on_npu make -f %S/Makefile run_py | FileCheck %s | ||
// RUN: %run_on_npu make -f %S/Makefile trace | FileCheck %s | ||
// RUN: make -f %S/Makefile clean | ||
// RUN: env CHESS=true %run_on_npu make -f %S/Makefile trace | FileCheck %s | ||
// RUN: env CHESS=true %run_on_npu make -f %S/Makefile trace_py | FileCheck %s | ||
// CHECK: PASS! |
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
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