From 8ed916bf5a198d279e9aa07dbff3374a8983e27c Mon Sep 17 00:00:00 2001 From: Stephen Neuendorffer Date: Tue, 21 May 2024 10:20:37 -0700 Subject: [PATCH] copyright update for tests. (#1504) --- programming_examples/basic/dma_transpose/aie2.py | 3 ++- .../basic/matrix_multiplication/plot_sweep.py | 7 +++++++ programming_examples/basic/matrix_scalar_add/aie2.py | 3 ++- programming_examples/basic/passthrough_dmas/aie2.py | 3 ++- programming_examples/basic/passthrough_kernel/aie2.py | 3 ++- programming_examples/basic/passthrough_kernel/test.py | 7 +++++-- programming_examples/basic/vector_exp/aie2.py | 3 ++- programming_examples/basic/vector_reduce_add/aie2.py | 3 ++- programming_examples/basic/vector_reduce_max/aie2.py | 3 ++- programming_examples/basic/vector_reduce_min/aie2.py | 3 ++- programming_examples/basic/vector_scalar_add/aie2.py | 3 ++- programming_examples/basic/vector_scalar_mul/aie2.py | 3 ++- programming_examples/basic/vector_scalar_mul/test.py | 7 +++++-- programming_examples/basic/vector_vector_add/aie2.py | 3 ++- programming_examples/basic/vector_vector_mul/aie2.py | 3 ++- programming_guide/section-1/aie2.py | 3 ++- programming_guide/section-2/section-2d/aie2.py | 3 ++- programming_guide/section-2/section-2d/aie2_multi.py | 3 ++- programming_guide/section-3/aie2.py | 3 ++- programming_guide/section-3/test.py | 7 +++++-- programming_guide/section-4/section-4a/aie2.py | 3 ++- programming_guide/section-4/section-4a/test.py | 7 +++++-- programming_guide/section-4/section-4b/aie2.py | 3 ++- programming_guide/section-4/section-4b/test.py | 7 +++++-- .../Targets/ADFGenerateCPPGraph/adf_simple_stream.mlir | 10 +++++++++- .../Targets/ADFGenerateCPPGraph/adf_simple_window.mlir | 10 +++++++++- test/Targets/AIEGenerateJSON/shim_alloc.mlir | 6 ++---- test/Targets/AIEGenerateTargetArch/aie.mlir | 4 ++-- test/Targets/AIEGenerateTargetArch/aie2.mlir | 4 ++-- .../AIEGenerateXAIE/aie2_configure_cascade.mlir | 4 ++-- test/Targets/AIEGenerateXAIE/aie2_nd_DMA.mlir | 2 +- test/Targets/AIEGenerateXAIE/aie2_tileDMA.mlir | 2 +- test/Targets/AIEGenerateXAIE/aie2_tileDMA2.mlir | 4 ++-- test/Targets/AIEGenerateXAIE/aie2_tileDMA3.mlir | 4 ++-- test/Targets/AIEGenerateXAIE/aie2_tileDMA4.mlir | 2 +- test/Targets/AIEGenerateXAIE/aie2_tileDMA_locks.mlir | 4 ++-- test/Targets/AIEGenerateXAIE/memTileDMA.mlir | 4 ++-- test/Targets/AIEGenerateXAIE/memTileDMA2.mlir | 4 ++-- test/Targets/AIEGenerateXAIE/packet_drop_header.mlir | 2 +- test/Targets/AIEGenerateXAIE/packet_shim_header.mlir | 2 +- test/Targets/AIEGenerateXAIE/plio_shim.mlir | 2 +- test/Targets/AIEGenerateXAIE/plio_shimmux.mlir | 2 +- test/Targets/AIEGenerateXAIE/shim.mlir | 2 +- test/Targets/AIEGenerateXAIE/shim_dma_packet.mlir | 1 + test/Targets/AIEGenerateXAIE/shimmux.mlir | 4 ++-- .../AIEGenerateXAIE/test_error_dma_multi_lock.mlir | 2 +- .../AIEGenerateXAIE/test_error_dma_multi_state.mlir | 2 +- .../AIEGenerateXAIE/test_error_shimdma_multi_lock.mlir | 2 +- .../test_error_shimdma_multi_state.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_explicit_elf.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_herd_xaie0.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_lock_init.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps0_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps1_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps2_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps3_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps4_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps5_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps6_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_ps7_xaie.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_xaie1.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_xaie2.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_xaie3.mlir | 2 +- test/Targets/AIEGenerateXAIE/test_xaie4.mlir | 2 +- test/Targets/AIEGenerateXAIE/tileDMA.mlir | 2 +- test/Targets/AIETargetAirbin/aie.mlir | 7 +++++-- test/Targets/AIETargetCDODirect/empty.mlir | 2 +- test/Targets/AIETargetCDODirect/oneshim.mlir | 2 +- test/Targets/AIETargetCDODirect/shims.mlir | 2 +- test/Targets/AIETargetHSA/input_with_addresses.mlir | 9 +++++++++ test/Targets/AIEVecToCpp/func-translations.mlir | 9 +++++++++ test/Targets/AIEVecToCpp/matmul-translations.mlir | 9 +++++++++ test/Targets/AIEVecToCpp/polygeist_conv2d_i32.mlir | 9 +++++++++ test/Targets/AIEVecToCpp/translate_conv2d_uij_f32.mlir | 9 +++++++++ test/Targets/AIEVecToCpp/translate_conv2d_uij_i16.mlir | 9 +++++++++ test/Targets/AIEVecToCpp/translate_conv2d_uij_i32.mlir | 9 +++++++++ test/Targets/AIEVecToCpp/translate_conv2d_uij_i8.mlir | 9 +++++++++ test/Targets/NPU/npu_instgen.mlir | 2 +- .../add_256_using_dma_op_no_double_buffering/aie.mlir | 7 +++++-- test/npu-xrt/add_314_using_dma_op/aie.mlir | 7 +++++-- test/npu-xrt/add_one_objFifo/aie.mlir | 5 ++++- test/npu-xrt/add_one_using_dma/aie.mlir | 7 +++++-- test/npu-xrt/cascade_flows/aie.mlir | 7 +++++-- test/npu-xrt/e2e/conftest.py | 7 +++++++ .../test_add_256_using_dma_op_no_double_buffering.py | 4 +++- test/npu-xrt/e2e/test_locks.py | 4 +++- test/npu-xrt/e2e/test_manual_dpu_args.py | 4 +++- test/npu-xrt/e2e/test_nonsquare_matrix_mult.py | 4 +++- .../e2e/test_nonsquare_matrix_mult_vectorized.py | 4 +++- test/npu-xrt/e2e/test_offsets_sizes_strides.py | 4 +++- test/npu-xrt/e2e/test_repeat_count.py | 4 +++- test/npu-xrt/e2e/test_shared_buffers_init_value.py | 4 +++- test/npu-xrt/e2e/test_square_matrix_mult.py | 4 +++- test/npu-xrt/e2e/test_square_matrix_mult_vectorized.py | 4 +++- test/npu-xrt/e2e/test_tiled_matrix_add.py | 4 +++- .../test_tiled_nonsquare_spatial_tile_matrix_mult.py | 4 +++- .../e2e/test_tiled_nonsquare_tile_matrix_mult.py | 4 +++- ...test_tiled_nonsquare_tile_matrix_mult_vectorized.py | 4 +++- test/npu-xrt/e2e/test_tiled_vec_add.py | 4 +++- test/npu-xrt/e2e/test_tiled_vec_add_vectorized.py | 4 +++- test/npu-xrt/e2e/test_vec_dot.py | 4 +++- test/npu-xrt/e2e/util.py | 7 +++++++ test/npu-xrt/matrix_multiplication_using_dma/aie.mlir | 7 +++++-- test/npu-xrt/two_col/aie.mlir | 9 +++++++++ test/npu-xrt/vector_scalar_using_dma/aie.mlir | 7 +++++-- 105 files changed, 324 insertions(+), 116 deletions(-) mode change 100755 => 100644 programming_examples/basic/dma_transpose/aie2.py mode change 100755 => 100644 programming_examples/basic/matrix_multiplication/plot_sweep.py mode change 100755 => 100644 programming_examples/basic/passthrough_dmas/aie2.py mode change 100755 => 100644 programming_examples/basic/vector_reduce_max/aie2.py mode change 100755 => 100644 programming_examples/basic/vector_reduce_min/aie2.py mode change 100755 => 100644 programming_examples/basic/vector_vector_add/aie2.py mode change 100755 => 100644 programming_examples/basic/vector_vector_mul/aie2.py diff --git a/programming_examples/basic/dma_transpose/aie2.py b/programming_examples/basic/dma_transpose/aie2.py old mode 100755 new mode 100644 index ce0291997d..7af771d5b7 --- a/programming_examples/basic/dma_transpose/aie2.py +++ b/programming_examples/basic/dma_transpose/aie2.py @@ -1,9 +1,10 @@ +# dma_transpose/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/matrix_multiplication/plot_sweep.py b/programming_examples/basic/matrix_multiplication/plot_sweep.py old mode 100755 new mode 100644 index b363bbb139..218ab387f3 --- a/programming_examples/basic/matrix_multiplication/plot_sweep.py +++ b/programming_examples/basic/matrix_multiplication/plot_sweep.py @@ -1,4 +1,11 @@ #!/usr/bin/env python3 +# matrix_multiplication/plot_sweep.py -*- Python -*- +# +# 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. or its affiliates import argparse import csv diff --git a/programming_examples/basic/matrix_scalar_add/aie2.py b/programming_examples/basic/matrix_scalar_add/aie2.py index 234680760d..52a71688fc 100644 --- a/programming_examples/basic/matrix_scalar_add/aie2.py +++ b/programming_examples/basic/matrix_scalar_add/aie2.py @@ -1,9 +1,10 @@ +# matrix_scalar_add/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from aie.dialects.aie import * from aie.dialects.aiex import * diff --git a/programming_examples/basic/passthrough_dmas/aie2.py b/programming_examples/basic/passthrough_dmas/aie2.py old mode 100755 new mode 100644 index 07e58aa14c..10becd4e27 --- a/programming_examples/basic/passthrough_dmas/aie2.py +++ b/programming_examples/basic/passthrough_dmas/aie2.py @@ -1,9 +1,10 @@ +# passthrough_dmas/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/passthrough_kernel/aie2.py b/programming_examples/basic/passthrough_kernel/aie2.py index 0b2b598810..4fe9a7ed9b 100644 --- a/programming_examples/basic/passthrough_kernel/aie2.py +++ b/programming_examples/basic/passthrough_kernel/aie2.py @@ -1,9 +1,10 @@ +# passthrough_kernel/aie2.py -*- Python -*- # # 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 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/passthrough_kernel/test.py b/programming_examples/basic/passthrough_kernel/test.py index 6e71fb9728..30b902f8fb 100644 --- a/programming_examples/basic/passthrough_kernel/test.py +++ b/programming_examples/basic/passthrough_kernel/test.py @@ -1,7 +1,10 @@ # test.py -*- Python -*- # -# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. -# SPDX-License-Identifier: MIT +# 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. or its affiliates import numpy as np import pyxrt as xrt diff --git a/programming_examples/basic/vector_exp/aie2.py b/programming_examples/basic/vector_exp/aie2.py index 39f8f18a32..af58a6392b 100644 --- a/programming_examples/basic/vector_exp/aie2.py +++ b/programming_examples/basic/vector_exp/aie2.py @@ -1,9 +1,10 @@ +# vector_exp/aie2.py -*- Python -*- # # 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 # -# Copyright (C) 2024, Advanced Micro Devices, Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from aie.dialects.aie import * # primary mlir-aie dialect definitions from aie.extras.context import mlir_mod_ctx # mlir ctx wrapper diff --git a/programming_examples/basic/vector_reduce_add/aie2.py b/programming_examples/basic/vector_reduce_add/aie2.py index 4bd51446dd..fe6f049984 100644 --- a/programming_examples/basic/vector_reduce_add/aie2.py +++ b/programming_examples/basic/vector_reduce_add/aie2.py @@ -1,9 +1,10 @@ +# vector_reduce_add/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/vector_reduce_max/aie2.py b/programming_examples/basic/vector_reduce_max/aie2.py old mode 100755 new mode 100644 index 8a40f9b093..31ee9f181a --- a/programming_examples/basic/vector_reduce_max/aie2.py +++ b/programming_examples/basic/vector_reduce_max/aie2.py @@ -1,9 +1,10 @@ +# vector_reduce_max/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/vector_reduce_min/aie2.py b/programming_examples/basic/vector_reduce_min/aie2.py old mode 100755 new mode 100644 index 0fbb3e8e42..430ad5f9ef --- a/programming_examples/basic/vector_reduce_min/aie2.py +++ b/programming_examples/basic/vector_reduce_min/aie2.py @@ -1,9 +1,10 @@ +# vector_reduce_min/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/vector_scalar_add/aie2.py b/programming_examples/basic/vector_scalar_add/aie2.py index 4a54ca3cea..46b44308b6 100644 --- a/programming_examples/basic/vector_scalar_add/aie2.py +++ b/programming_examples/basic/vector_scalar_add/aie2.py @@ -1,9 +1,10 @@ +# vector_scalar_add/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from aie.dialects.aie import * from aie.dialects.aiex import * diff --git a/programming_examples/basic/vector_scalar_mul/aie2.py b/programming_examples/basic/vector_scalar_mul/aie2.py index f6bdbf1a0a..8d367ced50 100644 --- a/programming_examples/basic/vector_scalar_mul/aie2.py +++ b/programming_examples/basic/vector_scalar_mul/aie2.py @@ -1,9 +1,10 @@ +# vector_scalar_mul/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/vector_scalar_mul/test.py b/programming_examples/basic/vector_scalar_mul/test.py index 996bb90c78..c9e6af8d1b 100644 --- a/programming_examples/basic/vector_scalar_mul/test.py +++ b/programming_examples/basic/vector_scalar_mul/test.py @@ -1,7 +1,10 @@ # test.py -*- Python -*- # -# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. -# SPDX-License-Identifier: MIT +# 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. or its affiliates import numpy as np import pyxrt as xrt diff --git a/programming_examples/basic/vector_vector_add/aie2.py b/programming_examples/basic/vector_vector_add/aie2.py old mode 100755 new mode 100644 index 30c0310596..62ad20534c --- a/programming_examples/basic/vector_vector_add/aie2.py +++ b/programming_examples/basic/vector_vector_add/aie2.py @@ -1,9 +1,10 @@ +# vector_vector_add/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_examples/basic/vector_vector_mul/aie2.py b/programming_examples/basic/vector_vector_mul/aie2.py old mode 100755 new mode 100644 index a911a4eadd..fa07bbe58a --- a/programming_examples/basic/vector_vector_mul/aie2.py +++ b/programming_examples/basic/vector_vector_mul/aie2.py @@ -1,9 +1,10 @@ +# vector_vector_mul/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_guide/section-1/aie2.py b/programming_guide/section-1/aie2.py index 5feeb48eb2..c1e60d549e 100644 --- a/programming_guide/section-1/aie2.py +++ b/programming_guide/section-1/aie2.py @@ -1,9 +1,10 @@ +# section-1/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from aie.dialects.aie import * # primary mlir-aie dialect definitions from aie.extras.context import mlir_mod_ctx # mlir-aie context diff --git a/programming_guide/section-2/section-2d/aie2.py b/programming_guide/section-2/section-2d/aie2.py index 6382ddeef2..a523cb76ca 100644 --- a/programming_guide/section-2/section-2d/aie2.py +++ b/programming_guide/section-2/section-2d/aie2.py @@ -1,9 +1,10 @@ +# section-2/section-2d/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from aie.dialects.aie import * # primary mlir-aie dialect definitions from aie.extras.context import mlir_mod_ctx # mlir ctx wrapper diff --git a/programming_guide/section-2/section-2d/aie2_multi.py b/programming_guide/section-2/section-2d/aie2_multi.py index 04727e7b00..4b7fee77d6 100644 --- a/programming_guide/section-2/section-2d/aie2_multi.py +++ b/programming_guide/section-2/section-2d/aie2_multi.py @@ -1,9 +1,10 @@ +# section-2/section-2d/aie2_multi.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from aie.dialects.aie import * # primary mlir-aie dialect definitions from aie.extras.context import mlir_mod_ctx # mlir ctx wrapper diff --git a/programming_guide/section-3/aie2.py b/programming_guide/section-3/aie2.py index 610d0db1b9..7716de709a 100644 --- a/programming_guide/section-3/aie2.py +++ b/programming_guide/section-3/aie2.py @@ -1,9 +1,10 @@ +# section-3/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_guide/section-3/test.py b/programming_guide/section-3/test.py index 4028e889b6..cb57c1e4c6 100644 --- a/programming_guide/section-3/test.py +++ b/programming_guide/section-3/test.py @@ -1,7 +1,10 @@ # test.py -*- Python -*- # -# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. -# SPDX-License-Identifier: MIT +# 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. or its affiliates import numpy as np import pyxrt as xrt diff --git a/programming_guide/section-4/section-4a/aie2.py b/programming_guide/section-4/section-4a/aie2.py index b09f9d0637..427ed5e99c 100644 --- a/programming_guide/section-4/section-4a/aie2.py +++ b/programming_guide/section-4/section-4a/aie2.py @@ -1,9 +1,10 @@ +# section-4/section-4a/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_guide/section-4/section-4a/test.py b/programming_guide/section-4/section-4a/test.py index 887586472d..be6cc7dc0b 100644 --- a/programming_guide/section-4/section-4a/test.py +++ b/programming_guide/section-4/section-4a/test.py @@ -1,7 +1,10 @@ # test.py -*- Python -*- # -# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. -# SPDX-License-Identifier: MIT +# 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. or its affiliates import numpy as np import pyxrt as xrt diff --git a/programming_guide/section-4/section-4b/aie2.py b/programming_guide/section-4/section-4b/aie2.py index 87d4e85d13..9a445382b7 100644 --- a/programming_guide/section-4/section-4b/aie2.py +++ b/programming_guide/section-4/section-4b/aie2.py @@ -1,9 +1,10 @@ +# section-4/section-4b/aie2.py -*- Python -*- # # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import sys diff --git a/programming_guide/section-4/section-4b/test.py b/programming_guide/section-4/section-4b/test.py index e7f6628ba6..b8ada47d6c 100644 --- a/programming_guide/section-4/section-4b/test.py +++ b/programming_guide/section-4/section-4b/test.py @@ -1,7 +1,10 @@ # test.py -*- Python -*- # -# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. -# SPDX-License-Identifier: MIT +# 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. or its affiliates import numpy as np import pyxrt as xrt diff --git a/test/Targets/ADFGenerateCPPGraph/adf_simple_stream.mlir b/test/Targets/ADFGenerateCPPGraph/adf_simple_stream.mlir index bd9b84ef8e..8723c68367 100644 --- a/test/Targets/ADFGenerateCPPGraph/adf_simple_stream.mlir +++ b/test/Targets/ADFGenerateCPPGraph/adf_simple_stream.mlir @@ -1,4 +1,12 @@ -// NOTE: Assertions have been autogenerated by utils/update_mlir_test_checks.py +//===- adf_simple_stream.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate --adf-generate-cpp-graph %s | FileCheck %s // CHECK: #ifndef FUNCTION_KERNELS_H diff --git a/test/Targets/ADFGenerateCPPGraph/adf_simple_window.mlir b/test/Targets/ADFGenerateCPPGraph/adf_simple_window.mlir index 8473e6aa54..9b9b683bd6 100644 --- a/test/Targets/ADFGenerateCPPGraph/adf_simple_window.mlir +++ b/test/Targets/ADFGenerateCPPGraph/adf_simple_window.mlir @@ -1,4 +1,12 @@ -// NOTE: Assertions have been autogenerated by utils/update_mlir_test_checks.py +//===- adf_simple_window.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate --adf-generate-cpp-graph %s | tee %T/graph.h | FileCheck %s // UN: source /proj/xbuilds/2021.1_daily_latest/installs/lin64/Vitis/2021.1/settings64.sh; /proj/xbuilds/2021.1_daily_latest/installs/lin64/Vitis/2021.1/aietools/bin/aiecompiler %S/project_window.cpp -I %T diff --git a/test/Targets/AIEGenerateJSON/shim_alloc.mlir b/test/Targets/AIEGenerateJSON/shim_alloc.mlir index a8231d7b91..42fc81ba53 100644 --- a/test/Targets/AIEGenerateJSON/shim_alloc.mlir +++ b/test/Targets/AIEGenerateJSON/shim_alloc.mlir @@ -1,13 +1,11 @@ -//===- shim_alloc.mlir --------------------------*- MLIR -*-===// +//===- shim_alloc.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 // -// Copyright (C) 2023, Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // -// Date: May 30th 2023 -// //===----------------------------------------------------------------------===// // RUN: aie-translate -aie-generate-json %s | FileCheck %s diff --git a/test/Targets/AIEGenerateTargetArch/aie.mlir b/test/Targets/AIEGenerateTargetArch/aie.mlir index 0d2d312c92..85a0a31ca7 100644 --- a/test/Targets/AIEGenerateTargetArch/aie.mlir +++ b/test/Targets/AIEGenerateTargetArch/aie.mlir @@ -1,10 +1,10 @@ -//===- simple.mlir ---------------------------------------------*- MLIR -*-===// +//===- aie.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateTargetArch/aie2.mlir b/test/Targets/AIEGenerateTargetArch/aie2.mlir index 9b3ee74748..0883a9514c 100644 --- a/test/Targets/AIEGenerateTargetArch/aie2.mlir +++ b/test/Targets/AIEGenerateTargetArch/aie2.mlir @@ -1,10 +1,10 @@ -//===- simple.mlir ---------------------------------------------*- MLIR -*-===// +//===- aie2.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/aie2_configure_cascade.mlir b/test/Targets/AIEGenerateXAIE/aie2_configure_cascade.mlir index 7ed2bf4afc..8e49e43504 100644 --- a/test/Targets/AIEGenerateXAIE/aie2_configure_cascade.mlir +++ b/test/Targets/AIEGenerateXAIE/aie2_configure_cascade.mlir @@ -1,10 +1,10 @@ -//===- aie2_configure_cascade.mlir ------------------------------*- MLIR -*-===// +//===- aie2_configure_cascade.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. +// (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/aie2_nd_DMA.mlir b/test/Targets/AIEGenerateXAIE/aie2_nd_DMA.mlir index 5893b87bb0..36631750bb 100644 --- a/test/Targets/AIEGenerateXAIE/aie2_nd_DMA.mlir +++ b/test/Targets/AIEGenerateXAIE/aie2_nd_DMA.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/aie2_tileDMA.mlir b/test/Targets/AIEGenerateXAIE/aie2_tileDMA.mlir index 600ae4121a..70ad65fc47 100644 --- a/test/Targets/AIEGenerateXAIE/aie2_tileDMA.mlir +++ b/test/Targets/AIEGenerateXAIE/aie2_tileDMA.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/aie2_tileDMA2.mlir b/test/Targets/AIEGenerateXAIE/aie2_tileDMA2.mlir index cb5729b611..5a303d3d44 100644 --- a/test/Targets/AIEGenerateXAIE/aie2_tileDMA2.mlir +++ b/test/Targets/AIEGenerateXAIE/aie2_tileDMA2.mlir @@ -1,10 +1,10 @@ -//===- aie2_tileDMA.mlir ---------------------------------------*- MLIR -*-===// +//===- aie2_tileDMA2.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/aie2_tileDMA3.mlir b/test/Targets/AIEGenerateXAIE/aie2_tileDMA3.mlir index 6568ba38b7..fb87bc6dfd 100644 --- a/test/Targets/AIEGenerateXAIE/aie2_tileDMA3.mlir +++ b/test/Targets/AIEGenerateXAIE/aie2_tileDMA3.mlir @@ -1,10 +1,10 @@ -//===- aie2_tileDMA.mlir ---------------------------------------*- MLIR -*-===// +//===- aie2_tileDMA3.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/aie2_tileDMA4.mlir b/test/Targets/AIEGenerateXAIE/aie2_tileDMA4.mlir index 97db3f5ed4..e1f92066ad 100644 --- a/test/Targets/AIEGenerateXAIE/aie2_tileDMA4.mlir +++ b/test/Targets/AIEGenerateXAIE/aie2_tileDMA4.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/aie2_tileDMA_locks.mlir b/test/Targets/AIEGenerateXAIE/aie2_tileDMA_locks.mlir index 88cfe56e4f..4508929ccb 100644 --- a/test/Targets/AIEGenerateXAIE/aie2_tileDMA_locks.mlir +++ b/test/Targets/AIEGenerateXAIE/aie2_tileDMA_locks.mlir @@ -1,10 +1,10 @@ -//===- aie2_tileDMA.mlir ---------------------------------------*- MLIR -*-===// +//===- aie2_tileDMA_locks.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/memTileDMA.mlir b/test/Targets/AIEGenerateXAIE/memTileDMA.mlir index 6cb7a5c45f..e60ea0b2c5 100644 --- a/test/Targets/AIEGenerateXAIE/memTileDMA.mlir +++ b/test/Targets/AIEGenerateXAIE/memTileDMA.mlir @@ -1,10 +1,10 @@ -//===- memtile_dma.mlir ------------------------------------------*- MLIR -*-===// +//===- memTileDMA.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/memTileDMA2.mlir b/test/Targets/AIEGenerateXAIE/memTileDMA2.mlir index fbe6d1a08e..2dad77ef64 100644 --- a/test/Targets/AIEGenerateXAIE/memTileDMA2.mlir +++ b/test/Targets/AIEGenerateXAIE/memTileDMA2.mlir @@ -1,10 +1,10 @@ -//===- memtile_dma.mlir ------------------------------------------*- MLIR -*-===// +//===- memTileDMA2.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/packet_drop_header.mlir b/test/Targets/AIEGenerateXAIE/packet_drop_header.mlir index ecc4063fb8..ea2df89b34 100644 --- a/test/Targets/AIEGenerateXAIE/packet_drop_header.mlir +++ b/test/Targets/AIEGenerateXAIE/packet_drop_header.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/packet_shim_header.mlir b/test/Targets/AIEGenerateXAIE/packet_shim_header.mlir index 912ef14a48..ad67e04e5b 100644 --- a/test/Targets/AIEGenerateXAIE/packet_shim_header.mlir +++ b/test/Targets/AIEGenerateXAIE/packet_shim_header.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/plio_shim.mlir b/test/Targets/AIEGenerateXAIE/plio_shim.mlir index b548461a9c..e0ae67bd03 100644 --- a/test/Targets/AIEGenerateXAIE/plio_shim.mlir +++ b/test/Targets/AIEGenerateXAIE/plio_shim.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/plio_shimmux.mlir b/test/Targets/AIEGenerateXAIE/plio_shimmux.mlir index c0f035882b..d8ee2023e0 100644 --- a/test/Targets/AIEGenerateXAIE/plio_shimmux.mlir +++ b/test/Targets/AIEGenerateXAIE/plio_shimmux.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/shim.mlir b/test/Targets/AIEGenerateXAIE/shim.mlir index df53be3f53..52d5530c0f 100644 --- a/test/Targets/AIEGenerateXAIE/shim.mlir +++ b/test/Targets/AIEGenerateXAIE/shim.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/shim_dma_packet.mlir b/test/Targets/AIEGenerateXAIE/shim_dma_packet.mlir index 0d59fda357..f7a57860da 100644 --- a/test/Targets/AIEGenerateXAIE/shim_dma_packet.mlir +++ b/test/Targets/AIEGenerateXAIE/shim_dma_packet.mlir @@ -4,6 +4,7 @@ // 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. or its affiliates // (c) Copyright 2021 Xilinx Inc. // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/shimmux.mlir b/test/Targets/AIEGenerateXAIE/shimmux.mlir index ed639227bf..135301693e 100644 --- a/test/Targets/AIEGenerateXAIE/shimmux.mlir +++ b/test/Targets/AIEGenerateXAIE/shimmux.mlir @@ -1,10 +1,10 @@ -//===- shim_mux.mlir --------------------------------------------*- MLIR -*-===// +//===- shimmux.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 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_error_dma_multi_lock.mlir b/test/Targets/AIEGenerateXAIE/test_error_dma_multi_lock.mlir index 416a6358d4..305d4ad303 100644 --- a/test/Targets/AIEGenerateXAIE/test_error_dma_multi_lock.mlir +++ b/test/Targets/AIEGenerateXAIE/test_error_dma_multi_lock.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_error_dma_multi_state.mlir b/test/Targets/AIEGenerateXAIE/test_error_dma_multi_state.mlir index 7248e878d5..873541e857 100644 --- a/test/Targets/AIEGenerateXAIE/test_error_dma_multi_state.mlir +++ b/test/Targets/AIEGenerateXAIE/test_error_dma_multi_state.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_lock.mlir b/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_lock.mlir index 8d46c4026a..2b549d324a 100644 --- a/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_lock.mlir +++ b/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_lock.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_state.mlir b/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_state.mlir index cc87629ee0..41ed1a08ee 100644 --- a/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_state.mlir +++ b/test/Targets/AIEGenerateXAIE/test_error_shimdma_multi_state.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_explicit_elf.mlir b/test/Targets/AIEGenerateXAIE/test_explicit_elf.mlir index 7ba0bdba9a..5c7e7aee72 100644 --- a/test/Targets/AIEGenerateXAIE/test_explicit_elf.mlir +++ b/test/Targets/AIEGenerateXAIE/test_explicit_elf.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_herd_xaie0.mlir b/test/Targets/AIEGenerateXAIE/test_herd_xaie0.mlir index 9f4e2f3be4..95788dc899 100644 --- a/test/Targets/AIEGenerateXAIE/test_herd_xaie0.mlir +++ b/test/Targets/AIEGenerateXAIE/test_herd_xaie0.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_lock_init.mlir b/test/Targets/AIEGenerateXAIE/test_lock_init.mlir index 97a998825c..ef6bcaa037 100644 --- a/test/Targets/AIEGenerateXAIE/test_lock_init.mlir +++ b/test/Targets/AIEGenerateXAIE/test_lock_init.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps0_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps0_xaie.mlir index 115bef8a9c..2fd6d68381 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps0_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps0_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps1_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps1_xaie.mlir index 848ac5644f..4aa735b01c 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps1_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps1_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps2_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps2_xaie.mlir index e20dd26bc5..708e9fa58f 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps2_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps2_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps3_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps3_xaie.mlir index 34e428e664..6ca882fff2 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps3_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps3_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps4_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps4_xaie.mlir index e20b75479d..55959fdfdc 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps4_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps4_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps5_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps5_xaie.mlir index 31327ebcbf..772f06e72e 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps5_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps5_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps6_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps6_xaie.mlir index e67d723da9..25174160aa 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps6_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps6_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_ps7_xaie.mlir b/test/Targets/AIEGenerateXAIE/test_ps7_xaie.mlir index ba696b20d5..e22204860d 100644 --- a/test/Targets/AIEGenerateXAIE/test_ps7_xaie.mlir +++ b/test/Targets/AIEGenerateXAIE/test_ps7_xaie.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_xaie1.mlir b/test/Targets/AIEGenerateXAIE/test_xaie1.mlir index 7e587d3376..21f210dc3e 100644 --- a/test/Targets/AIEGenerateXAIE/test_xaie1.mlir +++ b/test/Targets/AIEGenerateXAIE/test_xaie1.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_xaie2.mlir b/test/Targets/AIEGenerateXAIE/test_xaie2.mlir index 500e0fb91f..d84aac9b20 100644 --- a/test/Targets/AIEGenerateXAIE/test_xaie2.mlir +++ b/test/Targets/AIEGenerateXAIE/test_xaie2.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_xaie3.mlir b/test/Targets/AIEGenerateXAIE/test_xaie3.mlir index b22f2b30f6..220ef18758 100644 --- a/test/Targets/AIEGenerateXAIE/test_xaie3.mlir +++ b/test/Targets/AIEGenerateXAIE/test_xaie3.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/test_xaie4.mlir b/test/Targets/AIEGenerateXAIE/test_xaie4.mlir index 2b1a2d8af0..592233a629 100644 --- a/test/Targets/AIEGenerateXAIE/test_xaie4.mlir +++ b/test/Targets/AIEGenerateXAIE/test_xaie4.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIEGenerateXAIE/tileDMA.mlir b/test/Targets/AIEGenerateXAIE/tileDMA.mlir index 4712b03340..c7f918e886 100644 --- a/test/Targets/AIEGenerateXAIE/tileDMA.mlir +++ b/test/Targets/AIEGenerateXAIE/tileDMA.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIETargetAirbin/aie.mlir b/test/Targets/AIETargetAirbin/aie.mlir index 6af571ece5..bd71eac4c1 100644 --- a/test/Targets/AIETargetAirbin/aie.mlir +++ b/test/Targets/AIETargetAirbin/aie.mlir @@ -1,8 +1,11 @@ //===- aie.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 2022-2024 Advanced Micro Devices, Inc. or its affiliates // Copyright (C) 2020-2022, Xilinx Inc. -// Copyright (C) 2022, Advanced Micro Devices, Inc. -// SPDX-License-Identifier: MIT // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIETargetCDODirect/empty.mlir b/test/Targets/AIETargetCDODirect/empty.mlir index af92b6a1ea..5ee38a72c2 100644 --- a/test/Targets/AIETargetCDODirect/empty.mlir +++ b/test/Targets/AIETargetCDODirect/empty.mlir @@ -4,7 +4,7 @@ // 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. +// (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIETargetCDODirect/oneshim.mlir b/test/Targets/AIETargetCDODirect/oneshim.mlir index 68b907da61..5310a6f4bd 100644 --- a/test/Targets/AIETargetCDODirect/oneshim.mlir +++ b/test/Targets/AIETargetCDODirect/oneshim.mlir @@ -4,7 +4,7 @@ // 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. +// (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIETargetCDODirect/shims.mlir b/test/Targets/AIETargetCDODirect/shims.mlir index c7618ad5f4..37857ac977 100644 --- a/test/Targets/AIETargetCDODirect/shims.mlir +++ b/test/Targets/AIETargetCDODirect/shims.mlir @@ -4,7 +4,7 @@ // 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. +// (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/Targets/AIETargetHSA/input_with_addresses.mlir b/test/Targets/AIETargetHSA/input_with_addresses.mlir index 1efd284c53..c40c6bef58 100644 --- a/test/Targets/AIETargetHSA/input_with_addresses.mlir +++ b/test/Targets/AIETargetHSA/input_with_addresses.mlir @@ -1,3 +1,12 @@ +//===- input_with_addresses.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate --aie-generate-hsa %s | FileCheck %s diff --git a/test/Targets/AIEVecToCpp/func-translations.mlir b/test/Targets/AIEVecToCpp/func-translations.mlir index 30fc31c6a0..5b98f26c64 100644 --- a/test/Targets/AIEVecToCpp/func-translations.mlir +++ b/test/Targets/AIEVecToCpp/func-translations.mlir @@ -1,3 +1,12 @@ +//===- func-translations.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate %s -aievec-to-cpp | FileCheck %s diff --git a/test/Targets/AIEVecToCpp/matmul-translations.mlir b/test/Targets/AIEVecToCpp/matmul-translations.mlir index a2338d7232..fbf8b7c5b4 100644 --- a/test/Targets/AIEVecToCpp/matmul-translations.mlir +++ b/test/Targets/AIEVecToCpp/matmul-translations.mlir @@ -1,3 +1,12 @@ +//===- matmul-translations.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate %s -aieml -aievec-to-cpp | FileCheck %s // CHECK-LABEL: v16float matmul_nopad( diff --git a/test/Targets/AIEVecToCpp/polygeist_conv2d_i32.mlir b/test/Targets/AIEVecToCpp/polygeist_conv2d_i32.mlir index b5b42d3f59..f09bca96c2 100644 --- a/test/Targets/AIEVecToCpp/polygeist_conv2d_i32.mlir +++ b/test/Targets/AIEVecToCpp/polygeist_conv2d_i32.mlir @@ -1,3 +1,12 @@ +//===- polygeist_conv2d_i32.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-opt --affine-loop-unroll="unroll-full unroll-full-threshold=3" --canonicalize -affine-super-vectorize="virtual-vector-size=8 vectorize-reductions" --aie-vectorize | aie-translate --aievec-to-cpp > %t.cpp module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<"dlti.endianness", "little">, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>, #dlti.dl_entry : vector<2xi32>>>, llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128", llvm.target_triple = "x86_64-unknown-linux-gnu"} { diff --git a/test/Targets/AIEVecToCpp/translate_conv2d_uij_f32.mlir b/test/Targets/AIEVecToCpp/translate_conv2d_uij_f32.mlir index 049d34b31f..0275924408 100644 --- a/test/Targets/AIEVecToCpp/translate_conv2d_uij_f32.mlir +++ b/test/Targets/AIEVecToCpp/translate_conv2d_uij_f32.mlir @@ -1,3 +1,12 @@ +//===- translate_conv2d_uij_f32.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate --aievec-to-cpp %s -split-input-file | FileCheck %s // CHECK-LABEL: void conv2d_0(float * restrict v6, size_t m1, size_t m2, float * restrict v7, size_t m3, float * restrict v8, size_t m4, size_t m5) { diff --git a/test/Targets/AIEVecToCpp/translate_conv2d_uij_i16.mlir b/test/Targets/AIEVecToCpp/translate_conv2d_uij_i16.mlir index e5a71e8303..98e60ef286 100644 --- a/test/Targets/AIEVecToCpp/translate_conv2d_uij_i16.mlir +++ b/test/Targets/AIEVecToCpp/translate_conv2d_uij_i16.mlir @@ -1,3 +1,12 @@ +//===- translate_conv2d_uij_i16.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate --aievec-to-cpp %s -split-input-file | FileCheck %s // CHECK-LABEL: void conv2d(int16_t * restrict v1, int16_t * restrict v2, int16_t * restrict v3) { diff --git a/test/Targets/AIEVecToCpp/translate_conv2d_uij_i32.mlir b/test/Targets/AIEVecToCpp/translate_conv2d_uij_i32.mlir index 0ca39eab1f..779c703c54 100644 --- a/test/Targets/AIEVecToCpp/translate_conv2d_uij_i32.mlir +++ b/test/Targets/AIEVecToCpp/translate_conv2d_uij_i32.mlir @@ -1,3 +1,12 @@ +//===- translate_conv2d_uij_i32.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate --aievec-to-cpp %s -split-input-file | FileCheck %s // CHECK-LABEL: void conv2d_0(int32_t * restrict v1, int32_t * restrict v2, int32_t * restrict v3) { diff --git a/test/Targets/AIEVecToCpp/translate_conv2d_uij_i8.mlir b/test/Targets/AIEVecToCpp/translate_conv2d_uij_i8.mlir index 86be715798..b640526f92 100644 --- a/test/Targets/AIEVecToCpp/translate_conv2d_uij_i8.mlir +++ b/test/Targets/AIEVecToCpp/translate_conv2d_uij_i8.mlir @@ -1,3 +1,12 @@ +//===- translate_conv2d_uij_i8.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. or its affiliates +// +//===----------------------------------------------------------------------===// // RUN: aie-translate --aievec-to-cpp %s -split-input-file | FileCheck %s // CHECK-LABEL: void conv2d_0(int8_t * restrict v1, int8_t * restrict v2, int8_t * restrict v3) { diff --git a/test/Targets/NPU/npu_instgen.mlir b/test/Targets/NPU/npu_instgen.mlir index 0bb4d76ca8..299311bfae 100644 --- a/test/Targets/NPU/npu_instgen.mlir +++ b/test/Targets/NPU/npu_instgen.mlir @@ -4,7 +4,7 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // -// (c) Copyright 2023 Advanced Micro Devices, Inc. +// (c) Copyright 2023-2024 Advanced Micro Devices, Inc. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/npu-xrt/add_256_using_dma_op_no_double_buffering/aie.mlir b/test/npu-xrt/add_256_using_dma_op_no_double_buffering/aie.mlir index b2f64cf375..9641e2ac7c 100644 --- a/test/npu-xrt/add_256_using_dma_op_no_double_buffering/aie.mlir +++ b/test/npu-xrt/add_256_using_dma_op_no_double_buffering/aie.mlir @@ -1,8 +1,11 @@ //===- aie.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 2022-2024 Advanced Micro Devices, Inc. or its affiliates // Copyright (C) 2020-2022, Xilinx Inc. -// Copyright (C) 2022, Advanced Micro Devices, Inc. -// SPDX-License-Identifier: MIT // //===----------------------------------------------------------------------===// diff --git a/test/npu-xrt/add_314_using_dma_op/aie.mlir b/test/npu-xrt/add_314_using_dma_op/aie.mlir index f8a1f2e962..8850e79ee0 100644 --- a/test/npu-xrt/add_314_using_dma_op/aie.mlir +++ b/test/npu-xrt/add_314_using_dma_op/aie.mlir @@ -1,8 +1,11 @@ //===- aie.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 2022-2024 Advanced Micro Devices, Inc. or its affiliates // Copyright (C) 2020-2022, Xilinx Inc. -// Copyright (C) 2022, Advanced Micro Devices, Inc. -// SPDX-License-Identifier: MIT // //===----------------------------------------------------------------------===// diff --git a/test/npu-xrt/add_one_objFifo/aie.mlir b/test/npu-xrt/add_one_objFifo/aie.mlir index 676dda4305..f05628a742 100644 --- a/test/npu-xrt/add_one_objFifo/aie.mlir +++ b/test/npu-xrt/add_one_objFifo/aie.mlir @@ -1,8 +1,11 @@ //===- aie.mlir ------------------------------------------------*- MLIR -*-===// // -// Copyright (C) 2023, Advanced Micro Devices, Inc. +// 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 2023-2024 Advanced Micro Devices, Inc. or its affiliates +// //===----------------------------------------------------------------------===// module { diff --git a/test/npu-xrt/add_one_using_dma/aie.mlir b/test/npu-xrt/add_one_using_dma/aie.mlir index d72939f422..b8a319c431 100644 --- a/test/npu-xrt/add_one_using_dma/aie.mlir +++ b/test/npu-xrt/add_one_using_dma/aie.mlir @@ -1,8 +1,11 @@ //===- aie.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 2022-2024 Advanced Micro Devices, Inc. or its affiliates // Copyright (C) 2020-2022, Xilinx Inc. -// Copyright (C) 2022, Advanced Micro Devices, Inc. -// SPDX-License-Identifier: MIT // //===----------------------------------------------------------------------===// diff --git a/test/npu-xrt/cascade_flows/aie.mlir b/test/npu-xrt/cascade_flows/aie.mlir index 5ea0876f5e..54fbd77091 100644 --- a/test/npu-xrt/cascade_flows/aie.mlir +++ b/test/npu-xrt/cascade_flows/aie.mlir @@ -1,7 +1,10 @@ //===- aie.mlir ------------------------------------------------*- MLIR -*-===// // -// Copyright (C) 2024, Advanced Micro Devices, Inc. -// SPDX-License-Identifier: MIT +// 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. or its affiliates // //===----------------------------------------------------------------------===// diff --git a/test/npu-xrt/e2e/conftest.py b/test/npu-xrt/e2e/conftest.py index c2f981380f..f831138449 100644 --- a/test/npu-xrt/e2e/conftest.py +++ b/test/npu-xrt/e2e/conftest.py @@ -1,3 +1,10 @@ +# npu-xrt/e2e/conftest.py -*- Python -*- +# +# 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. or its affiliates import os from pathlib import Path import subprocess diff --git a/test/npu-xrt/e2e/test_add_256_using_dma_op_no_double_buffering.py b/test/npu-xrt/e2e/test_add_256_using_dma_op_no_double_buffering.py index 58ddf85cf6..531c29f8a2 100644 --- a/test/npu-xrt/e2e/test_add_256_using_dma_op_no_double_buffering.py +++ b/test/npu-xrt/e2e/test_add_256_using_dma_op_no_double_buffering.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_add_256_using_dma_op_no_double_buffering.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_locks.py b/test/npu-xrt/e2e/test_locks.py index b6b9f66296..d940949d85 100644 --- a/test/npu-xrt/e2e/test_locks.py +++ b/test/npu-xrt/e2e/test_locks.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_locks.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path import random diff --git a/test/npu-xrt/e2e/test_manual_dpu_args.py b/test/npu-xrt/e2e/test_manual_dpu_args.py index 9d37cbc146..e7cbe8684c 100644 --- a/test/npu-xrt/e2e/test_manual_dpu_args.py +++ b/test/npu-xrt/e2e/test_manual_dpu_args.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_manual_dpu_args.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_nonsquare_matrix_mult.py b/test/npu-xrt/e2e/test_nonsquare_matrix_mult.py index 06fc359e6d..e8344b2884 100644 --- a/test/npu-xrt/e2e/test_nonsquare_matrix_mult.py +++ b/test/npu-xrt/e2e/test_nonsquare_matrix_mult.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_nonsquare_matrix_mult.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_nonsquare_matrix_mult_vectorized.py b/test/npu-xrt/e2e/test_nonsquare_matrix_mult_vectorized.py index 986eb0b8f7..7e4e6e9534 100644 --- a/test/npu-xrt/e2e/test_nonsquare_matrix_mult_vectorized.py +++ b/test/npu-xrt/e2e/test_nonsquare_matrix_mult_vectorized.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_nonsquare_matrix_mult_vectorized.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from __future__ import annotations diff --git a/test/npu-xrt/e2e/test_offsets_sizes_strides.py b/test/npu-xrt/e2e/test_offsets_sizes_strides.py index c84e17db4c..d668f81e09 100644 --- a/test/npu-xrt/e2e/test_offsets_sizes_strides.py +++ b/test/npu-xrt/e2e/test_offsets_sizes_strides.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_offsets_sizes_strides.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_repeat_count.py b/test/npu-xrt/e2e/test_repeat_count.py index 4491b84a5b..27bdd7cfee 100644 --- a/test/npu-xrt/e2e/test_repeat_count.py +++ b/test/npu-xrt/e2e/test_repeat_count.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_repeat_count.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates import random import sys diff --git a/test/npu-xrt/e2e/test_shared_buffers_init_value.py b/test/npu-xrt/e2e/test_shared_buffers_init_value.py index bd08cbea4c..5db888a066 100644 --- a/test/npu-xrt/e2e/test_shared_buffers_init_value.py +++ b/test/npu-xrt/e2e/test_shared_buffers_init_value.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_shared_buffers_init_value.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path import random diff --git a/test/npu-xrt/e2e/test_square_matrix_mult.py b/test/npu-xrt/e2e/test_square_matrix_mult.py index e855250b40..a9a1aff299 100644 --- a/test/npu-xrt/e2e/test_square_matrix_mult.py +++ b/test/npu-xrt/e2e/test_square_matrix_mult.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_square_matrix_mult.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_square_matrix_mult_vectorized.py b/test/npu-xrt/e2e/test_square_matrix_mult_vectorized.py index 8c21bd79a5..f20e64e3df 100644 --- a/test/npu-xrt/e2e/test_square_matrix_mult_vectorized.py +++ b/test/npu-xrt/e2e/test_square_matrix_mult_vectorized.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_square_matrix_mult_vectorized.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from __future__ import annotations diff --git a/test/npu-xrt/e2e/test_tiled_matrix_add.py b/test/npu-xrt/e2e/test_tiled_matrix_add.py index 855f79ef34..d248c769be 100644 --- a/test/npu-xrt/e2e/test_tiled_matrix_add.py +++ b/test/npu-xrt/e2e/test_tiled_matrix_add.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_tiled_matrix_add.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_tiled_nonsquare_spatial_tile_matrix_mult.py b/test/npu-xrt/e2e/test_tiled_nonsquare_spatial_tile_matrix_mult.py index bd301cd1da..bd417b9426 100644 --- a/test/npu-xrt/e2e/test_tiled_nonsquare_spatial_tile_matrix_mult.py +++ b/test/npu-xrt/e2e/test_tiled_nonsquare_spatial_tile_matrix_mult.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_tiled_nonsquare_spatial_tile_matrix_mult.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from __future__ import annotations diff --git a/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult.py b/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult.py index 9eb30b92bc..1fb2513612 100644 --- a/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult.py +++ b/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult_vectorized.py b/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult_vectorized.py index 0bf28b3c9a..4c9c368fe3 100644 --- a/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult_vectorized.py +++ b/test/npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult_vectorized.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_tiled_nonsquare_tile_matrix_mult_vectorized.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from __future__ import annotations diff --git a/test/npu-xrt/e2e/test_tiled_vec_add.py b/test/npu-xrt/e2e/test_tiled_vec_add.py index cccea01c04..c5b66355c6 100644 --- a/test/npu-xrt/e2e/test_tiled_vec_add.py +++ b/test/npu-xrt/e2e/test_tiled_vec_add.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_tiled_vec_add.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/test_tiled_vec_add_vectorized.py b/test/npu-xrt/e2e/test_tiled_vec_add_vectorized.py index 9c3fb3b6a6..a834446c7a 100644 --- a/test/npu-xrt/e2e/test_tiled_vec_add_vectorized.py +++ b/test/npu-xrt/e2e/test_tiled_vec_add_vectorized.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_tiled_vec_add_vectorized.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from __future__ import annotations diff --git a/test/npu-xrt/e2e/test_vec_dot.py b/test/npu-xrt/e2e/test_vec_dot.py index 91a4633c07..a34da60a4c 100644 --- a/test/npu-xrt/e2e/test_vec_dot.py +++ b/test/npu-xrt/e2e/test_vec_dot.py @@ -1,8 +1,10 @@ +# npu-xrt/e2e/test_vec_dot.py -*- Python -*- +# # 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 2023 AMD Inc. +# (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates from pathlib import Path diff --git a/test/npu-xrt/e2e/util.py b/test/npu-xrt/e2e/util.py index ebca26a35d..e05a5f40fa 100644 --- a/test/npu-xrt/e2e/util.py +++ b/test/npu-xrt/e2e/util.py @@ -1,3 +1,10 @@ +# npu-xrt/e2e/util.py -*- Python -*- +# +# 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. or its affiliates import collections from itertools import islice, zip_longest diff --git a/test/npu-xrt/matrix_multiplication_using_dma/aie.mlir b/test/npu-xrt/matrix_multiplication_using_dma/aie.mlir index 1093157f4e..f589386ede 100644 --- a/test/npu-xrt/matrix_multiplication_using_dma/aie.mlir +++ b/test/npu-xrt/matrix_multiplication_using_dma/aie.mlir @@ -1,8 +1,11 @@ //===- aie.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 2022-2024 Advanced Micro Devices, Inc. or its affiliates // Copyright (C) 2020-2022, Xilinx Inc. -// Copyright (C) 2022, Advanced Micro Devices, Inc. -// SPDX-License-Identifier: MIT // //===----------------------------------------------------------------------===// diff --git a/test/npu-xrt/two_col/aie.mlir b/test/npu-xrt/two_col/aie.mlir index ec768ce7c2..4dac457a33 100644 --- a/test/npu-xrt/two_col/aie.mlir +++ b/test/npu-xrt/two_col/aie.mlir @@ -1,3 +1,12 @@ +//===- aie.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. or its affiliates +// +//===----------------------------------------------------------------------===// module { aie.device(npu1_2col) { %0 = aie.tile(0, 0) diff --git a/test/npu-xrt/vector_scalar_using_dma/aie.mlir b/test/npu-xrt/vector_scalar_using_dma/aie.mlir index 40588db89d..81ccccffbd 100644 --- a/test/npu-xrt/vector_scalar_using_dma/aie.mlir +++ b/test/npu-xrt/vector_scalar_using_dma/aie.mlir @@ -1,8 +1,11 @@ //===- aie.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 2022-2024 Advanced Micro Devices, Inc. or its affiliates // Copyright (C) 2020-2022, Xilinx Inc. -// Copyright (C) 2022, Advanced Micro Devices, Inc. -// SPDX-License-Identifier: MIT // //===----------------------------------------------------------------------===//