From 574ebcf75548d7ea6ce39874443311a26622710f Mon Sep 17 00:00:00 2001 From: "Karl W. Schulz" Date: Mon, 13 Feb 2023 14:50:24 -0600 Subject: [PATCH] apply "make license" update Signed-off-by: Karl W. Schulz --- cmake/Dockerfile | 8 +- cmake/rocm_install.sh | 8 +- docker/docker-entrypoint.sh | 8 +- src/common.py | 8 +- src/omniperf | 116 +++++++++++------- .../convertor/mongodb/convert | 8 +- .../convertor/sql/convertor.py | 8 +- src/omniperf_analyze/omniperf_analyze.py | 8 +- .../tests/unit/ast_parser_tester.py | 8 +- src/omniperf_analyze/utils/file_io.py | 8 +- src/omniperf_analyze/utils/gui.py | 8 +- .../utils/gui_components/header.py | 8 +- .../utils/gui_components/memchart.py | 8 +- .../utils/gui_components/roofline.py | 8 +- src/omniperf_analyze/utils/parser.py | 8 +- src/omniperf_analyze/utils/roofline_calc.py | 8 +- src/omniperf_analyze/utils/schema.py | 8 +- src/omniperf_analyze/utils/tty.py | 8 +- src/parser.py | 8 +- src/utils/csv_converter.py | 8 +- src/utils/gfx_perfmon_builder.py | 8 +- src/utils/perfagg.py | 8 +- src/utils/remove_workload.py | 8 +- src/utils/resources.py | 8 +- src/utils/specs.py | 8 +- 25 files changed, 168 insertions(+), 140 deletions(-) diff --git a/cmake/Dockerfile b/cmake/Dockerfile index 8a92eef25f..766be0894f 100644 --- a/cmake/Dockerfile +++ b/cmake/Dockerfile @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/cmake/rocm_install.sh b/cmake/rocm_install.sh index 2b053f6a44..57d2331779 100755 --- a/cmake/rocm_install.sh +++ b/cmake/rocm_install.sh @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 4ab480fe10..6a2923f6f3 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/common.py b/src/common.py index 69859a9509..70cdcd8239 100644 --- a/src/common.py +++ b/src/common.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf b/src/omniperf index 76c97d0f00..554e59a6e2 100755 --- a/src/omniperf +++ b/src/omniperf @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -39,7 +39,7 @@ from utils import specs from utils.perfagg import perfmon_filter, pmc_filter from utils import remove_workload from utils import csv_converter # Import workload -from omniperf_analyze.omniperf_analyze import roofline_only # Standalone roofline +from omniperf_analyze.omniperf_analyze import roofline_only # Standalone roofline from omniperf_analyze.omniperf_analyze import analyze # CLI analysis from common import ( @@ -55,10 +55,8 @@ from common import getVersion # Helper Functions ################################################ def run_subprocess(cmd): - subprocess.run( - cmd, - check=True - ) + subprocess.run(cmd, check=True) + def resolve_rocprof(): # ROCPROF INFO @@ -127,7 +125,9 @@ def replace_timestamps(workload_dir): df_pmc_perf["EndNs"] = df_stamps["EndNs"] df_pmc_perf.to_csv(workload_dir + "/pmc_perf.csv", index=False) else: - warnings.warn("WARNING: Incomplete profiling data detected. Unable to update timestamps.") + warnings.warn( + "WARNING: Incomplete profiling data detected. Unable to update timestamps." + ) def gen_sysinfo(workload_name, workload_dir, ip_blocks, app_cmd, skip_roof): @@ -152,7 +152,7 @@ def gen_sysinfo(workload_name, workload_dir, ip_blocks, app_cmd, skip_roof): timestamp = now.strftime("%c") + " (" + local_tzname + ")" # host info param = [workload_name] - param += ["\"" + app_cmd + "\""] + param += ['"' + app_cmd + '"'] param += [ mspec.hostname, mspec.cpu, @@ -259,6 +259,7 @@ def roof_setup(args, my_parser): else: characterize_app(args.path, args.remaining, args.verbose) + def detect_roofline(): mspec = specs.get_machine_specs(0) rocm_ver = mspec.rocmversion[:1] @@ -293,6 +294,7 @@ def detect_roofline(): target_binary = {"rocm_ver": rocm_ver, "distro": distro} return target_binary + def mibench(args): print("No roofline data found. Generating...") @@ -326,6 +328,7 @@ def mibench(args): ] ) + def characterize_app(path, cmd, verbose): target = get_soc() workload_dir = path @@ -357,27 +360,38 @@ def characterize_app(path, cmd, verbose): # Update pmc_perf.csv timestamps replace_timestamps(workload_dir) + ################################################ # Profiling Helpers ################################################ + def run_rocscope(args, fname): # profile the app if args.use_rocscope == True: - result = subprocess.run(["which", "rocscope"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) + result = subprocess.run( + ["which", "rocscope"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL + ) if result.returncode == 0: - rs_cmd = [result.stdout.decode('ascii').strip(), - "metrics", - "-p", args.path, - "-n", args.name, - "-t", fname, - "--"] + rs_cmd = [ + result.stdout.decode("ascii").strip(), + "metrics", + "-p", + args.path, + "-n", + args.name, + "-t", + fname, + "--", + ] for i in args.remaining.split(): rs_cmd.append(i) print(rs_cmd) - result = run_subprocess(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + result = run_subprocess( + rs_cmd + ) # , stdout=subprocess.PIPE, stderr=subprocess.PIPE) if result.returncode != 0: - print(result.stderr.decode('ascii')) + print(result.stderr.decode("ascii")) sys.exit(1) @@ -410,7 +424,7 @@ def omniperf_profile(args, VER): parse.print_help(sys.stderr) sys.exit(1) - #Verify valid name + # Verify valid name if args.name.find(".") != -1 or args.name.find("-") != -1: raise ValueError("'-' and '.' are not permited in workload name", args.name) @@ -430,59 +444,75 @@ def omniperf_profile(args, VER): # Set up directories workload_dir = args.path + "/" + args.name + "/" + args.target perfmon_dir = str(OMNIPERF_HOME) + "/perfmon_pub" - + # Perfmon filtering perfmon_filter(workload_dir, perfmon_dir, args) if not args.lucky == None and args.lucky == True: print("You're feeling lucky - only profiling top N kernels") - #look for whether workload_dir exists - create if not + # look for whether workload_dir exists - create if not try: - os.makedirs(workload_dir, exist_ok = True) + os.makedirs(workload_dir, exist_ok=True) except Exception as e: print("Unable to create workload directory: ", workload_dir) print(e) sys.exit(1) - result = subprocess.run(["which", "rocscope"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) + result = subprocess.run( + ["which", "rocscope"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL + ) if result.returncode == 0: - rs_cmd = [result.stdout.decode('ascii').strip(), - "top10", - "-p", args.path, - "-n", args.name, - "--"] + rs_cmd = [ + result.stdout.decode("ascii").strip(), + "top10", + "-p", + args.path, + "-n", + args.name, + "--", + ] for i in args.remaining.split(): rs_cmd.append(i) print(rs_cmd) - result = run_subprocess(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + result = run_subprocess( + rs_cmd + ) # , stdout=subprocess.PIPE, stderr=subprocess.PIPE) if result.returncode != 0: - print(result.stderr.decode('ascii')) + print(result.stderr.decode("ascii")) else: print("rocscope must be in the PATH") sys.exit(1) elif not args.summaries == None and args.summaries == True: print("creating kernel summaries") - #look for whether workload_dir exists - create if not + # look for whether workload_dir exists - create if not try: - os.makedirs(workload_dir, exist_ok = True) + os.makedirs(workload_dir, exist_ok=True) except Exception as e: print("Unable to create workload directory: ", workload_dir) print(e) sys.exit(1) - result = subprocess.run(["which", "rocscope"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) + result = subprocess.run( + ["which", "rocscope"], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL + ) if result.returncode == 0: - rs_cmd = [result.stdout.decode('ascii').strip(), - "summary", - "-p", args.path, - "-n", args.name, - "--"] + rs_cmd = [ + result.stdout.decode("ascii").strip(), + "summary", + "-p", + args.path, + "-n", + args.name, + "--", + ] for i in args.remaining.split(): rs_cmd.append(i) print(rs_cmd) - result = run_subprocess(rs_cmd) #, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + result = run_subprocess( + rs_cmd + ) # , stdout=subprocess.PIPE, stderr=subprocess.PIPE) if result.returncode != 0: - print(result.stderr.decode('ascii')) + print(result.stderr.decode("ascii")) else: print("rocscope must be in the PATH") sys.exit(1) @@ -516,8 +546,6 @@ def omniperf_profile(args, VER): run_rocscope(args, fname) else: run_prof(fname, workload_dir, perfmon_dir, args.remaining, args.verbose) - - # run again with timestamps run_subprocess( diff --git a/src/omniperf_analyze/convertor/mongodb/convert b/src/omniperf_analyze/convertor/mongodb/convert index 49e013761b..dc8a33e920 100755 --- a/src/omniperf_analyze/convertor/mongodb/convert +++ b/src/omniperf_analyze/convertor/mongodb/convert @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/convertor/sql/convertor.py b/src/omniperf_analyze/convertor/sql/convertor.py index 20aaa76142..c6b36b5f97 100644 --- a/src/omniperf_analyze/convertor/sql/convertor.py +++ b/src/omniperf_analyze/convertor/sql/convertor.py @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/omniperf_analyze.py b/src/omniperf_analyze/omniperf_analyze.py index aa9936193c..368e5c50c5 100644 --- a/src/omniperf_analyze/omniperf_analyze.py +++ b/src/omniperf_analyze/omniperf_analyze.py @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/tests/unit/ast_parser_tester.py b/src/omniperf_analyze/tests/unit/ast_parser_tester.py index c8fa49bc39..f728743c2d 100644 --- a/src/omniperf_analyze/tests/unit/ast_parser_tester.py +++ b/src/omniperf_analyze/tests/unit/ast_parser_tester.py @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/file_io.py b/src/omniperf_analyze/utils/file_io.py index 1d2de6318e..05219dbcca 100644 --- a/src/omniperf_analyze/utils/file_io.py +++ b/src/omniperf_analyze/utils/file_io.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/gui.py b/src/omniperf_analyze/utils/gui.py index a9aadc8df5..eb083bfe9d 100644 --- a/src/omniperf_analyze/utils/gui.py +++ b/src/omniperf_analyze/utils/gui.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/gui_components/header.py b/src/omniperf_analyze/utils/gui_components/header.py index 7fc8ddaed6..3dcf34be69 100644 --- a/src/omniperf_analyze/utils/gui_components/header.py +++ b/src/omniperf_analyze/utils/gui_components/header.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/gui_components/memchart.py b/src/omniperf_analyze/utils/gui_components/memchart.py index 69a0594ffa..f8af87d547 100644 --- a/src/omniperf_analyze/utils/gui_components/memchart.py +++ b/src/omniperf_analyze/utils/gui_components/memchart.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/gui_components/roofline.py b/src/omniperf_analyze/utils/gui_components/roofline.py index 0d5ea113c5..8fb6e36a74 100644 --- a/src/omniperf_analyze/utils/gui_components/roofline.py +++ b/src/omniperf_analyze/utils/gui_components/roofline.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/parser.py b/src/omniperf_analyze/utils/parser.py index ba92bc34f8..7d6dcab493 100644 --- a/src/omniperf_analyze/utils/parser.py +++ b/src/omniperf_analyze/utils/parser.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/roofline_calc.py b/src/omniperf_analyze/utils/roofline_calc.py index f9aa28b3db..987b6694de 100644 --- a/src/omniperf_analyze/utils/roofline_calc.py +++ b/src/omniperf_analyze/utils/roofline_calc.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/schema.py b/src/omniperf_analyze/utils/schema.py index e0da44034f..13d930916d 100644 --- a/src/omniperf_analyze/utils/schema.py +++ b/src/omniperf_analyze/utils/schema.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/omniperf_analyze/utils/tty.py b/src/omniperf_analyze/utils/tty.py index 310c2c10b3..0900fd689f 100644 --- a/src/omniperf_analyze/utils/tty.py +++ b/src/omniperf_analyze/utils/tty.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/parser.py b/src/parser.py index fbc1c34e85..b305b60187 100644 --- a/src/parser.py +++ b/src/parser.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/utils/csv_converter.py b/src/utils/csv_converter.py index 3d8a381a5c..b178439aca 100644 --- a/src/utils/csv_converter.py +++ b/src/utils/csv_converter.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/utils/gfx_perfmon_builder.py b/src/utils/gfx_perfmon_builder.py index c298e57561..c5a77908ac 100755 --- a/src/utils/gfx_perfmon_builder.py +++ b/src/utils/gfx_perfmon_builder.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/utils/perfagg.py b/src/utils/perfagg.py index 5bc9d6be32..0606b4dc4b 100755 --- a/src/utils/perfagg.py +++ b/src/utils/perfagg.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/utils/remove_workload.py b/src/utils/remove_workload.py index d389106e10..02ba864f59 100755 --- a/src/utils/remove_workload.py +++ b/src/utils/remove_workload.py @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/utils/resources.py b/src/utils/resources.py index 23b684c2fb..4986394811 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -1,18 +1,18 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE diff --git a/src/utils/specs.py b/src/utils/specs.py index 5f32a977f6..a040fcbf68 100644 --- a/src/utils/specs.py +++ b/src/utils/specs.py @@ -2,19 +2,19 @@ ##############################################################################bl # MIT License -# +# # Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. -# +# # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: -# +# # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. -# +# # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE