diff --git a/cmake/Dockerfile b/cmake/Dockerfile index f95e18d4d0..d216fd23ab 100644 --- a/cmake/Dockerfile +++ b/cmake/Dockerfile @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el FROM ubuntu:20.04 diff --git a/cmake/rocm_install.sh b/cmake/rocm_install.sh index 8ac34caad5..c550c3e2fa 100755 --- a/cmake/rocm_install.sh +++ b/cmake/rocm_install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el declare -a rocm_versions=("4.3.1" "4.5.2" "5.0.2" "5.1.3" "5.2.3") wget https://repo.radeon.com/amdgpu-install/22.10/ubuntu/focal/amdgpu-install_22.10.50100-1_all.deb @@ -29,4 +29,4 @@ for rocm_version in ${rocm_versions[@]}; do echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$rocm_version ubuntu main" | tee /etc/apt/sources.list.d/rocm.list apt update amdgpu-install -y --usecase=rocm --rocmrelease=$rocm_version --no-dkms -done \ No newline at end of file +done diff --git a/src/common.py b/src/common.py index 8268608b4a..30ed28c5f2 100644 --- a/src/common.py +++ b/src/common.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import os import sys diff --git a/src/omniperf b/src/omniperf index b0a6a3af9d..d27f295a20 100755 --- a/src/omniperf +++ b/src/omniperf @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import sys import os diff --git a/src/omniperf_analyze/convertor/mongodb/convert b/src/omniperf_analyze/convertor/mongodb/convert index a5676dc317..6b63033d19 100755 --- a/src/omniperf_analyze/convertor/mongodb/convert +++ b/src/omniperf_analyze/convertor/mongodb/convert @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -################################################################################ +##############################################################################bl # Copyright (C) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import ast import astunparse diff --git a/src/omniperf_analyze/convertor/sql/convertor.py b/src/omniperf_analyze/convertor/sql/convertor.py index dba816948a..28de3b4fc4 100644 --- a/src/omniperf_analyze/convertor/sql/convertor.py +++ b/src/omniperf_analyze/convertor/sql/convertor.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -################################################################################ +##############################################################################bl # Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import re import sys diff --git a/src/omniperf_analyze/omniperf_analyze.py b/src/omniperf_analyze/omniperf_analyze.py index 5c090bc121..5a1bcba62f 100644 --- a/src/omniperf_analyze/omniperf_analyze.py +++ b/src/omniperf_analyze/omniperf_analyze.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el """ Quick run: diff --git a/src/omniperf_analyze/tests/unit/ast_parser_tester.py b/src/omniperf_analyze/tests/unit/ast_parser_tester.py index a04832e48a..573590b543 100644 --- a/src/omniperf_analyze/tests/unit/ast_parser_tester.py +++ b/src/omniperf_analyze/tests/unit/ast_parser_tester.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import ast import astunparse diff --git a/src/omniperf_analyze/utils/file_io.py b/src/omniperf_analyze/utils/file_io.py index 04539feb44..ad447b05c2 100644 --- a/src/omniperf_analyze/utils/file_io.py +++ b/src/omniperf_analyze/utils/file_io.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import os import pandas as pd diff --git a/src/omniperf_analyze/utils/gui.py b/src/omniperf_analyze/utils/gui.py index 98bc38ebcc..31e8ed61a4 100644 --- a/src/omniperf_analyze/utils/gui.py +++ b/src/omniperf_analyze/utils/gui.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el from selectors import EpollSelector import sys diff --git a/src/omniperf_analyze/utils/gui_components/header.py b/src/omniperf_analyze/utils/gui_components/header.py index ddf665d799..70fb5bcf6b 100644 --- a/src/omniperf_analyze/utils/gui_components/header.py +++ b/src/omniperf_analyze/utils/gui_components/header.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el from dash import html, dcc import dash_bootstrap_components as dbc diff --git a/src/omniperf_analyze/utils/gui_components/memchart.py b/src/omniperf_analyze/utils/gui_components/memchart.py index 8616ca9e30..2a09b21600 100644 --- a/src/omniperf_analyze/utils/gui_components/memchart.py +++ b/src/omniperf_analyze/utils/gui_components/memchart.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import sys diff --git a/src/omniperf_analyze/utils/gui_components/roofline.py b/src/omniperf_analyze/utils/gui_components/roofline.py index 89e19af132..8c74ca0b85 100644 --- a/src/omniperf_analyze/utils/gui_components/roofline.py +++ b/src/omniperf_analyze/utils/gui_components/roofline.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el from omniperf_analyze.utils import roofline_calc diff --git a/src/omniperf_analyze/utils/parser.py b/src/omniperf_analyze/utils/parser.py index f4f91f4f5a..5c94e5b4e0 100644 --- a/src/omniperf_analyze/utils/parser.py +++ b/src/omniperf_analyze/utils/parser.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import ast import sys diff --git a/src/omniperf_analyze/utils/roofline_calc.py b/src/omniperf_analyze/utils/roofline_calc.py index 7a324c3efd..12f1a63c68 100644 --- a/src/omniperf_analyze/utils/roofline_calc.py +++ b/src/omniperf_analyze/utils/roofline_calc.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import sys diff --git a/src/omniperf_analyze/utils/schema.py b/src/omniperf_analyze/utils/schema.py index 3d77eee0ac..65a2fa8413 100644 --- a/src/omniperf_analyze/utils/schema.py +++ b/src/omniperf_analyze/utils/schema.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el # # Define all common data storage classes, diff --git a/src/omniperf_analyze/utils/tty.py b/src/omniperf_analyze/utils/tty.py index 1afe8e08e8..ade1a9b37b 100644 --- a/src/omniperf_analyze/utils/tty.py +++ b/src/omniperf_analyze/utils/tty.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import pandas as pd from tabulate import tabulate diff --git a/src/parser.py b/src/parser.py index d384be8797..bce1f705f3 100644 --- a/src/parser.py +++ b/src/parser.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import os import argparse diff --git a/src/utils/csv_converter.py b/src/utils/csv_converter.py index b1e536c12f..191550b0ff 100644 --- a/src/utils/csv_converter.py +++ b/src/utils/csv_converter.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import argparse import collections diff --git a/src/utils/gfx_perfmon_builder.py b/src/utils/gfx_perfmon_builder.py index 566449c3d5..8a9623a702 100755 --- a/src/utils/gfx_perfmon_builder.py +++ b/src/utils/gfx_perfmon_builder.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el from PyQt5.QtWidgets import ( QMainWindow, diff --git a/src/utils/perfagg.py b/src/utils/perfagg.py index f40f242699..c2cdc7fdf1 100755 --- a/src/utils/perfagg.py +++ b/src/utils/perfagg.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import sys, os, pathlib, shutil, subprocess, argparse, glob, re import numpy as np diff --git a/src/utils/remove_workload.py b/src/utils/remove_workload.py index 11cb5df256..6627b64051 100755 --- a/src/utils/remove_workload.py +++ b/src/utils/remove_workload.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import argparse import getpass diff --git a/src/utils/resources.py b/src/utils/resources.py index fce329d13d..5408a90ab7 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -1,4 +1,4 @@ -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -18,7 +18,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import pathlib import sys diff --git a/src/utils/specs.py b/src/utils/specs.py index 4c95194406..b385c9d053 100644 --- a/src/utils/specs.py +++ b/src/utils/specs.py @@ -1,6 +1,6 @@ """Get host/gpu specs.""" -################################################################################ +##############################################################################bl # Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy @@ -20,7 +20,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. -################################################################################ +##############################################################################el import os import re