From ebb29ac54a87fe7bd4342e0d4af8d8b2a3248b61 Mon Sep 17 00:00:00 2001 From: "Jonathan R. Madsen" Date: Wed, 26 Jan 2022 23:25:00 -0600 Subject: [PATCH] Miscellaneous updates (#21) * Miscellaneous updates - Updated README - Updated VERSION - Header include tweaks - get_verbose() + get_verbose_env() - fixes to omnitrace-avail - exclude all cuda/cupti settings - apply available_only to hw counters - config file warnings - config displayed at verbose > 0 - fix to MPI_Finalize when only using MPI headers * Updated LICENSE * CPack tweak [ROCm/rocprofiler-systems commit: 864841030979c633bb2803accdf45e9fa43f3e56] --- projects/rocprofiler-systems/README.md | 102 +++++++++++++----- projects/rocprofiler-systems/VERSION | 2 +- .../cmake/ConfigCPack.cmake | 2 +- .../rocprofiler-systems/cmake/Packages.cmake | 4 + .../rocprofiler-systems/external/timemory | 2 +- .../rocprofiler-systems/include/avail.hpp | 9 +- .../rocprofiler-systems/include/library.hpp | 33 +++--- .../include/library/api.hpp | 28 ++--- .../include/library/common.hpp | 28 ++--- .../include/library/components/backtrace.hpp | 28 ++--- .../library/components/fork_gotcha.hpp | 28 ++--- .../include/library/components/fwd.hpp | 30 +++--- .../include/library/components/mpi_gotcha.hpp | 28 ++--- .../include/library/components/omnitrace.hpp | 28 ++--- .../library/components/pthread_gotcha.hpp | 28 ++--- .../include/library/components/roctracer.hpp | 28 ++--- .../components/roctracer_callbacks.hpp | 28 ++--- .../include/library/config.hpp | 34 +++--- .../include/library/critical_trace.hpp | 28 ++--- .../include/library/debug.hpp | 28 ++--- .../include/library/defines.hpp.in | 28 ++--- .../include/library/dynamic_library.hpp | 28 ++--- .../include/library/perfetto.hpp | 28 ++--- .../include/library/ptl.hpp | 28 ++--- .../include/library/sampling.hpp | 28 ++--- .../include/library/state.hpp | 28 ++--- .../include/library/thread_data.hpp | 28 ++--- .../include/library/timemory.hpp | 28 ++--- .../rocprofiler-systems/include/omnitrace.hpp | 72 ++++++------- .../scripts/update-license.sh | 56 ++++++++++ projects/rocprofiler-systems/src/avail.cpp | 55 ++++++---- projects/rocprofiler-systems/src/library.cpp | 28 ++--- .../src/library/components/backtrace.cpp | 28 ++--- .../src/library/components/fork_gotcha.cpp | 28 ++--- .../src/library/components/mpi_gotcha.cpp | 35 +++--- .../src/library/components/omnitrace.cpp | 28 ++--- .../src/library/components/pthread_gotcha.cpp | 28 ++--- .../src/library/components/roctracer.cpp | 28 ++--- .../components/roctracer_callbacks.cpp | 31 +++--- .../src/library/config.cpp | 48 +++++---- .../src/library/critical_trace.cpp | 28 ++--- .../src/library/perfetto.cpp | 28 ++--- .../rocprofiler-systems/src/library/ptl.cpp | 28 ++--- .../src/library/sampling.cpp | 28 ++--- .../src/library/thread_data.cpp | 28 ++--- .../src/library/timemory.cpp | 28 ++--- .../rocprofiler-systems/src/omnitrace.cpp | 28 ++--- .../src/omnitrace/details.cpp | 28 ++--- 48 files changed, 673 insertions(+), 766 deletions(-) create mode 100755 projects/rocprofiler-systems/scripts/update-license.sh diff --git a/projects/rocprofiler-systems/README.md b/projects/rocprofiler-systems/README.md index 3f61bd9084..852dcad4d8 100755 --- a/projects/rocprofiler-systems/README.md +++ b/projects/rocprofiler-systems/README.md @@ -1,13 +1,41 @@ # omnitrace: application tracing with static/dynamic binary instrumentation +It is highly recommended to use the ore-built binary installers for omnitrace which are provided in the "Assets" section of each release. + ## Dependencies +- Ubuntu 18.04 or Ubuntu 20.04 + - Other OS distributions may be supported but are not tested +- GCC compiler v7+ + - Older GCC compilers may be supported but are not tested + - Clang compilers are generally supported for Omnitrace but not Dyninst +- [CMake](https://cmake.org/) v3.15+ - [DynInst](https://github.com/dyninst/dyninst) for dynamic or static instrumentation -- [Julia](https://julialang.org/) for merging perfetto traces + - [TBB](https://github.com/oneapi-src/oneTBB) required by Dyninst + - [ElfUtils](https://sourceware.org/elfutils/) required by Dyninst + - [LibIberty](https://github.com/gcc-mirror/gcc/tree/master/libiberty) required by Dyninst + - [Boost](https://www.boost.org/) required by Dyninst + - [OpenMP](https://www.openmp.org/) optional by Dyninst +- [ROCm](https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#ubuntu) (optional) + - HIP + - Roctracer for HIP API and kernel tracing +- [PAPI](https://icl.utk.edu/papi/) +- [libunwind](https://www.nongnu.org/libunwind/) for call-stack sampling +- Several optional third-party profiling tools supported by timemory (e.g. TAU, Caliper, CrayPAT, etc.) + +## Installing CMake + +If using Ubuntu 20.04, `apt-get install cmake` will install cmake v3.16.3. If using Ubuntu 18.04, the cmake version via apt is too old (v3.10.2). In this case, run: + +```console +python3 -m pip install `cmake==3.18.4` +export PATH=${HOME}/.local/bin +``` ## Installing DynInst -The easiest way to install Dyninst is via spack +The easiest way to install Dyninst is to configure omnitrace with `-DOMNITRACE_BUILD_DYNINST` and have Dyninst install it's dependencies: +`-DDyninst_BUILD_TBB=ON -DDyninst_BUILD_ELFUTILS=ON -DDyninst_BUILD_BOOST=ON -DDyninst_BUILD_LIBIBERTY=ON`. ```shell git clone https://github.com/spack/spack.git @@ -18,26 +46,21 @@ spack install dyninst spack load -r dyninst ``` -## Installing Julia - -Julia is available via Linux package managers or may be available via a module. Debian-based distributions such as Ubuntu can run (as a super-user): - -```shell -apt-get install julia -``` - -Once Julia is installed, install the necessary packages (this operation only needs to be performed once): - -```shell -julia -e 'using Pkg; for name in ["JSON", "DataFrames", "Dates", "CSV", "Chain", "PrettyTables"]; Pkg.add(name); end' -``` - ## Installing omnitrace +Omnitrace can have full MPI support (`-DOMNITRACE_USE_MPI=ON`) or partially (`-DOMNITRACE_USE_MPI_HEADERS=ON`). The only difference between these two modes +is whether or not the results collected via timemory can be aggregated into one output file. If full MPI support is selected, make sure your target application +is built against the same MPI distribution as omnitrace, i.e. do not build omnitrace with MPICH and use it on a target application built against OpenMPI. +If partial support is selected, build omnitrace against OpenMPI -- the reason this is recommended is because the `MPI_COMM_WORLD` in OpenMPI is a pointer to +`ompi_communicator_t` (8 bytes) whereas `MPI_COMM_WORLD` in MPICH is an `int` (4 bytes). Building omnitrace with partial MPI support and the MPICH header and using +on an application using OpenMPI will thus implicitly cast `MPI_COMM_WORLD` to 4 bytes in the MPI function wrappers before calling the underlying OpenMPI function +resulting in an incorrect address for `ompi_communicator_t` whereas partial MPI support with the OpenMPI headers does not cast `MPI_COMM_WORLD` into a smaller datatype +which used with MPICH. + ```shell OMNITRACE_ROOT=${HOME}/sw/omnitrace -git clone https://github.com/AARInternal/omnitrace-dyninst.git -cmake -B build-omnitrace -DOMNITRACE_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=${OMNITRACE_ROOT} omnitrace-dyninst +git clone https://github.com/AARInternal/omnitrace.git +cmake -B build-omnitrace -DOMNITRACE_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=${OMNITRACE_ROOT} omnitrace cmake --build build-omnitrace --target all --parallel 8 cmake --build build-omnitrace --target install export PATH=${OMNITRACE_ROOT}/bin:${PATH} @@ -51,7 +74,14 @@ omnitrace --help omnitrace -- ``` -## Omnitrace Library Environment Settings +## Omnitrace Settings + +`omnitrace-avail -Sd` will provide a list of all the possible omnitrace settings, their current value, and a description of the setting. + +> NOTE: Some settings may only affect the timemory backend. + +These settings can be set via environment variables or placed in a config file and specified via `OMNITRACE_CONFIG_FILE=/path/to/config/file`. The config file +can be a text, JSON, or XML file. Some of the most relevant settings are provided below: | Environment Variable | Default Value | Description | |--------------------------------------------|--------------------------|------------------------------------------------------------------------------------------------------------------| @@ -93,7 +123,7 @@ omnitrace -- | `OMNITRACE_SHMEM_SIZE_HINT_KB` | `40960` | Hint for shared-memory buffer size in perfetto (in KB) | | `OMNITRACE_TEXT_OUTPUT` | `true` | Write text output files | | `OMNITRACE_TIMELINE_SAMPLING` | `false` | Create unique entries for every sample when statistical sampling is enabled | -| `OMNITRACE_TIMEMORY_COMPONENTS` | `wall_clock` | List of components to collect via timemory (see timemory-avail) | +| `OMNITRACE_TIMEMORY_COMPONENTS` | `wall_clock` | List of components to collect via timemory (see omnitrace-avail) | | `OMNITRACE_TIME_FORMAT` | `%F_%I.%M_%p` | Customize the folder generation when TIMEMORY_TIME_OUTPUT is enabled (see also: strftime) | | `OMNITRACE_TIME_OUTPUT` | `true` | Output data to subfolder w/ a timestamp (see also: TIMEMORY_TIME_FORMAT) | | `OMNITRACE_TIMING_PRECISION` | `6` | Set the precision for components with 'is_timing_category' type-trait | @@ -179,18 +209,18 @@ omnitrace -E 'rocr::atomic|rocr::core|rocr::HSA' -- /path/to/app - `OMNITRACE_USE_PERFETTO=OFF` yields the same result `OMNITRACE_USE_TIMEMORY=ON` - `OMNITRACE_USE_PERFETTO=ON` yields the same result as `OMNITRACE_USE_TIMEMORY=OFF` - In order to enable _both_ timemory and perfetto, set both `OMNITRACE_USE_TIMEMORY=ON` and `OMNITRACE_USE_PERFETTO=ON` - - Setting `OMNITRACE_USE_TIMEMORY=OFF` and `OMNITRACE_USE_PERFETTO=OFF` will disable all instrumentation -- Use `timemory-avail -S` to view the various settings for timemory + - Setting `OMNITRACE_USE_TIMEMORY=OFF` and `OMNITRACE_USE_PERFETTO=OFF` will disable all instrumentation but call-stack sampling (`OMNITRACE_USE_SAMPLING=ON`) is still available. +- Use `omnitrace-avail -S` to view the various settings for timemory - Set `OMNITRACE_COMPONENTS=""` to control which components timemory collects - - The list of components and their descriptions can be viewed via `timemory-avail -Cd` - - The list of components and their string identifiers can be view via `timemory-avail -Cbs` -- You can filter any `timemory-avail` results via `-r -hl` + - The list of components and their descriptions can be viewed via `omnitrace-avail -Cd` + - The list of components and their string identifiers can be view via `omnitrace-avail -Cbs` +- You can filter any `omnitrace-avail` results via `-r -hl` ## Omnitrace Output `omnitrace` will create an output directory named `omnitrace--output`, e.g. if your executable is named `app.inst`, the output directory will be `omnitrace-app.inst-output`. Depending on whether -`TIMEMORY_TIME_OUTPUT=ON` (the default when perfetto is enabled), there will be a subdirectory with the date and time, +`OMNITRACE_TIME_OUTPUT=ON` (the default when perfetto is enabled), there will be a subdirectory with the date and time, e.g. `2021-09-02_01.03_PM`. Within this directory, all perfetto files will be named `perfetto-trace..proto` or when `OMNITRACE_USE_MPI=ON`, `perfetto-trace..proto` (assuming omnitrace was built with MPI support). @@ -199,15 +229,31 @@ variable. The special character sequences `%pid%` and `%rank%` will be replaced ## Merging the traces from rocprof and omnitrace +This section requires installing [Julia](https://julialang.org/). + +### Installing Julia + +Julia is available via Linux package managers or may be available via a module. Debian-based distributions such as Ubuntu can run (as a super-user): + +```shell +apt-get install julia +``` + +Once Julia is installed, install the necessary packages (this operation only needs to be performed once): + +```shell +julia -e 'using Pkg; for name in ["JSON", "DataFrames", "Dates", "CSV", "Chain", "PrettyTables"]; Pkg.add(name); end' +``` + > NOTE: Using `rocprof` externally for tracing is deprecated. The current version has built-in support for > recording the GPU activity and HIP API calls. If you want to use an external rocprof, either -> configure CMake with `-DOMNITRACE_USE_ROCTRACER=OFF` or explicitly set `TIMEMORY_ROCTRACER_ENABLED=OFF` in the +> configure CMake with `-DOMNITRACE_USE_ROCTRACER=OFF` or explicitly set `OMNITRACE_ROCTRACER_ENABLED=OFF` in the > environment. Use the `omnitrace-merge.jl` Julia script to merge rocprof and perfetto traces. ```shell -export TIMEMORY_ROCTRACER_ENABLED=OFF +export OMNITRACE_ROCTRACER_ENABLED=OFF rocprof --hip-trace --roctx-trace --stats ./app.inst omnitrace-merge.jl results.json omnitrace-app.inst-output/2021-09-02_01.03_PM/*.proto ``` diff --git a/projects/rocprofiler-systems/VERSION b/projects/rocprofiler-systems/VERSION index 81340c7e72..bbdeab6222 100644 --- a/projects/rocprofiler-systems/VERSION +++ b/projects/rocprofiler-systems/VERSION @@ -1 +1 @@ -0.0.4 +0.0.5 diff --git a/projects/rocprofiler-systems/cmake/ConfigCPack.cmake b/projects/rocprofiler-systems/cmake/ConfigCPack.cmake index 6b3c31dbee..34d993f37e 100644 --- a/projects/rocprofiler-systems/cmake/ConfigCPack.cmake +++ b/projects/rocprofiler-systems/cmake/ConfigCPack.cmake @@ -25,7 +25,7 @@ if(DYNINST_BUILD_ELFUTILS) endif() # Debian package specific variables -set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/AARInternal/omnitrace-dyninst") +set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/AARInternal/omnitrace") if(DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE}) set(CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE}) else() diff --git a/projects/rocprofiler-systems/cmake/Packages.cmake b/projects/rocprofiler-systems/cmake/Packages.cmake index daa774da0e..7d89e9a01c 100644 --- a/projects/rocprofiler-systems/cmake/Packages.cmake +++ b/projects/rocprofiler-systems/cmake/Packages.cmake @@ -354,7 +354,11 @@ set(TIMEMORY_TLS_MODEL set(TIMEMORY_SETTINGS_PREFIX "OMNITRACE_" CACHE STRING "Prefix used for settings and environment variables") +set(TIMEMORY_SETTINGS_CONFIG_NAME + "omnitrace" + CACHE STRING "Name for configuration") mark_as_advanced(TIMEMORY_SETTINGS_PREFIX) +mark_as_advanced(TIMEMORY_SETTINGS_CONFIG_NAME) omnitrace_checkout_git_submodule( RELATIVE_PATH external/timemory diff --git a/projects/rocprofiler-systems/external/timemory b/projects/rocprofiler-systems/external/timemory index e459158b4e..cff039b35b 160000 --- a/projects/rocprofiler-systems/external/timemory +++ b/projects/rocprofiler-systems/external/timemory @@ -1 +1 @@ -Subproject commit e459158b4eea5576c5bc21a57e444a983af68713 +Subproject commit cff039b35b85eb17569aa48428531ae5b3f3f113 diff --git a/projects/rocprofiler-systems/include/avail.hpp b/projects/rocprofiler-systems/include/avail.hpp index c14f68e218..c9bbe36531 100644 --- a/projects/rocprofiler-systems/include/avail.hpp +++ b/projects/rocprofiler-systems/include/avail.hpp @@ -33,10 +33,10 @@ #define TIMEMORY_DISABLE_BANNER #define TIMEMORY_DISABLE_COMPONENT_STORAGE_INIT -#include "timemory/settings/macros.hpp" -#include "timemory/tpls/cereal/archives.hpp" -#include "timemory/tpls/cereal/cereal/external/base64.hpp" -#include "timemory/utility/demangle.hpp" +#include +#include +#include +#include #include #include @@ -113,6 +113,7 @@ public: current_value = &((*current_entry)[name]); return; } + if(value_keys.count(name) > 0) { return; diff --git a/projects/rocprofiler-systems/include/library.hpp b/projects/rocprofiler-systems/include/library.hpp index 0433a968df..f83b41c8a2 100644 --- a/projects/rocprofiler-systems/include/library.hpp +++ b/projects/rocprofiler-systems/include/library.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once @@ -46,8 +40,9 @@ #include "library/ptl.hpp" #include "library/debug.hpp" #include "library/critical_trace.hpp" -#include "timemory/macros/language.hpp" -#include "timemory/utility/utility.hpp" + +#include +#include #include diff --git a/projects/rocprofiler-systems/include/library/api.hpp b/projects/rocprofiler-systems/include/library/api.hpp index d5ff83c522..b4470c66ff 100644 --- a/projects/rocprofiler-systems/include/library/api.hpp +++ b/projects/rocprofiler-systems/include/library/api.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/common.hpp b/projects/rocprofiler-systems/include/library/common.hpp index 39a0ae5929..7713b6670a 100644 --- a/projects/rocprofiler-systems/include/library/common.hpp +++ b/projects/rocprofiler-systems/include/library/common.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/components/backtrace.hpp b/projects/rocprofiler-systems/include/library/components/backtrace.hpp index 70dfebbb63..b55d173031 100644 --- a/projects/rocprofiler-systems/include/library/components/backtrace.hpp +++ b/projects/rocprofiler-systems/include/library/components/backtrace.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/components/fork_gotcha.hpp b/projects/rocprofiler-systems/include/library/components/fork_gotcha.hpp index 8b3459b327..c6e8fa8c0e 100644 --- a/projects/rocprofiler-systems/include/library/components/fork_gotcha.hpp +++ b/projects/rocprofiler-systems/include/library/components/fork_gotcha.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/components/fwd.hpp b/projects/rocprofiler-systems/include/library/components/fwd.hpp index 320921a25b..2f51fc6ae2 100644 --- a/projects/rocprofiler-systems/include/library/components/fwd.hpp +++ b/projects/rocprofiler-systems/include/library/components/fwd.hpp @@ -1,38 +1,32 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once #include "library/defines.hpp" -#include "timemory/components/user_bundle/types.hpp" #include #include +#include #include TIMEMORY_DECLARE_COMPONENT(roctracer) diff --git a/projects/rocprofiler-systems/include/library/components/mpi_gotcha.hpp b/projects/rocprofiler-systems/include/library/components/mpi_gotcha.hpp index f0bff42ef5..8041b98293 100644 --- a/projects/rocprofiler-systems/include/library/components/mpi_gotcha.hpp +++ b/projects/rocprofiler-systems/include/library/components/mpi_gotcha.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/components/omnitrace.hpp b/projects/rocprofiler-systems/include/library/components/omnitrace.hpp index 5268e8914a..3adfaaefd8 100644 --- a/projects/rocprofiler-systems/include/library/components/omnitrace.hpp +++ b/projects/rocprofiler-systems/include/library/components/omnitrace.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/components/pthread_gotcha.hpp b/projects/rocprofiler-systems/include/library/components/pthread_gotcha.hpp index d4b1c379e6..7d4c6b6fb5 100644 --- a/projects/rocprofiler-systems/include/library/components/pthread_gotcha.hpp +++ b/projects/rocprofiler-systems/include/library/components/pthread_gotcha.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/components/roctracer.hpp b/projects/rocprofiler-systems/include/library/components/roctracer.hpp index 3d6be85b7d..a197436d9d 100644 --- a/projects/rocprofiler-systems/include/library/components/roctracer.hpp +++ b/projects/rocprofiler-systems/include/library/components/roctracer.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/components/roctracer_callbacks.hpp b/projects/rocprofiler-systems/include/library/components/roctracer_callbacks.hpp index 50f0478812..886857b21c 100644 --- a/projects/rocprofiler-systems/include/library/components/roctracer_callbacks.hpp +++ b/projects/rocprofiler-systems/include/library/components/roctracer_callbacks.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/config.hpp b/projects/rocprofiler-systems/include/library/config.hpp index 586d00a016..23d8bb6419 100644 --- a/projects/rocprofiler-systems/include/library/config.hpp +++ b/projects/rocprofiler-systems/include/library/config.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once @@ -94,6 +88,12 @@ get_debug_env(); bool get_debug(); +int +get_verbose_env(); + +int +get_verbose(); + bool& get_use_perfetto(); diff --git a/projects/rocprofiler-systems/include/library/critical_trace.hpp b/projects/rocprofiler-systems/include/library/critical_trace.hpp index 797873512a..0a1fb2a48f 100644 --- a/projects/rocprofiler-systems/include/library/critical_trace.hpp +++ b/projects/rocprofiler-systems/include/library/critical_trace.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/debug.hpp b/projects/rocprofiler-systems/include/library/debug.hpp index 4d2ad08b18..29d2162cac 100644 --- a/projects/rocprofiler-systems/include/library/debug.hpp +++ b/projects/rocprofiler-systems/include/library/debug.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/defines.hpp.in b/projects/rocprofiler-systems/include/library/defines.hpp.in index b4abe04de5..c021beff57 100644 --- a/projects/rocprofiler-systems/include/library/defines.hpp.in +++ b/projects/rocprofiler-systems/include/library/defines.hpp.in @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/dynamic_library.hpp b/projects/rocprofiler-systems/include/library/dynamic_library.hpp index a5784ea254..648ace7f6d 100644 --- a/projects/rocprofiler-systems/include/library/dynamic_library.hpp +++ b/projects/rocprofiler-systems/include/library/dynamic_library.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/perfetto.hpp b/projects/rocprofiler-systems/include/library/perfetto.hpp index cc15aebe7f..090623f69f 100644 --- a/projects/rocprofiler-systems/include/library/perfetto.hpp +++ b/projects/rocprofiler-systems/include/library/perfetto.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/ptl.hpp b/projects/rocprofiler-systems/include/library/ptl.hpp index 4b7101914e..d43af73fff 100644 --- a/projects/rocprofiler-systems/include/library/ptl.hpp +++ b/projects/rocprofiler-systems/include/library/ptl.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/sampling.hpp b/projects/rocprofiler-systems/include/library/sampling.hpp index 30d97b9d64..f539d95582 100644 --- a/projects/rocprofiler-systems/include/library/sampling.hpp +++ b/projects/rocprofiler-systems/include/library/sampling.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/state.hpp b/projects/rocprofiler-systems/include/library/state.hpp index 86cb34fd79..47ee95ffce 100644 --- a/projects/rocprofiler-systems/include/library/state.hpp +++ b/projects/rocprofiler-systems/include/library/state.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/thread_data.hpp b/projects/rocprofiler-systems/include/library/thread_data.hpp index 0b42873025..327f4b8fa3 100644 --- a/projects/rocprofiler-systems/include/library/thread_data.hpp +++ b/projects/rocprofiler-systems/include/library/thread_data.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/library/timemory.hpp b/projects/rocprofiler-systems/include/library/timemory.hpp index 4f68942b18..c656cf77b1 100644 --- a/projects/rocprofiler-systems/include/library/timemory.hpp +++ b/projects/rocprofiler-systems/include/library/timemory.hpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once diff --git a/projects/rocprofiler-systems/include/omnitrace.hpp b/projects/rocprofiler-systems/include/omnitrace.hpp index 825bdbb8b7..47e85287e0 100644 --- a/projects/rocprofiler-systems/include/omnitrace.hpp +++ b/projects/rocprofiler-systems/include/omnitrace.hpp @@ -1,52 +1,49 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #pragma once -#include "timemory/backends/process.hpp" -#include "timemory/environment.hpp" -#include "timemory/mpl/apply.hpp" -#include "timemory/utility/argparse.hpp" -#include "timemory/utility/demangle.hpp" -#include "timemory/utility/popen.hpp" -#include "timemory/variadic/macros.hpp" +#include +#include +#include +#include +#include +#include +#include -#include "BPatch.h" -#include "BPatch_Vector.h" -#include "BPatch_addressSpace.h" -#include "BPatch_basicBlockLoop.h" -#include "BPatch_callbacks.h" -#include "BPatch_function.h" -#include "BPatch_point.h" -#include "BPatch_process.h" -#include "BPatch_snippet.h" -#include "BPatch_statement.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -55,13 +52,8 @@ #include #include #include -#include -// -#include -#include -#include -#include #include +#include #define MUTNAMELEN 1024 #define FUNCNAMELEN 32 * 1024 diff --git a/projects/rocprofiler-systems/scripts/update-license.sh b/projects/rocprofiler-systems/scripts/update-license.sh new file mode 100755 index 0000000000..2ef447755d --- /dev/null +++ b/projects/rocprofiler-systems/scripts/update-license.sh @@ -0,0 +1,56 @@ +#!/bin/bash + +for i in $@ +do + echo "##### Replacing LICENSE in ${i}... #####" + rg -UF '// Copyright (c) 2018 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 +// with 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: +// +// * Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimers. +// +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimers in the +// documentation and/or other materials provided with the distribution. +// +// * Neither the names of Advanced Micro Devices, Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this Software without specific prior written permission. +// +// 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 +// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// 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 WITH +// THE SOFTWARE. +' -r '// MIT License +// +// Copyright (c) 2022 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 +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// 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. +' -N --color=never --passthru ${i} > tmp-replace + mv tmp-replace ${i} +done diff --git a/projects/rocprofiler-systems/src/avail.cpp b/projects/rocprofiler-systems/src/avail.cpp index ee0faf7980..c661a773b4 100644 --- a/projects/rocprofiler-systems/src/avail.cpp +++ b/projects/rocprofiler-systems/src/avail.cpp @@ -32,15 +32,15 @@ #include "library/config.hpp" #include "library/sampling.hpp" -#include "timemory/components.hpp" -#include "timemory/components/definition.hpp" -#include "timemory/components/placeholder.hpp" -#include "timemory/components/properties.hpp" -#include "timemory/components/skeletons.hpp" -#include "timemory/mpl/types.hpp" -#include "timemory/timemory.hpp" -#include "timemory/utility/argparse.hpp" -#include "timemory/utility/types.hpp" +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -700,18 +700,24 @@ write_settings_info(std::ostream& os, const array_t& opts, using width_bool = array_t; array_type _setting_output; - unique_set _settings_exclude = { "TIMEMORY_ENVIRONMENT", - "TIMEMORY_COMMAND_LINE", + unique_set _settings_exclude = { "OMNITRACE_ENVIRONMENT", + "OMNITRACE_COMMAND_LINE", "cereal_class_version", "settings", - "TIMEMORY_CUPTI_PCSAMPLING_NUM_COLLECT", - "TIMEMORY_CUPTI_PCSAMPLING_PERIOD", - "TIMEMORY_CUPTI_PCSAMPLING_PER_LINE", - "TIMEMORY_CUPTI_PCSAMPLING_REGION_TOTALS", - "TIMEMORY_CUPTI_PCSAMPLING_SERIALIZED", - "TIMEMORY_CUPTI_PCSAMPLING_STALL_REASONS" }; + "OMNITRACE_CUDA_EVENT_BATCH_SIZE", + "OMNITRACE_CUPTI_ACTIVITY_KINDS", + "OMNITRACE_CUPTI_ACTIVITY_LEVEL", + "OMNITRACE_CUPTI_DEVICE", + "OMNITRACE_CUPTI_EVENTS", + "OMNITRACE_CUPTI_METRICS", + "OMNITRACE_CUPTI_PCSAMPLING_NUM_COLLECT", + "OMNITRACE_CUPTI_PCSAMPLING_PERIOD", + "OMNITRACE_CUPTI_PCSAMPLING_PER_LINE", + "OMNITRACE_CUPTI_PCSAMPLING_REGION_TOTALS", + "OMNITRACE_CUPTI_PCSAMPLING_SERIALIZED", + "OMNITRACE_CUPTI_PCSAMPLING_STALL_REASONS" }; - cereal::SettingsTextArchive settings_archive(_setting_output, _settings_exclude); + cereal::SettingsTextArchive settings_archive{ _setting_output, _settings_exclude }; settings::serialize_settings(settings_archive); width_type _widths = { 0, 0, 0, 0, 0, 0, 0 }; @@ -720,12 +726,19 @@ write_settings_info(std::ostream& os, const array_t& opts, }; width_bool _mark = { false, false, false, true, true, true, false }; + _setting_output.erase(std::remove_if(_setting_output.begin(), _setting_output.end(), + [&_settings_exclude](const auto& itr) { + return _settings_exclude.find( + itr.find("environ")->second) != + _settings_exclude.end(); + }), + _setting_output.end()); + if(alphabetical) { std::sort(_setting_output.begin(), _setting_output.end(), [](const auto& lhs, const auto& rhs) { - return (lhs.find("identifier")->second < - rhs.find("identifier")->second); + return (lhs.find("environ")->second < rhs.find("environ")->second); }); } @@ -876,6 +889,7 @@ write_hw_counter_info(std::ostream& os, const array_t& options, { for(const auto& itr : fitr) { + if(available_only && !itr.available()) continue; width_type _w = { { (int64_t) itr.symbol().length(), (int64_t) 6, (int64_t) itr.short_description().length(), (int64_t) itr.long_description().length() } }; @@ -930,6 +944,7 @@ write_hw_counter_info(std::ostream& os, const array_t& options, for(const auto& itr : fitr) { + if(available_only && !itr.available()) continue; std::stringstream ss; int _selected = 0; if(options[0]) diff --git a/projects/rocprofiler-systems/src/library.cpp b/projects/rocprofiler-systems/src/library.cpp index 34b0ab37e8..6be7989376 100644 --- a/projects/rocprofiler-systems/src/library.cpp +++ b/projects/rocprofiler-systems/src/library.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library.hpp" #include "library/components/fork_gotcha.hpp" diff --git a/projects/rocprofiler-systems/src/library/components/backtrace.cpp b/projects/rocprofiler-systems/src/library/components/backtrace.cpp index f9bec18670..ef2cf994d9 100644 --- a/projects/rocprofiler-systems/src/library/components/backtrace.cpp +++ b/projects/rocprofiler-systems/src/library/components/backtrace.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/components/fwd.hpp" #include "library/config.hpp" diff --git a/projects/rocprofiler-systems/src/library/components/fork_gotcha.cpp b/projects/rocprofiler-systems/src/library/components/fork_gotcha.cpp index 55a8dde504..916b737a50 100644 --- a/projects/rocprofiler-systems/src/library/components/fork_gotcha.cpp +++ b/projects/rocprofiler-systems/src/library/components/fork_gotcha.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/components/fork_gotcha.hpp" #include "library/config.hpp" diff --git a/projects/rocprofiler-systems/src/library/components/mpi_gotcha.cpp b/projects/rocprofiler-systems/src/library/components/mpi_gotcha.cpp index a61458fd0b..16f9062169 100644 --- a/projects/rocprofiler-systems/src/library/components/mpi_gotcha.cpp +++ b/projects/rocprofiler-systems/src/library/components/mpi_gotcha.cpp @@ -1,36 +1,32 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/components/mpi_gotcha.hpp" #include "library/components/omnitrace.hpp" #include "library/config.hpp" #include "library/debug.hpp" -#include "timemory/backends/mpi.hpp" + +#include +#include namespace omnitrace { @@ -125,10 +121,11 @@ mpi_gotcha::audit(const gotcha_data_t& _data, audit::incoming) api::omnitrace>(mpip_index); if(!mpi_init_string.empty()) omnitrace_pop_trace(mpi_init_string.c_str()); mpi_init_string = {}; - omnitrace_trace_finalize(); #if !defined(TIMEMORY_USE_MPI) && defined(TIMEMORY_USE_MPI_HEADERS) tim::mpi::is_initialized_callback() = []() { return false; }; tim::mpi::is_finalized() = true; +#else + omnitrace_trace_finalize(); #endif } diff --git a/projects/rocprofiler-systems/src/library/components/omnitrace.cpp b/projects/rocprofiler-systems/src/library/components/omnitrace.cpp index 5f2dbfd6bb..8d2342af32 100644 --- a/projects/rocprofiler-systems/src/library/components/omnitrace.cpp +++ b/projects/rocprofiler-systems/src/library/components/omnitrace.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/components/omnitrace.hpp" #include "library/api.hpp" diff --git a/projects/rocprofiler-systems/src/library/components/pthread_gotcha.cpp b/projects/rocprofiler-systems/src/library/components/pthread_gotcha.cpp index 94f9c80298..dcf24dd067 100644 --- a/projects/rocprofiler-systems/src/library/components/pthread_gotcha.cpp +++ b/projects/rocprofiler-systems/src/library/components/pthread_gotcha.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/components/pthread_gotcha.hpp" #include "library/config.hpp" diff --git a/projects/rocprofiler-systems/src/library/components/roctracer.cpp b/projects/rocprofiler-systems/src/library/components/roctracer.cpp index df2ad3246a..04c2e38fe5 100644 --- a/projects/rocprofiler-systems/src/library/components/roctracer.cpp +++ b/projects/rocprofiler-systems/src/library/components/roctracer.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/components/roctracer.hpp" #include "library/components/roctracer_callbacks.hpp" diff --git a/projects/rocprofiler-systems/src/library/components/roctracer_callbacks.cpp b/projects/rocprofiler-systems/src/library/components/roctracer_callbacks.cpp index 42b2255e53..fe66aaa5c3 100644 --- a/projects/rocprofiler-systems/src/library/components/roctracer_callbacks.cpp +++ b/projects/rocprofiler-systems/src/library/components/roctracer_callbacks.cpp @@ -1,37 +1,32 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/components/roctracer_callbacks.hpp" #include "library.hpp" #include "library/config.hpp" #include "library/critical_trace.hpp" #include "library/thread_data.hpp" -#include "timemory/backends/threading.hpp" + +#include #include diff --git a/projects/rocprofiler-systems/src/library/config.cpp b/projects/rocprofiler-systems/src/library/config.cpp index 8bcc0d4ef3..7f7dd27814 100644 --- a/projects/rocprofiler-systems/src/library/config.cpp +++ b/projects/rocprofiler-systems/src/library/config.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/config.hpp" #include "library/debug.hpp" @@ -235,7 +229,8 @@ configure_settings() for(auto&& itr : tim::delimit(_config->get("OMNITRACE_CONFIG_FILE"), ";:")) { - OMNITRACE_CONDITIONAL_BASIC_PRINT(true, "Reading config file %s\n", itr.c_str()); + OMNITRACE_CONDITIONAL_BASIC_PRINT(get_verbose_env() > 0, + "Reading config file %s\n", itr.c_str()); _config->read(itr); } @@ -269,7 +264,7 @@ configure_settings() #if !defined(TIMEMORY_USE_MPI) && defined(TIMEMORY_USE_MPI_HEADERS) if(tim::mpi::is_initialized()) settings::default_process_suffix() = tim::mpi::rank(); #endif - OMNITRACE_CONDITIONAL_BASIC_PRINT(true, "configuration complete\n"); + OMNITRACE_CONDITIONAL_BASIC_PRINT(get_verbose_env() > 0, "configuration complete\n"); } void @@ -277,6 +272,8 @@ print_config_settings( std::ostream& _ros, std::function&)>&& _filter) { + if(get_verbose() < 1) return; + OMNITRACE_CONDITIONAL_BASIC_PRINT(true, "configuration:\n"); std::stringstream _os{}; @@ -400,6 +397,19 @@ get_debug() return static_cast&>(*_v->second).get(); } +int +get_verbose_env() +{ + return tim::get_env("OMNITRACE_VERBOSE", 0); +} + +int +get_verbose() +{ + static auto _v = get_config()->find("OMNITRACE_VERBOSE"); + return static_cast&>(*_v->second).get(); +} + bool& get_use_perfetto() { diff --git a/projects/rocprofiler-systems/src/library/critical_trace.cpp b/projects/rocprofiler-systems/src/library/critical_trace.cpp index a6d53660f7..61bb97a60e 100644 --- a/projects/rocprofiler-systems/src/library/critical_trace.cpp +++ b/projects/rocprofiler-systems/src/library/critical_trace.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/critical_trace.hpp" #include "library/config.hpp" diff --git a/projects/rocprofiler-systems/src/library/perfetto.cpp b/projects/rocprofiler-systems/src/library/perfetto.cpp index e951b868df..0649d0c793 100644 --- a/projects/rocprofiler-systems/src/library/perfetto.cpp +++ b/projects/rocprofiler-systems/src/library/perfetto.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/perfetto.hpp" diff --git a/projects/rocprofiler-systems/src/library/ptl.cpp b/projects/rocprofiler-systems/src/library/ptl.cpp index 0412b69b2c..97ffa1b3d2 100644 --- a/projects/rocprofiler-systems/src/library/ptl.cpp +++ b/projects/rocprofiler-systems/src/library/ptl.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/ptl.hpp" #include "library/config.hpp" diff --git a/projects/rocprofiler-systems/src/library/sampling.cpp b/projects/rocprofiler-systems/src/library/sampling.cpp index 6a07810367..daae1ace39 100644 --- a/projects/rocprofiler-systems/src/library/sampling.cpp +++ b/projects/rocprofiler-systems/src/library/sampling.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/sampling.hpp" #include "library/config.hpp" diff --git a/projects/rocprofiler-systems/src/library/thread_data.cpp b/projects/rocprofiler-systems/src/library/thread_data.cpp index 4435ed576e..802f183ed7 100644 --- a/projects/rocprofiler-systems/src/library/thread_data.cpp +++ b/projects/rocprofiler-systems/src/library/thread_data.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/thread_data.hpp" diff --git a/projects/rocprofiler-systems/src/library/timemory.cpp b/projects/rocprofiler-systems/src/library/timemory.cpp index 257527c946..40180cf569 100644 --- a/projects/rocprofiler-systems/src/library/timemory.cpp +++ b/projects/rocprofiler-systems/src/library/timemory.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "library/timemory.hpp" diff --git a/projects/rocprofiler-systems/src/omnitrace.cpp b/projects/rocprofiler-systems/src/omnitrace.cpp index 1f4c1cf788..68713fbb6b 100644 --- a/projects/rocprofiler-systems/src/omnitrace.cpp +++ b/projects/rocprofiler-systems/src/omnitrace.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "omnitrace.hpp" diff --git a/projects/rocprofiler-systems/src/omnitrace/details.cpp b/projects/rocprofiler-systems/src/omnitrace/details.cpp index 1a4f03dfc7..6dcac4ed95 100644 --- a/projects/rocprofiler-systems/src/omnitrace/details.cpp +++ b/projects/rocprofiler-systems/src/omnitrace/details.cpp @@ -1,30 +1,24 @@ -// Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved. +// MIT License +// +// Copyright (c) 2022 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 -// with 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 +// 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: // -// * Redistributions of source code must retain the above copyright notice, -// this list of conditions and the following disclaimers. -// -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimers in the -// documentation and/or other materials provided with the distribution. -// -// * Neither the names of Advanced Micro Devices, Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this Software without specific prior written permission. +// 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 -// CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // 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 WITH -// THE SOFTWARE. +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. #include "omnitrace.hpp"