From 1a62409696fd3d716e3fc74323adfeeaa9f53e3b Mon Sep 17 00:00:00 2001 From: Amily Wu Date: Tue, 13 Aug 2024 15:52:55 -0500 Subject: [PATCH] Add copyright headers to all py --- tuning/autotune.py | 6 +++++- tuning/evaluate.py | 6 +++++- tuning/gen_matrices.py | 7 ++++++- tuning/generate_tuning_config.py | 6 +++++- tuning/test_autotune.py | 6 ++++++ tuning/test_tune.py | 6 ++++++ tuning/tune.py | 6 +++++- 7 files changed, 38 insertions(+), 5 deletions(-) diff --git a/tuning/autotune.py b/tuning/autotune.py index a6e4ac8..4b3f7a6 100755 --- a/tuning/autotune.py +++ b/tuning/autotune.py @@ -1,4 +1,8 @@ -#!/usr/bin/env python3 +# Copyright 2024 Advanced Micro Devices, Inc +# +# 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 import sys import shutil diff --git a/tuning/evaluate.py b/tuning/evaluate.py index acc28ba..b8f23e4 100755 --- a/tuning/evaluate.py +++ b/tuning/evaluate.py @@ -1,4 +1,8 @@ -#! /usr/bin/env python3 +# Copyright 2024 Advanced Micro Devices, Inc +# +# 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 import argparse import numpy as np diff --git a/tuning/gen_matrices.py b/tuning/gen_matrices.py index 5c51084..3f586b2 100755 --- a/tuning/gen_matrices.py +++ b/tuning/gen_matrices.py @@ -1,4 +1,9 @@ -#! /usr/bin/env python3 +# Copyright 2024 Advanced Micro Devices, Inc +# +# 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 + import numpy as np from argparse import ArgumentParser diff --git a/tuning/generate_tuning_config.py b/tuning/generate_tuning_config.py index e86986e..39e8264 100755 --- a/tuning/generate_tuning_config.py +++ b/tuning/generate_tuning_config.py @@ -1,4 +1,8 @@ -#!/usr/bin/env python3 +# Copyright 2024 Advanced Micro Devices, Inc +# +# 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 # Given an input tuning spec, generates the config files used by the tuner. diff --git a/tuning/test_autotune.py b/tuning/test_autotune.py index 9a0b37b..4b92597 100644 --- a/tuning/test_autotune.py +++ b/tuning/test_autotune.py @@ -1,3 +1,9 @@ +# Copyright 2024 Advanced Micro Devices, Inc +# +# 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 + import argparse import pytest from unittest.mock import call, patch, MagicMock diff --git a/tuning/test_tune.py b/tuning/test_tune.py index 1761d14..3e52863 100644 --- a/tuning/test_tune.py +++ b/tuning/test_tune.py @@ -1,3 +1,9 @@ +# Copyright 2024 Advanced Micro Devices, Inc +# +# 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 + import pytest import tune diff --git a/tuning/tune.py b/tuning/tune.py index d5acdbc..5ae981b 100755 --- a/tuning/tune.py +++ b/tuning/tune.py @@ -1,4 +1,8 @@ -#!/usr/bin/env python3 +# Copyright 2024 Advanced Micro Devices, Inc +# +# 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 # Given an input dispatch, this code modifies the hyperparameters # in the code and runs it.