Commit Graph

8920 Commits

Author SHA1 Message Date
Ranjith Ramakrishnan ea061be2d1 SWDEV-366831 - Compile time flag to switch between #warning and #error message
Using backward compatibility paths will provide an #error message. Compile time option added to enable/disable the #error message.
Disabling the same will provide a #warning message

Change-Id: I6abc236e810ccc38d3636074e0e8f5a9657c2e9a
2023-03-10 09:12:20 -08:00
Ranjith Ramakrishnan 14b86107a7 SWDEV-366831 - Compile time flag to switch between #warning and #error message
Using backward compatibility paths will provide an #error message. Compile time option added to enable/disable the #error message.
Disabling the same will provide a #warning message

Change-Id: Ib49633501aa6eb6d97158b1ecfc47de6f18fba85
2023-03-10 08:56:45 -08:00
Ranjith Ramakrishnan 629ddde072 Compile time flag to switch between #warning and #error message
Using backward compatibility paths will provide an #error message. Compile time option added to enable/disable the #error message.
Disabling the same will provide a #warning message

Change-Id: Ib48e361b72176e2845c8f74f980f0234e7eb4a7d
2023-03-10 08:39:54 -08:00
Jonathan R. Madsen ab0e5d9b44 omnitrace -> omnitrace-instrument (#256)
* omnitrace-exe -> omnitrace-instrument

- Renamed omnitrace executable to omnitrace-instrument
- Provided dummy omnitrace exe which forwards onto omnitrace-instrument
- updated all docs to reflect the name change of the executable
  - however, it is possible some were missed

* Update dyninst submodule

- correctly handle BOOST_LINK_STATIC in DyninstBoost.cmake

* Disable IPO for omnitrace-instrument
2023-03-09 18:18:34 -06:00
Ammar ELWazir ab94b378ae SWDEV-373784: Fixed hip/hsa traces not to include roctx tags
Change-Id: I0ffbac3a313dbd9867a85b7cea0c92fe0b9ca0b9
2023-03-09 13:21:10 +00:00
Ammar ELWazir 38648b5194 SWDEV-373783: removing end_time for roctx traces
Change-Id: I34ddb12cc402b0be1517a0c157922a15da7fdd11
2023-03-09 13:21:10 +00:00
Ammar ELWazir 80676bb478 SWDEV-379553: Fix for counters
Change-Id: I65b9bf61c6fc288f95461981979699ccccc4820f
2023-03-09 13:21:09 +00:00
Sriraksha Nagaraj f29b968185 SWDEV-379542: Adding to LD_PRELOAD instead of overriding it
Change-Id: Ib6395454ab6d09124baf2f958f26384f8689f64e
2023-03-09 13:21:09 +00:00
Ammar ELWazir 05f2ef97f9 SWDEV-387026: using gethostid instead of depending on libsystemd
Change-Id: If576eec4abee1a52dfe7cc5bce507420bc8a4d07
2023-03-09 13:21:09 +00:00
Ammar ELWazir da570693e3 Fixing Dispatch numbers
Change-Id: I2c8fb4aedfde68acaeb36cbb2e3263a0317011a7
2023-03-09 13:21:08 +00:00
Ammar ELWazir ffbf7ed8b3 Fixing find_package Path
Change-Id: I9c875df8d008b123c5597855c0d468491a47f366
2023-03-09 13:21:08 +00:00
Giovanni LB be5bdb0640 Parser to skip corrupted data
Change-Id: Ie557177625914565bb08acfa9b2410b81156b282
2023-03-09 13:21:08 +00:00
Ammar ELWazir ceefad27d0 Solving failed tests for rocprofiler v1
Change-Id: I61ffc4380b077db3a23c9dbb3e680324cf7f1a4a
2023-03-09 13:21:08 +00:00
Ammar ELWazir 118dcab102 Solving merge issues between v1 and v2
Change-Id: Ic7fcf7dfb55e893ebc78abb5b33ed79873ea73da
2023-03-09 13:21:08 +00:00
gobhardw f3a7eabdfc updating readme for profilerv2
Change-Id: I514b5f23031a2d4a51305fe69ac838956d918e72
2023-03-09 13:21:07 +00:00
gobhardw 4c5ea0b7c8 SWDEV-385556 Fix for CI staging job is getting failed
Change-Id: Iec4ec574a759e6db3c62d247b90d713a32a9ba32
2023-03-09 13:21:07 +00:00
Giovanni LB cb07947ad4 SWDEV-385374: Fixed next record iteration.
Change-Id: I69e86f2c27ea9a8b02cb48d876534b1dd0f6dc4f
2023-03-09 13:21:07 +00:00
Giovanni LB 4ec67854e5 SWDEV-384602: Solved issues with multiple users.
Change-Id: Ie40addcbfdfce6ce45ceec8e38fc83d3d72882eb
2023-03-09 13:21:07 +00:00
gobhardw 34e62464ee SWDEV-297569: Support for xgmi counters
Change-Id: If14c0f63821b721fe719d3b76915afc2f2333d5c
2023-03-09 13:21:07 +00:00
Saurabh Verma 3a639543e7 SWDEV-297574: Support for pcie counters
Change-Id: I4a662c43a9d0cf883f336574baa09fc33b78b9af
2023-03-09 13:21: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
Sriraksha Nagaraj 1d0703b21e SWDEV-382125: Adding a description when counter is not supported on a hardware
Change-Id: Ic835f59029aa1a95d32b80bf79375978e8ea9635
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 044669a83b Removing the compilation of PC Sampling sample
Change-Id: Ice539983e7f1d9510a2fa227a2620f0877fcbb5a
2023-03-09 13:20:36 +00:00
Ammar ELWazir e58e4f2a72 Excluding PC Sampling Sample from samples package
Change-Id: I27865f8040ea519909db45041b0aaad6b786ce8e
2023-03-09 13:20:36 +00:00
Ranjith Ramakrishnan 2cd0e093ef Get ROCm path relative to hsakmt header file path
SWDEV-351540 - ROCm path was derived from hsakmt library path.
For ASAN build, the library will be installed in <Install_prefix>/lib/asan rather than <Install_Prefix>/lib
Since the header file installation path remains the same for ASAN and normal build, using the same for getting the ROCm path

Change-Id: I735dbd3c0f67a69e833059a05851da3971098ec5
2023-03-09 13:20:36 +00:00
gobhardw 602ac83ce7 Fixed Outpt Path and recv_0 for ATT
Change-Id: I94248e217d5af14152be82cbe6095de90a489387
2023-03-09 13:20:36 +00:00
Ammar ELWazir f9a096a194 Modifying Public header file with gpu index definition
Change-Id: I9c07ac419b9894c6dc65daa763bbc4cd4a7511b0
2023-03-09 13:20:35 +00:00
Saurabh Verma 763799349b Adding Make for bulding code samples
Change-Id: I7b62a4c65c5560239e69ea121c6fdaef188f709d
2023-03-09 13:20:35 +00:00
gobhardw 03c305dbd4 Making ATT work with Profilerv2
Change-Id: Ic9334aa80e40faaaf5c1a79ba37dbe52e8d31253
2023-03-09 13:20:35 +00:00
Ammar ELWazir 6dda141e4b GPU ID issue
Before, the GPU IDs were counted starting from zero, now CPU IDs are counted from zero and then GPU IDs from the last CPU_ID+1

Change-Id: I3f815195ad97933e02f249841e53b64b674370d9
2023-03-09 13:20:35 +00:00
Ranjith Ramakrishnan 7f413038d2 SWDEV-366831 - File reorg backward compatibility message changed to #error
Change-Id: Ic47e8d32846e5c15ee7449e53ccea52041862299
2023-03-09 13:20:34 +00:00
Ammar ELWazir 8032adb64f Adding rocprofilerv2
Change-Id: Ic0cc280ba207d2b8f6ccae1cd4ac3184152fc1ad
2023-03-09 13:20:33 +00:00
Konstantin Zhuravlyov 7e403f08a6 ISA/NFC: Change tabs to spaces
Change-Id: Iabc541ec78607881a2828cd79916a928b39dcfcb
2023-03-08 19:39:15 -05:00
Jonathan R. Madsen 40e0d2a92f Update entrypoint-rhel.sh (#255)
- fix endif instead of fi typo in bash script
2023-03-08 01:54:06 -06:00
Jonathan R. Madsen 83f9ed8696 Python 3.11 support + update RedHat CPack (#254)
* Fixes for Python 3.11

* Add python 3.11 to scripts

- also tweak to to{upper,lower} bash functions

* Fix PAPI RPM packaging in RedHat

- fix error from #!/usr/bin/python in papi_hl_output_writer.py
  - requires either python2 or python3 instead of python

* cpack updates

- only generate STGZ for RedHat
- support `--generators` arg in build-release.sh
- support 7z, zip, and other zip generators
- fix build-release.sh with `--mpi`
- support setting CONDA_ROOT

* Support rhel/fedora/centos in omnitrace-install.py

* RedHat status badge

* Fix support for Python 3.11 + tweak ubuntu ci

- Remove installing clang and mpich in Ubuntu CI container
- Fallback on conda-forge for Python 3.11
- Enable entrypoint-rhel.sh for RHEL CI
- Pull latest container by default

* Update ElfUtils and PAPI builds

- quieter build output
- disable-nls for ElfUtils
- use -s flag for make

* Development Guide Docs
2023-03-08 00:19:29 -06:00
Konstantin Zhuravlyov 8043fe9ee0 Loader/NFC: Factor out mach information into the struct
Change-Id: I9304c96336c434570bd5da92cd197ee764945907
2023-03-07 14:41:03 -05:00
Jonathan R. Madsen 1688a027d8 Add RedHat CI and release packaging (#251)
- additional miscellaneous tweaks to workflows and docker scripts, e.g. install perfetto python bindings
- improves the stability of MPI finalization
- reduces some debug messages within timemory when `OMNITRACE_DEBUG=ON`
- fixes issue found in RHEL where libunwind is using mutex and omnitrace was not treating this as an internal mutex call
  - this may have been affecting the causal profiling slightly (tests seem a bit more stable now)
- fix data race in timemory

* Add RedHat CI and release packaging

- additional miscellaneous tweaks to workflows and docker scripts, e.g. install perfetto python bindings

* Fix URL for ROCm packages in redhat workflow

* Fix dnf --enable-repo for ROCm perl packages

* Dockerfile.rhel and redhat.yml updates

- Fix dnf repo for ROCm PERL packages
- Disable python in CI (interpreter segfaults)
- Exclude parallel-overhead-locks tests due to inclusion of internal locks
  - This needs to be remedied in the future

* Exclude _dl_relocate_static_pie from instrumentation

* Testing updates

- OMNITRACE_SAMPLING_KEEP_INTERNAL=OFF for parallel-overhead-locks

* Fix redhat workflow

* redhat.yml update

- remove if condition on config/build/test step

* Update timemory submodule

- tweaks to verbosity messages

* Set thread state before unw_step

- on Redhat, unw_step calls mutex

* Update timemory submodule

- verbosity changes
- gotcha uses spin_lock/spin_mutex

* Remove using gsplit-dwarf unless OMNITRACE_BUILD_NUMBER > 2

* Re-enable parallel-overhead-locks tests in redhat workflow

* Always disable timemory manager metadata auto output

* testing updates

- tweak parallel-overhead-locks-timemory to higher instruction count min
- OMNITRACE_SAMPLING_KEEP_INTERNAL=OFF for parallel-overhead-locks-perfetto

* Update timemory submodule

- quiet realpath queries

* omnitrace exe updates

- detect text files
- improved bin/lib locating

* cmake format

* test-install.sh and redhat workflow updates

- handle testing when ls is script
- re-enable python testing on redhat workflow
- invoke test-install.sh in redhat workflow

* Misc guards for finalization

* omnitrace-exe, testing updates

- test-install.sh: LS_EXEC -> LS_NAME
- handle /usr/bin/ls being script in source/bin/tests
- improve locating the binary

* Fix mpi_gotcha compile error

* omnitrace-exe updates

- improve file locating

* formatting

* Misc fixes

- remove -static-libstdc++ for RHEL packaging (rocky-linux doesn't distribute static lib)

* omnitrace-exe paths

* Replace realpath with absolute

- using absolute path to symlink fixes issues with locating libdyninstAPI_RT at runtime

* omnitrace exe updates

- judicious use of realpath

* Update timemory submodule

- fix update main hash ids/aliases data race in merge

* bin tests update

- change working directory of omnitrace-exe-simulate-lib-basename

* omnitrace exe updates

- Update resolved exe/lib messaging

* bin tests update

- change working directory of omnitrace-exe-simulate-lib-basename
2023-03-07 06:04:19 -06:00
Ranjith Ramakrishnan 2acbecc1b9 SWDEV-351540 - ASAN packaging for rocm-core
Package only ASAN libraries
Component based install
Suffix "asan" added to package name

Change-Id: Ic758eefef27742df3a4a4301fd3661714de4bb36
2023-03-06 18:45:56 -08:00
Hao Zhou 68ca36e43c Merge amd-staging into amd-master 20230307
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Iec37aa680c552f98eca97279e0b7d99475a7795e
2023-03-07 10:00:44 +08:00
coleramos425 6ced24021b Hide symbols in regular --roof-only mode
Signed-off-by: coleramos425 <colramos@amd.com>
2023-03-06 16:42:55 -06:00
coleramos425 2b429bdd39 Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-03-06 14:40:20 -06:00
coleramos425 bdd28595f1 Match AI and BW colors in roofline
Signed-off-by: coleramos425 <colramos@amd.com>
2023-03-06 14:39:22 -06:00
Sean Keely 42243c1e8f Add support for exporting portable handles to GPU allocations.
Adds hsa_amd_portable_export_dmabuf and hsa_amd_portable_close_dmabuf
which allow obtaining dmabuf handles to rocr allocations.  These handles
may be shared with other APIs to support cross vendor & cross device
memory sharing.
Adds query to return whether dmabuf export is supported

Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com>
Signed-off-by: David Yat Sin <David.YatSin@amd.com>

Change-Id: I7f98501087d9563d07fc2cb428cc886b1e518b1e
2023-03-06 12:39:01 -05:00
Bill(Shuzhou) Liu 710649ab66 Filter out the GPUs not assigned to a container in showpid
The process ids of other container are still visible in the sysfs file,
filter it out to prevent crash.

Change-Id: I665912cd09c606804186aff8cba5c24f5e58ded7
2023-03-06 11:05:02 -06:00
Jonathan Kim 7364a93b98 Fix Engine Offsetting for Copy on Engine
Forgot SDMA blit engine indices are offset by DevToDev 0-position in
a couple of places.

Change-Id: Ie811d8281bc812738ed0107694f3dffde5e93685
2023-03-03 20:45:35 -05:00