Standardize Python files to use Python 3

Python 2 is no longer maintained, and using python3 avoids accidental invocation of outdated interpreters.

AMD-Internal: [CPUPL-6579]
This commit is contained in:
Smyth, Edward
2025-08-06 12:04:26 +01:00
committed by GitHub
parent 9d571bb5d3
commit 563b161933
10 changed files with 19 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""
@@ -7,7 +7,7 @@
libraries.
Copyright (C) 2014, The University of Texas at Austin
Copyright (C) 2018 - 2023, Advanced Micro Devices, Inc. All rights reserved.
Copyright (C) 2018 - 2025, Advanced Micro Devices, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env python3
#
# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved.
#

View File

@@ -1,4 +1,5 @@
"""Copyright (C) 2020 - 2023, Advanced Micro Devices, Inc. All rights reserved."""
#!/usr/bin/env python3
"""Copyright (C) 2020 - 2025, Advanced Micro Devices, Inc. All rights reserved."""
import subprocess
import sys

View File

@@ -1,4 +1,5 @@
"""Copyright (C) 2021 - 2023, Advanced Micro Devices, Inc. All rights reserved."""
#!/usr/bin/env python3
"""Copyright (C) 2021 - 2025, Advanced Micro Devices, Inc. All rights reserved."""
################################################################################
# This file is used to mirroring the refkernels folder data into to zen, zen2, #

View File

@@ -1,4 +1,5 @@
##Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.##
#!/usr/bin/env python3
##Copyright (C) 2023 - 2025, Advanced Micro Devices, Inc. All rights reserved.##
# Import modules
import os

View File

@@ -1,4 +1,5 @@
##Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.##
#!/usr/bin/env python3
##Copyright (C) 2023 - 2025, Advanced Micro Devices, Inc. All rights reserved.##
# Import modules
import os

View File

@@ -1,4 +1,5 @@
##Copyright (C) 2023 - 2024, Advanced Micro Devices, Inc. All rights reserved.##
#!/usr/bin/env python3
##Copyright (C) 2023 - 2025, Advanced Micro Devices, Inc. All rights reserved.##
# Import modules
import os

View File

@@ -1,4 +1,5 @@
##Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.##
#!/usr/bin/env python3
##Copyright (C) 2023 - 2025, Advanced Micro Devices, Inc. All rights reserved.##
# Import modules
import os

View File

@@ -1,10 +1,11 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# BLIS
# An object-based framework for developing high-performance BLAS-like
# libraries.
#
# Copyright (C) 2014, The University of Texas at Austin
# Copyright (C) 2024 - 2025, Advanced Micro Devices, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are

View File

@@ -1,4 +1,5 @@
"""Copyright (C) 2020 - 2023, Advanced Micro Devices, Inc. All rights reserved."""
#!/usr/bin/env python3
"""Copyright (C) 2020 - 2025, Advanced Micro Devices, Inc. All rights reserved."""
import re
import subprocess
import yaml