Commit Graph

50 Commits

Author SHA1 Message Date
Elwazir, Ammar 747763eadd Update sync-mainline.yaml
[ROCm/rocprofiler-register commit: 80fcffeb5a]
2025-06-30 15:24:35 -05:00
Elwazir, Ammar 3c986be896 Update sync-staging.yaml
[ROCm/rocprofiler-register commit: 57143911c3]
2025-06-30 15:24:13 -05:00
Vaddireddy, Sushma 8b956a1f39 Added install target for simple-hip executable (#10)
* Added install target for simple-hip executable

* Updating destination path

* Update CMakeLists.txt

* Update CMakeLists.txt

* Test Installed Packages

* Updating Destination path

* Update continuous-integration.yml

* Update continuous-integration.yml

* Adding env

* Adding PACKAGING_INSTALL_PREFIX

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Update continuous-integration.yml

* Add libasan.so path for AddressSanitizer preloadiing

* Add libasan.so path for AddressSanitizer preloadiing

* Add libasan.so path for test test-simple-hip-normal

* Added sanitizer runtime library for tests

* Added LD_PRELOAD to simple-hip-normal-env test

* Added LD_PRELOAD to simple-hip-normal-env test

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update CMakeLists.txt

* Formatting

* Updated path for simple-hip-preload-env

* Updated path for simple-hip-preload-env

* Update continuous-integration.yml

* Updated preload path for  simple-hip-preload-env

* Updated preload path for  simple-hip-preload-env

---------

Co-authored-by: Sushma Vaddireddy <svaddire@amd.com>
Co-authored-by: Elwazir, Ammar <Ammar.Elwazir@amd.com>

[ROCm/rocprofiler-register commit: 03d58213b9]
2025-06-20 13:54:40 -05:00
Trowbridge, Ian 191778f071 Add copyright disclaimer for new files (#16)
[ROCm/rocprofiler-register commit: 19fe192e8f]
2025-06-17 10:34:21 -05:00
Hila, Nino 54198a3a75 Update palamida.yml (#14)
* Add palamida.yml - removing url

[ROCm/rocprofiler-register commit: 831f002fbc]
2025-05-12 21:52:24 -07:00
Bhardwaj, Gopesh 5dcb2cbdd7 updating fmt submodule to latest release tag (#13)
* updating fmt submodule to latest release tag

* fix configuration error

[ROCm/rocprofiler-register commit: 4427f2bd6d]
2025-04-30 09:57:37 +05:30
Elwazir, Ammar 89298f94fd Removing deprecated Ubuntu 20.04 runner (#11)
[ROCm/rocprofiler-register commit: 16b142bb31]
2025-04-23 21:06:02 -05:00
Hila, Nino 2c54c79833 Add palamida.yml (#9)
[ROCm/rocprofiler-register commit: 1b0ce80092]
2025-04-23 21:05:36 -05:00
Mallya, Ameya Keshava b209c43419 Fix to mainline
[ROCm/rocprofiler-register commit: b96aab5b36]
2025-04-01 09:47:28 -07:00
Mallya, Ameya Keshava b827c1ec09 Adding !verify features
[ROCm/rocprofiler-register commit: 603038d4d6]
2025-03-31 13:35:09 -07:00
Madsen, Jonathan cdbb942c9a Remove rocprofiler-sdk forward decls from public header (#8)
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-register commit: 9338b9abc3]
2025-03-22 22:30:55 -05:00
Madsen, Jonathan 8f1cb6417a Record loaded runtimes (#6)
* Provide rocprofiler_register_iterate_registration_info function

- stores the runtime arguments for later reference

* Fix compilation error

* Removed unused variable

* Store api tables in vector

* Update license

* Replace global_mutex usage with scoped_count

- in rocp_invoke_registrations

* Formatting

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-register commit: fc712350ef]
2025-03-21 04:36:58 -05:00
Madsen, Jonathan e820b8862a Logging updates (#7)
* General logging updates

* ROCm 6.1.x fatal defect: unconditional abort if tool found but rocprofiler-sdk missing

- Adding rocprofiler-sdk support breaks backwards compatibility in ROCm 6.1.x because `rocprofiler_configure` symbol triggers looking for rocprofiler-sdk library (which was not released until ROCm 6.2)
- Bump version to 0.5.0

* revert to using fatal error

* Include header updates

* Fix CodeQL suggestions

* CMake and CI updates

- minimum cmake version is 3.22.0
- added requirements.txt
- improved rocprofiler_register_{formatting,linting}.cmake

* Disable deprecated declarations warnings

* Use "overwrite" instead of "override"

- override is a keyword in C++

* Disable REQUIRED for formatting and linting when BUILD_DEVELOPER=ON

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-register commit: cb1b430251]
2025-03-21 01:23:45 -05:00
Mallya, Ameya Keshava e6f9ba2e77 Added release trigger for further releases
[ROCm/rocprofiler-register commit: b6c5f9133a]
2025-03-14 14:08:06 -07:00
Mallya, Ameya Keshava d23de1b2ff Added !verify trigger
[ROCm/rocprofiler-register commit: 7d691bc533]
2025-01-28 20:17:23 -08:00
Trowbridge, Ian 2fc0e4ecd4 Support for rocJPEG Tracing (#5)
* Add initial support for rocJPEG API Trace

* Added tests for rocjpeg

* Formatting

[ROCm/rocprofiler-register commit: 366716af06]
2025-01-27 11:50:12 -06:00
Trowbridge, Ian 515f4957f4 Add rocDecode API support (#4)
* Add rocDecode API support

* Update CI

* CI update: Sanitizers run on ubuntu 22.04

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-register commit: de3a874b1a]
2025-01-21 21:00:43 -06:00
Mallya, Ameya Keshava 047f6edc90 Fixed Workflow for updated KWS structure
[ROCm/rocprofiler-register commit: 164eda5231]
2025-01-17 08:25:42 -08:00
Mallya, Ameya Keshava 502a8386c6 Added KWS check
[ROCm/rocprofiler-register commit: 3bd980bff8]
2025-01-15 11:15:00 -08:00
Elwazir, Ammar be43e753c6 Update Github Workflows (#2)
* Update sync-mainline.yaml

* Update sync-staging.yaml

* Update formatting.yml

[ROCm/rocprofiler-register commit: 11c9259043]
2025-01-08 09:50:04 -06:00
Choudhary, Rahul a95f011749 Create rocm_ci_caller.yml
[ROCm/rocprofiler-register commit: f809f21740]
2025-01-07 11:32:19 -08:00
Mythreya 13c0bf8e2b Add rccl API support (#66)
* [Draft]: Add rccl API support

* Partial tests

Need to add tests to the cmake file

[ROCm/rocprofiler-register commit: b71f9cabe6]
2024-09-11 17:57:51 -05:00
Jonathan R. Madsen ec3d720303 Fix CPACK_RPM_PACKAGE_LICENSE (#63)
- move install command for license to rocprofiler_register_config_install.cmake
- CPACK_RPM_PACKAGE_LICENSE should be set to license type (i.e. "MIT"), not the path to the license file

[ROCm/rocprofiler-register commit: 11a4668306]
2024-04-25 16:04:09 -05:00
raramakr e4b6a828e4 SWDEV-448381 - CPACK dependency list should be comma separated (#61)
* SWDEV-448381 - CPACK dependency list should be comma separated

* Remove redundant code and update the dependency list in first place

* Update cmake/rocprofiler_register_config_packaging.cmake

---------

Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>

[ROCm/rocprofiler-register commit: dd231244ee]
2024-04-25 15:55:14 -05:00
Joseph Macaranas ac3d2ca8c5 Add support for external CI builds using Azure Pipelines (#62)
* Add support for external CI builds using Azure Pipelines

* Change token name to match IT-created token

[ROCm/rocprofiler-register commit: 2b777139d3]
2024-04-25 13:41:30 -05:00
Ammar ELWazir c91487d483 Adding License to core package
[ROCm/rocprofiler-register commit: 64a0e626e4]
2024-04-23 11:50:41 -05:00
Ammar ELWazir e875ffed24 Update rocprofiler_register_config_packaging.cmake
[ROCm/rocprofiler-register commit: f18651d9f1]
2024-04-23 11:50:41 -05:00
Ammar ELWazir 104c8366e5 Update .gitignore
[ROCm/rocprofiler-register commit: eb005aac74]
2024-03-25 12:51:38 -05:00
Ammar ELWazir 5c7e0ffdd2 Update sync-mainline.yaml
[ROCm/rocprofiler-register commit: 1e59ce3620]
2024-03-25 12:46:08 -05:00
Ammar ELWazir f1dc5f7352 Update sync-staging.yaml
[ROCm/rocprofiler-register commit: 52dfa074ae]
2024-03-25 12:44:54 -05:00
Ammar ELWazir 7b03ce4cdd Update sync-staging.yaml
[ROCm/rocprofiler-register commit: 7b8b97e028]
2024-03-25 12:40:16 -05:00
Ammar ELWazir 5d1524fd39 Update sync-staging.yaml
[ROCm/rocprofiler-register commit: 88e3460af7]
2024-03-25 12:31:04 -05:00
Ammar ELWazir 5df9170b59 auto sync public (#58)
* Create sync-staging.yaml

* Create sync-mainline.yaml

[ROCm/rocprofiler-register commit: a0054a7513]
2024-03-25 12:27:05 -05:00
Jonathan R. Madsen d75ccb9081 Search for rocprofiler_set_api_table(...) via RTLD_DEFAULT (#56)
* Search for rocprofiler_set_api_table(...) via RTLD_DEFAULT

- check if rocprofiler_set_api_table function has already been loaded via dlsym(RTLD_DEFAULT, ...)
- fix warning about conflicting ROCM_DEP_ROCMCORE and ROCPROFILER_REGISTER_DEP_ROCMCORE

* Bump version to 0.4.0

[ROCm/rocprofiler-register commit: e2db37ca8d]
2024-02-25 21:14:27 -06:00
Jonathan R. Madsen 561bbc92ea Correct the install locations of cmake config files (#55)
* Correct the install locations of cmake config files

The cmake config files should be installed in <Install_Prefix>/lib/cmake/<component_name>

* Apply suggestions from code review

* Correct the install locations of cmake config files

- ROCm standard for cmake config files is <install-prefix>/lib/cmake/<package-name>

---------

Co-authored-by: Ranjith Ramakrishnan <Ranjith.Ramakrishnan@amd.com>

[ROCm/rocprofiler-register commit: 1f0d06b6cb]
2024-02-23 10:17:58 -06:00
Jonathan R. Madsen 2e56a928ee Merge branch 'amd-mainline' into amd-staging
[ROCm/rocprofiler-register commit: f785235543]
2023-12-21 21:56:10 -06:00
Jonathan R. Madsen 4b8f2c5ca0 Fix packaging (#51)
* Fix packaging

- Bump version to 0.3.0
- Set CMAKE_INSTALL_DEFAULT_COMPONENT at high level
- Fix HOMEPAGE_URL
- Update install components
- Install tests directory
- Create two separate packages: core and tests
- Auto-generate deps based on shared libs (DEB and RPM)
- Auto-generate list of shared libs provided by package (DEB and RPM)
- cleanup cmake/rocprofiler_register_utilities.cmake

* Enable sanitizer jobs

* Update cmake/rocprofiler_register_memcheck.cmake

- set env for LD_PRELOAD

* Update tests for sanitizer jobs

* Remove loading librocprofiler64.so

- this library does not have rocprofiler_set_api_table symbol

* Link to static fmt library

[ROCm/rocprofiler-register commit: e8aed4dbe4]
2023-12-21 21:53:59 -06:00
Jonathan R. Madsen 6834bcd3bc HIP compiler table support (#50)
* Update lib/rocprofiler-register/details/dl.cpp

- change default_link_open_modes to only use LAZY + NOLOAD

* Update lib/rocprofiler-register/rocprofiler-register.cpp

- Support HIP compiler table
- changed FATAL logging to WARNING in rocp_load_rocprofiler_lib

* Update VERSION

- bump to 0.2.0

[ROCm/rocprofiler-register commit: 8ac1d556ce]
2023-12-13 04:15:27 -06:00
Jonathan R. Madsen 10b63beaca Merge pull request #49 from ROCm-Developer-Tools/amd-staging
Support ROCP_TOOL_LIBRARIES env + librocprofiler-sdk.so (#48)

[ROCm/rocprofiler-register commit: c4c4e51e0f]
2023-11-30 13:27:50 -06:00
Jonathan R. Madsen 0f8430700d Support ROCP_TOOL_LIBRARIES env + librocprofiler-sdk.so (#48)
* Fix support for version in find_package(rocprofiler-register <version>)

* Update lib/rocprofiler-register/rocprofiler-register.cpp

- change rocprofiler library name to librocprofiler-sdk.so
- add helper function rocp_load_rocprofiler_lib for dlopen of rocprofiler library
- support ROCP_TOOL_LIBRARIES environment variable
- reworked rocprofiler_register_error_string

* Update tests/rocprofiler

- rename library to librocprofiler-sdk
- remove rocprofiler_configure within librocprofiler-sdk.so

* Add tests/generic-tool

- provides implementation of rocprofiler_configure

* Update tests/CMakeLists.txt

- use libgeneric-tool.so
- LD_PRELOAD libgeneric-tool.so instead of librocprofiler
- Add tests which use ROCP_TOOL_LIBRARIES

* Update tests/generic-tool/generic-tool.cpp

- include <cstdint>

[ROCm/rocprofiler-register commit: ab02cb6570]
2023-11-29 20:58:18 -06:00
Jonathan R. Madsen d0b69ad2b6 Build System Fixes (#46)
* Update build system

- emsure CMAKE_INSTALL_LIBDIR is always lib
- fix find_package(rocprofiler-register) in build tree
- set rocprofiler-register_VERSION in rocprofiler-register-config.cmake
- samples/library-implementation always uses find_package(rocprofiler-register)

* Update cmake/rocprofiler_register_config_install.cmake

- rocprofiler_register_DIR -> rocprofiler-register_DIR

[ROCm/rocprofiler-register commit: b04c8478f2]
2023-11-28 18:19:20 -06:00
Gopesh Bhardwaj 4d08ddcb8d SWDEV-431048 Fixing rocprofiler-register package dependencies (#44)
* SWDEV-431048 Fixing rocprofiler-register package dependencies

* cmake formatting (cmake-format) (#45)

Co-authored-by: bgopesh <bgopesh@users.noreply.github.com>

* Apply suggestions from code review

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: bgopesh <bgopesh@users.noreply.github.com>
Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>

[ROCm/rocprofiler-register commit: ed1938479d]
2023-11-28 18:19:20 -06:00
Ammar ELWazir 489bef5ed1 Update .gitignore (#33)
* Update .gitignore

* Update .gitignore

[ROCm/rocprofiler-register commit: 6af827cd91]
2023-11-03 07:02:04 -05:00
Ammar ELWazir c7f68524bf Fixing ROCM Patch Version issue (#30)
[ROCm/rocprofiler-register commit: 5aa94a7160]
2023-10-26 09:04:39 -05:00
Jonathan R. Madsen 97081a743a C++ filesystem and link to dl library in test exe (#29)
* Add lib/rocprofiler-register/details/filesystem.hpp

- this provides backwards compatibility for compiler which do not have <filesystem>
  - use <experimental/filesystem> when not available

* Update tests/CMakeLists.txt

- test executables link to dl library (via CMAKE_DL_LIBS)

* Update CI workflow

- include ubuntu-20.04 jobs

[ROCm/rocprofiler-register commit: 24041c4d87]
2023-10-25 12:49:13 -05:00
Jonathan R. Madsen 26b7abc638 Update README and workflows (#27)
* Update README

- Overview
- Contributing
- Build and install

* Update workflows

- branches reflect new amd-mainline and amd-staging names instead of main and develop

[ROCm/rocprofiler-register commit: 40f37f9597]
2023-10-25 12:49:13 -05:00
Jonathan R. Madsen 9f2109381b Sync with rocprofiler updates (#26)
- Update rocprofiler_configure prototype
- add compile_commands.json to .gitignore

[ROCm/rocprofiler-register commit: 5a6ac895d1]
2023-09-26 13:50:23 -05:00
Benjamin Welton 9f796cb11d Added submodules for glog/fmt (#9)
* Added submodules for glog/fmt

Removes existing printing/formatting code.

* Update external/CMakeLists.txt

Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>

* Update external/CMakeLists.txt

Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>

* Update external/CMakeLists.txt

- checkout submodule if not already checked out or clone repo if no .gitmodules file
- find_package(... REQUIRED)

* Disable tests from external directory

* Update external/CMakeLists.txt

- fix type: BRANCH -> REPO_BRANCH

* Update cmake/rocprofiler_register_formatting.cmake

- Include external/CMakeLists.txt in format-cmake target
- include format-cmake in format target

* Fix cmake options

- ROCPROFILE_REGISTER_* -> ROCPROFILER_REGISTER_*

* Update rocprofiler_register_linting.cmake

- fix header filter to exclude external headers
- enable warning-as-errors except for misc-header-include-cycle because that originates in fmt headers

* Fix clang-tidy error in utility.cpp

- a bit out of place in this PR but caught due to --warning-as-errors addition

---------

Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>

[ROCm/rocprofiler-register commit: 33b19051d2]
2023-08-17 20:01:34 -05:00
Jonathan R. Madsen 7e6e33cfce Initial Implementation: include (#10)
* Initial Implementation: include

* Initial Implementation: lib details (#11)

* Initial Implementation: lib details

* Initial Implementation: lib (#12)

* Initial Implementation: lib

* Initial Implementation: source (#13)

* Initial Implementation: source

* Initial Implementation: samples (#14)

* Initial Implementation: samples

* Initial Implementation: tests (#15)

* Initial Implementation: tests

* Initial Implementation: scripts (#16)

* Initial Implementation: scripts

* Initial Implementation: cmake (#17)

* Initial Implementation: cmake

* Initial Implementation: top-level files (#18)

* Initial Implementation: top-level files

- clang-format
- clang-tidy
- cmake-format
- ignore build and cache directories
- main CMakeLists.txt
- pyproject.toml (python formatting)
- VERSION file

* Initial Implementation: workflow (#19)

* Fix unused variable

- rocprofiler_register_warn_level

[ROCm/rocprofiler-register commit: fa4295db6b]
2023-08-17 14:59:24 -05:00
Ammar ELWazir 8ef9cf2642 Initial commit
[ROCm/rocprofiler-register commit: 53a9547670]
2023-08-08 13:54:40 -05:00