Commit grafiek

60 Commits

Auteur SHA1 Bericht Datum
Sriraksha Nagaraj 3fe6016957 SWDEV-356166: Adding fix to load rocminfo without it in the PATH variable
Change-Id: I3f36900b47b72fab44c561123cd7600161124430
2023-05-31 14:49:11 -04:00
Ammar ELWazir 08fc21ac31 SWDEV-403050: Multiple fixes for Memory Leaks in profiler
Change-Id: Ib720a81105af13898ff745ce0cbc2a48c1f4a980
2023-05-30 21:41:54 -05:00
gobhardw d6f481e570 Fixing standalone sample compilation and CHANGELOG
Change-Id: I4b8cf46b32e3d76bcedeadb12357fb6eed1ee213
2023-05-17 11:46:24 -04:00
Ranjith Ramakrishnan 9265322297 SWDEV-383221 - Set the default value of ROCM_HEADER_WRAPPER_WERROR to OFF
Using wrapper header files will result in #warning message by default

Change-Id: If782c70db5a02e0143eca750c6a72803d39ca837
2023-05-08 19:29:14 -04:00
Ammar ELWazir 9e62e066fe V1/V2 API Library Separation
V1 library will be supported as librocprofiler64.so and V2 will be supported as librocprofiler64v2.so and headers will be rocprofiler.h for V1 and v2/rocprofiler.h for v2

Change-Id: Ibe5bdbf2f79f0175342c648e917ae77918186604
2023-05-02 22:44:43 -04:00
Ammar ELWazir a3484f4ee8 Fixing Symbol Versioning for V2
Change-Id: Ieb6f98bec97e9d24ff6acc52b131a1a1a129a829
2023-04-14 13:25:36 -04:00
gobhardw bb6cc5fb41 SWDEV-388295 fixing samples installation error on RHEL
Change-Id: I4bdd26342cc85db60ea66a82a42139e61e3b9a92
2023-04-11 03:56:45 +00:00
Nirmal Unnikrishnan a2e5faf4da SWDEV-389321 : Disabling build_id for rocprofiler rpm package
Change-Id: I6b5432d05fd37aba400280d2d1f8d6b8b92a68bb
2023-03-29 15:55:07 +00:00
AravindanC 3e8dcaaf72 SWDEV-351540 - ASAN packaging for rocprofiler
Change-Id: Ifb5e8b64dd5f4b3e78afea8789f95af3d8f95003
2023-03-29 15:55:07 +00:00
AravindanC ed96e9fbb6 SWDEV-366831 - Wrapper header warning as error enabled with option flag
Change-Id: Ic923027cc20edff067044a6fe56a879c0ecddf7e
2023-03-29 15:55:06 +00:00
Ammar ELWazir dc69331379 Fixing rocprofilerv2 naming and CMake issues
Change-Id: Ib6d336349a056731e5c0f35151296d6fea671360
2023-03-09 13:21:01 +00:00
Ammar ELWazir bc48a2d164 Fixing Installation Path
Change-Id: I98e098f0d06e9862a5df81ddee18c3a081c6157a
2023-03-09 13:20:37 +00:00
Ammar ELWazir 9b0e58dfdf Fixing Packages installation path
Change-Id: Ide3536b3c6050effcc9337e612375a7e5ddb6522
2023-03-09 13:20:37 +00:00
gobhardw f5b648870a Fixing Jenkins unknkown build id issue with samples
Change-Id: Ibae653c44115e1360ca1145ed4eaa4627a54cb4b
2023-03-09 13:20:37 +00:00
Ammar ELWazir 33ae878846 Disabling samples compilation
Change-Id: Ibd4ec66cfbc4751034ad98143b9ca129947760f1
2023-03-09 13:20:37 +00:00
Ammar ELWazir 8940162c38 Disabling Samples
Change-Id: Ic51ca32b14e5926620b3a21f6ec762a800f5cee1
2023-03-09 13:20:36 +00:00
Ammar ELWazir 8032adb64f Adding rocprofilerv2
Change-Id: Ic0cc280ba207d2b8f6ccae1cd4ac3184152fc1ad
2023-03-09 13:20:33 +00:00
Ranjith Ramakrishnan ba5c843b04 Split rocprofiler to runtime and dev/devel package
SWDEV-356024 - Development package name will have suffix dev or devel based on OS
Devel pacakge contents - Header files and non verioned lib file librocprofiler64.so
Runtime package contents - Binaries, xml files, python files , script files, license file, librocprof-tool.so and versioned library files

Change-Id: Id416b11f49a7d0acb917bc4936cc0cba0d101bee
2023-01-13 14:52:02 -08:00
Ranjith Ramakrishnan b4258de318 Removed the initialization of cmake_install_libdir
The initialization should be controlled from build scripts. Removing the same from source code
Build scripts is initializing  the variable to "lib"

Change-Id: I55b6cf4752e692735c2a0be13b79f5988137e3a6
2022-12-15 23:15:58 -08:00
Icarus Sparry 22f2e593c2 Adding missing commits
Adding commits found in mainline and not in staging: Add dependency on rocm-core

Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
Change-Id: Icb935e9230888fd005d9ca3617e28f6173173cc8
2022-06-01 13:21:04 -04:00
Ranjith Ramakrishnan b24e05e138 SWDEV-321112: Use GNUInstallDirs
Use GNUInstallDirs variables to determine the location of BINDIR,
LIBDIR, INCLUDEDIR, DOCDIR, LIBEXECDIR and SYSCONFDIR.

Note that CMAKE_INSTALL_LIBDIR is overriden, since the default for RHEL
is lib64, but ROCm packaging wants it to be lib always. Distros or users
can easily override this.
Project name changed from rocprofiler64 to rocprofiler,since CMAKE_INSTALL_DOCDIR uses the project name

Change-Id: Iff2622b4bfc38ce5caea270e6e44ba74485cb9e4
2022-05-19 14:07:42 -04:00
Ammar ELWazir 0faaa83de7 SWDEV-296010: Fixing RPATH & CMAKE files
Fixing the RPATH skip & Removed the export line from the build.sh as we have find_library with giving it a path to /opt/rocm & easy to use build.sh

Change-Id: I1ac5b51eafb54ef0359bf6fb55f2fe2d39a6cafa
2022-05-03 20:13:02 -05:00
Ammar ELWazir 1f5b02f9c8 Fixing header file location
prof_protocol.h is now located in /opt/rocm/include/roctracer/ext instead /opt/rocm/roctracer/include/ext

Change-Id: I98623dcf3c2e6bcef128c1ef35959ef0a4a1d63f
2022-04-23 13:22:36 +00:00
Ranjith Ramakrishnan 015697db74 File Reorganization with backward compatibility
Package files installed in /opt/rocm
Wrapper header files and library soft links installed in/opt/rocm/rocprofiler
Test tools library and binaries renamed
Internal binaries installed in /opt/rocm/libexec/rocprofiler
run.sh updated with file reorg changes

Change-Id: I927d1a0dcd814764ebf0f473d0a64883906d5457
2022-03-05 14:49:41 -08:00
Ammar ELWazir c19cfbfffd SWDEV-318551: Adding License file for profiler
Making the new License file, Adding support in the CMakeLists.txt

Change-Id: I785035a780fbfc59951fc27d45f9c1869ffb4fb3
2022-01-26 13:38:42 -05:00
Icarus Sparry 6676d60516 Allow owner write permission
If we are packaging debug information then we need to edit the created
libraries and executables to extract the debug information. Due to a
bug in the tooling this requires write access to the created files.

Allow generation of only rpm and only deb files is specified on the
command line.

Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
Change-Id: I9a9df81102770ba681b1e7e0b5f704990f5435bb
2021-11-24 20:59:34 +00:00
Icarus Sparry f4c7309592 Allow creation of just deb or rpm
Remove hard code of generating both deb and rpm, allow the user to
specify what is desired and cache that choice.

Create executable with owner write permission to work around binutils
bug.

Change-Id: I67655e5d351b227d1a8db4645228300d2bb83f9a
Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
2021-11-16 00:14:14 +00:00
Laurent Morichetti 63d20312ae Install merge_traces.sh in $prefix/bin
Change-Id: I6cea078e5b64a68d7bd269dc3aab976a7ab7b5c7
2021-10-05 21:29:53 -07:00
Laurent Morichetti 6fe4a5db51 Move spmltgen.py to amd-npi
Change-Id: I63e67193453e2c5479a03a8c9c97f94eced04268
2021-08-20 10:45:39 -07:00
Freddy Paul c684d61de8 rocprofiler:update with case-sensitivity email
All packages should have a valid email for contact.

SWDEV-257322

Change-Id: I49107ff44b9aaf13ec6a20319a420146f6443907
2021-05-03 11:48:57 -07:00
Freddy Paul 71ce3fa617 rocprofiler:Add maintainer email in package
All packages should have a valid email for contact.

SWDEV-257328

Change-Id: I03ceefc46cf8da4486e19b1001abd4cd8cbcb3c5
2021-04-30 11:37:33 -07:00
Evgeny 82d7bb2145 SWDEV-265287 : integration spmltgen.py script
Change-Id: Ief3e93225fb6660e72a04e4bd4b379262b73c914
2021-04-08 10:04:39 -04:00
Cole Nelson 35c1b8bff2 CMakeLists.txt: add ENABLE_LDCONFIG to support multi-version install
Depends-On: I58fdf1d0b4e864b5a61ffe8e335d430d424811ab
Change-Id: Ibf4d6446e00eb119d1ea88d81da144e63194f615
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
2021-03-27 15:33:09 -07:00
Cole Nelson 76c1882653 CMakeList.txt: conformant package names
Still needs valid email ID in the form of package_name.support@amd.com.
SWDEV-257328

Names as built (internal):
rocprofiler-dev_1.0.0.31000-crdnnv.437_amd64.deb
rocprofiler-dev-1.0.0.31000-crdnnv.436.el7.x86_64.rpm

Change-Id: Id90ce9c92dcc1655ddd04402af929f64f6d5a360
Signed-off-by: Cole Nelson <cole.nelson@amd.com>
(cherry picked from commit 61a99d8ddedb747f534fd41a4f5ed412a56045bb)
2020-10-27 12:52:12 -07:00
Evgeny 169e36f379 SWDEV-252747 : testing using v3 object
Change-Id: I427df765d1be55bd2851ce441238b3eaa46cca4f
2020-10-09 06:38:46 -04:00
Evgeny 8850e46071 kernel objects dumping
Change-Id: I5a16e05b7df438efa903948701b65a9ced99e5f3

initial codeobj event implementation

Change-Id: Ia7fac3c2b9897a004cfe88c4de82ba8c18284196

update - codeobj event implementation

Change-Id: I2b91b6e689875af03f0086f5a0872a97a629fd83

update2 - codeobj event implementation

Change-Id: Icff75f14fd21963e40db95373fa74880957a9e32

fix - codeobj event implementation

Change-Id: I76c33c875cb429fb12a974bb408b217f187b4536

URI buffer fix - codeobj event implementation

Change-Id: I7ce1a758e021455da3fe5b8a6e4ae3ab46e9760e

HSA events exposing

Change-Id: I3664ab4e5111c4ccedaf068dcb19f48055f0ef9b

HSA events data struct normalizing

Change-Id: I365ef0db45e0a9314bd2a1a4d29dd4eb4e91297d
2020-09-11 10:01:54 -05:00
Evgeny f6e42f2614 mem_manager.py packaging fix
Change-Id: I8faf85056f97e8bcbc4b3511d351b9974c3c9d75
2020-06-29 13:27:22 -05:00
Evgeny 46fdb2ebef fixing cmake error message as fatal error
Change-Id: I9a378e1f70f77f2af8e53afe3abdb0b988b0f7bc
2020-04-21 22:34:14 -05:00
Evgeny 9ffbfc0bee txt2params.py packaging
Change-Id: Ia7221fbcbebc89c0dba8eca96ef9a4b01a258f05
2020-04-10 10:50:04 -05:00
Evgeny aac37d4d1e fixing CPACK prefix to by just rocm root path
Change-Id: I8caf5832aa9536b1e891e07cb992dd5258b8755d
2020-03-29 01:09:11 -05:00
Evgeny 9df9fddcfb PC sampling bringup
Change-Id: I0d041c4c8c3778f2c328cde38432bc72223706a3

pc sampling integration fix

Change-Id: Ia66ff876d2d99ec4d561daf8320b65d75f5cd2fe
2020-03-28 13:07:45 -05:00
Evgeny 299a08e4be update for gfx9 and 3.1
Change-Id: I0c218f8a2dcdad1c8deb44770d8a64ccd95a92fb
2020-03-24 19:07:11 -05:00
Evgeny 233ceb386e changing include link on directory
Change-Id: I6901b17b815ae24678372bde6bbb624698643257
2020-03-24 15:52:01 -05:00
Freddy Paul 287ac32661 Support installing multipel version of ROCm
Add ROCm release version into libraries and binaries to avoid
file name conflicts across releases(Phantom requriement).

Change-Id: I271e49e842a02cca79b02e8352059cec196c4415
2020-01-13 14:18:59 -05:00
Evgeny cafeee3f9d fix RPM packaging, setting rpm_post as RPM_POST_INSTALL
Change-Id: I91790a3f2a8368940eba29cf1ff76728fc9ac3a1
2019-11-25 16:29:15 -06:00
Evgeny 862f042c43 Rename /opt/rocm/rocprofiler.so link to proper librocprofiler64.so; Simplify --hsa-trace option just to one, no need with --stats and --timestamp on
Change-Id: I1dccfdd8843437bf9ed10ac259e84b34ef986be3
2019-02-01 23:03:59 -06:00
Evgeny 00df7f2db8 scripts fix and install in specific location
Change-Id: I4aa8b0c46efa2b8eec26b5b6225ba2a155d17da5
2019-01-29 15:26:05 -06:00
Evgeny 2ad478423e CPACK_PACKAGING_INSTALL_PREFIX fix
Change-Id: If8f428a5f8b1780e33ef3fe0e55d47f07ce18c4d
2018-12-01 22:19:01 -06:00
Evgeny 722fa91624 pre/post package scripts install dir name fix and CPACK_PACKAGING_INSTALL_PREFIX
Change-Id: I415875572829dadc9996dd7561418a77ec3fe1bb
2018-11-12 12:39:03 -06:00
Evgeny baf2f25bac packages deb/rpm/tgz
Change-Id: I1de06a8ad19a5c44baf45a76fa34db570899c72d
2018-11-10 21:28:51 -06:00