Skip to content

Commit

Permalink
copyright update for tests. (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenneuendorffer authored May 21, 2024
1 parent f507a5f commit 8ed916b
Show file tree
Hide file tree
Showing 105 changed files with 324 additions and 116 deletions.
3 changes: 2 additions & 1 deletion programming_examples/basic/dma_transpose/aie2.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions programming_examples/basic/matrix_multiplication/plot_sweep.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/matrix_scalar_add/aie2.py
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/passthrough_dmas/aie2.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/passthrough_kernel/aie2.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 5 additions & 2 deletions programming_examples/basic/passthrough_kernel/test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_exp/aie2.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_reduce_add/aie2.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_reduce_max/aie2.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_reduce_min/aie2.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_scalar_add/aie2.py
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_scalar_mul/aie2.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 5 additions & 2 deletions programming_examples/basic/vector_scalar_mul/test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_vector_add/aie2.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion programming_examples/basic/vector_vector_mul/aie2.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 2 additions & 1 deletion programming_guide/section-1/aie2.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_guide/section-2/section-2d/aie2.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_guide/section-2/section-2d/aie2_multi.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_guide/section-3/aie2.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 5 additions & 2 deletions programming_guide/section-3/test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_guide/section-4/section-4a/aie2.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 5 additions & 2 deletions programming_guide/section-4/section-4a/test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion programming_guide/section-4/section-4b/aie2.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 5 additions & 2 deletions programming_guide/section-4/section-4b/test.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 9 additions & 1 deletion test/Targets/ADFGenerateCPPGraph/adf_simple_stream.mlir
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 9 additions & 1 deletion test/Targets/ADFGenerateCPPGraph/adf_simple_window.mlir
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 2 additions & 4 deletions test/Targets/AIEGenerateJSON/shim_alloc.mlir
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/Targets/AIEGenerateTargetArch/aie.mlir
Original file line number Diff line number Diff line change
@@ -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
//
//===----------------------------------------------------------------------===//

Expand Down
4 changes: 2 additions & 2 deletions test/Targets/AIEGenerateTargetArch/aie2.mlir
Original file line number Diff line number Diff line change
@@ -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
//
//===----------------------------------------------------------------------===//

Expand Down
4 changes: 2 additions & 2 deletions test/Targets/AIEGenerateXAIE/aie2_configure_cascade.mlir
Original file line number Diff line number Diff line change
@@ -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
//
//===----------------------------------------------------------------------===//

Expand Down
2 changes: 1 addition & 1 deletion test/Targets/AIEGenerateXAIE/aie2_nd_DMA.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
//===----------------------------------------------------------------------===//

Expand Down
2 changes: 1 addition & 1 deletion test/Targets/AIEGenerateXAIE/aie2_tileDMA.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
//===----------------------------------------------------------------------===//

Expand Down
Loading

0 comments on commit 8ed916b

Please sign in to comment.