Grafik Komit

86 Melakukan

Penulis SHA1 Pesan Tanggal
Ammar ELWazir 40a36a201e SWDEV-288134: Workaround to enable roctracer early
Change-Id: I65d776af07a270f25acd4f918f33008d4588aa08
2023-06-21 18:54:19 -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
Sriraksha Nagaraj f29b968185 SWDEV-379542: Adding to LD_PRELOAD instead of overriding it
Change-Id: Ib6395454ab6d09124baf2f958f26384f8689f64e
2023-03-09 13:21:09 +00:00
Sriraksha Nagaraj c565e2f329 SWDEV-287352 - Changing the description for timestamp option
Change-Id: Ie1d942f7560838efbc38394b21facf04df9bbda5
2022-07-07 15:08:53 -04:00
Sriraksha Nagaraj c9efa4891e SWDEV-287352: Fixing typos in the rocprof --help description
Change-Id: I39739e53e477c9e621da1b686e248b5d7aff5ad2
2022-06-29 16:26:25 +00:00
Ammar ELWazir 6f97e15d55 Enabling ROCP_STATS_OPT
Enabling the new methodology of ROCP_STATS_OPT of getting HIP activities while the application is running

Change-Id: I19d09e2f2abe16e6528240bf55d6048645aaa09f
2022-06-21 19:30:38 -05:00
Ammar ELWazir 0be6306cae SWDEV-338186: Fixing Roctracer tool name, path
Using libroctracer_tool.so instead of libtracer_tool.so and fixing the paths for the tracer tool

Change-Id: I9b3ca885f3ca5385b106d5376894b1b4054f9c1d
2022-05-20 05:26:33 -04:00
Laurent Morichetti 0123aa61fa Register the tracer API as a tool library
In a future change, the tracer API library (libroctracer64.so) will be
automatically registered as a tool library. Until then, explicitly
register it by adding it to the HSA_TOOLS_LIB environment variable.

Change-Id: I44d78ac38608e6da5edf04b498a73485f5609d06
2022-05-04 19:19:34 -07:00
Laurent Morichetti 1078a088e9 SWDEV-318682: Using roctx to rename long kernel names to shorter ones.
To enable this feature use the --roctx-rename rocprof option. This
implementation records all messages received in roctxPush calls and
use them to replace corresponding kernel names.

Tested with the following HIP program:

\#include <hip/hip_runtime.h>
\#include <roctracer/roctx.h>

__global__ void
ThisIsALongKernelName ()
{
}

int
main (int argc, char* argv[])
{
  hipSetDevice (0);

  // Not in a roctx range.
  ThisIsALongKernelName<<<1, 1>>> ();

  roctxRangePush ("A");
  // In a simple first level roctx range.
  ThisIsALongKernelName<<<1, 1>>> ();
  roctxRangePop ();

  roctxRangePush ("B");
  roctxRangePush ("C");
  // In a nested roctx range.
  ThisIsALongKernelName<<<1, 1>>> ();
  roctxRangePop ();
  roctxRangePop ();

  roctxRangePush ("D");
  roctxRangePush ("E");
  roctxRangePop ();
  // In a first level roctx range, but after a nested range.
  ThisIsALongKernelName<<<1, 1>>> ();
  roctxRangePop ();

  hipDeviceSynchronize ();
  return 0;
}

Change-Id: I629312234468daff8b017caa5cb0773707d98cce
2022-04-07 18:03:03 -07:00
Ammar ELWazir 46c4e5045a SWDEV-329270: fixed the multiline input.txt issue
In a previous change the key for the var_table in tblextr.py script has been changed from one value to a tuple without changing the usage of the var_table in the rest of the script

Change-Id: I38964f61afad5323d1ca9b64d538cec426298842
2022-03-25 05:09:52 +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
kiumars 7a8f5b5e90 SWDEV-303820: [LLNLA-63]rocprof does not check input arguments at start
Change-Id: I820a2b6df10b799f776518a98519e9c8ca40ec53
2021-11-11 17:31:56 -05:00
rachida 6f31192501 SWDEV-295878 Fix for seg fault when using --trace-start off
Change-Id: I94d95dd4fb49aace5f1ee006c47b94573f997b85
2021-08-31 16:49:48 -04:00
Laurent Morichetti 6fe4a5db51 Move spmltgen.py to amd-npi
Change-Id: I63e67193453e2c5479a03a8c9c97f94eced04268
2021-08-20 10:45:39 -07:00
Ammar ELWazir 14b62557d0 SWDEV-296331: Fixed libhsakmt.so.1
Removed the old code for trying to locate libhsakmt.so.1 as it is replaced by libhsakmt.a static library

Change-Id: Icc5a0f6ead285e2406e6e83614e536184e3a2663
2021-08-11 12:25:06 -04:00
Christophe Paquot 79d477daed SWDEV-295205 - Remove KFD domain from roc profiler
Removed KFD domain and references.

Change-Id: Icd7e1789c77490e57b527be065043eadb6b75c1c
2021-07-14 16:50:20 -07:00
Ashutosh Misra f3c80f645a rocprofiler:using right rocm lib(s) path
Correcting thunklib preload with tested absolute path

SWDEV-285578

Change-Id: I8aa8205a6886d2101cf66016d307ff8a7c86257b
2021-05-25 02:04:51 -04:00
Laurent Morichetti badd1270f6 Use ${BASH_SOURCE[0]} to deduce the install dir
Change-Id: I96b81c4d01a88a1edee05a54a4982e4a93225847
2021-05-20 16:36:57 -07:00
Evgeny 82d7bb2145 SWDEV-265287 : integration spmltgen.py script
Change-Id: Ief3e93225fb6660e72a04e4bd4b379262b73c914
2021-04-08 10:04:39 -04:00
Evgeny 80973271f4 obj-tracking default on
Change-Id: If919c1ee792e59bdb938608382e5b7350ca7098e
2021-03-24 01:44:19 -05:00
Evgeny e2c9d13e5b SWDEV-274821 SPM initialization fix
Change-Id: I5e27928a60083eff328bab3e79937ce11bce11bd
2021-03-22 09:18:36 +00:00
Evgeny c46913cdd6 SWDEV-274603 : fix SPM mode enabling
Change-Id: I67d9ecd8c808989315b2991ec492af2a4dd4ccbf
2021-03-10 01:27:28 -06:00
Evgeny 810b2b5982 SWDEV-274603 : To enable SPM KFD mode
Change-Id: I53f86d51ae9855d9c96aa9d3a8c8e433070136a3
2021-02-25 21:38:39 -05:00
Evgeny 249b0c2b26 SWDEV-241265 : fixing scripts
Change-Id: Id7fcc309d0003bc72e972976e1944afd6488001d
2020-12-09 23:10:40 -05:00
Evgeny 7e60bf163e SWDEV-255662 : spm kfd mode support
Change-Id: I840c7e92d3d5a59d8e5402c4d8ef86bc123dd07c
2020-12-02 13:02:45 -06:00
Xianwei Zhang b445610cd1 concurrent: enable/fix the related settings
Concurrent profiling relies on the aqlprofile read_api
and tracker. This patch set those options to enable
the concurrent profiling.

Change-Id: Ib97d4d8facfbc11f2684d83109397cd13f117d5e
2020-08-26 16:04:57 -04:00
Xianwei Zhang 4fad73511c pmc: add parraller kernels 'rocprof' option
The profiling was only enabled in serial mode, i.e., kernels
are serialized in execution, and counters are reset at each
kernel start and read at kernel completion. This patch adds
the concurrent mode, by issuing the process-level start
packet to reset counters, and then reading twice at kernel
start and end time to obtain the counter value difference.
The new concurrent profiling usage needs the integration
with the corresponding augment at aqlprofile side.

Change-Id: I94b4442eadc8c64b8fba51b1e4916fc8b895ad21

enable cnocurrent kernels 'rocprof' option

Change-Id: I5088d54879a4bf91e180eba520aa9427304c1713
2020-07-20 12:57:42 -05:00
Evgeny a7179a1c5c fixing rocminfo path requirements error - no usage printing
Change-Id: Ib48d6c81e1771976e67562fc34e158e30a532d34
2020-06-23 13:09:58 -04:00
Evgeny 68c9f32d6e fix output merging
Change-Id: I7c51e85f8a8e6e5bae67abf74716a658cc533a6a
2020-06-15 01:13:19 -05:00
Evgeny e9a9b5d3ef rocminfo check fix
Change-Id: I8d50335060a16954df37be8f4d74928d565b1078
2020-06-03 01:00:48 -05:00
Evgeny 59a4ae9abb list-derived/basic fixed
Change-Id: I2038eac424b1485c304ffecf35ba2a0965de5f3b
2020-06-01 22:04:37 -04:00
Evgeny 30db99e758 setting code-obj tracking by default
Change-Id: Id6a97a7dc77faa3b7eb0e2b81b75c13ca7fc5818
2020-05-28 03:43:12 -05:00
Evgeny 4debecbc3c removing /opt/rocm hardcoding
Change-Id: Ifb041a76a0c6fa943f72a9228197f371ad384bb7
2020-05-26 21:56:07 -05:00
Evgeny 3af87a7423 adding pid for kernel results to support multi-process profiling
Change-Id: I283228a4b4145599c5e637dd6faa771b9f4b6345
2020-05-05 05:35:32 -05:00
Evgeny 0c7b397e63 using python3
Change-Id: Ic8ea29dd1aeb6fe5731f739a7f2f58414401ce7a
2020-04-24 14:51:09 -05:00
Evgeny 26d888fda4 minor change
Change-Id: I9ea899af4f8887677c52131bea502ab029f89cde
2020-04-24 13:56:08 -05:00
Evgeny 990200988c fixing rocprof app exit code
Change-Id: Iff0d5fa66bc9a69e1a0bde9c85aa8c5e55b21834
2020-04-24 01:32:40 -05:00
Evgeny b1e22e9c5e kfd wrapper ld preload fix
Change-Id: Icad86f08662208282790988611dbde0ec730162a
2020-04-22 23:03:48 -05:00
Evgeny a5f52b40f5 JSON kernel name propogation and stats
Change-Id: I60cf4c7608272941e2499bd251850416ac254f32
2020-02-26 19:45:49 -06:00
Evgeny b10c1e5aa3 adding kfdwrapper library path
Change-Id: I2390d3ab1192e11cf9f53fc35859c1d05afaacd2
2020-02-06 13:45:18 -06:00
Evgeny 2bcf8f653d rocprof flush-rate option
Change-Id: I130f83f6a671451ee0cb34b4e7b53e738847c81f
2020-01-27 20:27:24 -06:00
Evgeny 4bfdb0a3a1 ROCP_PYTHON_VERSION env var
Change-Id: Id86ff687f107d01039ded5e26811fc7d19fa0c00
2020-01-24 14:22:52 -06:00
Evgeny e7d0cf18c5 enable json generation for roctx trace alone
Change-Id: Ie95829087882f74f7a5c10fd682e7a7c24609d54
2020-01-14 10:25:13 -06:00
Evgeny 9bdd497a51 minor changes;
Change-Id: I4266d6af1adef66637b3c971fa21c800240a79ef
2020-01-14 10:25:13 -06:00
Evgeny 71eca27ffa removing LD_PRELOAD for hip trace as the HIP library is now loading statically
Change-Id: I032c73feb9e8426f5b2cd5bd930e7160c3b07294
2019-12-13 01:55:34 -06:00
Evgeny 31790cc69d LD_PRELOAD interference fixed
Change-Id: Ib44aa28a71326900f5a71bbb37dbd8049cc3e3a2
2019-12-12 11:41:00 -06:00
Evgeny b0d56ba0eb tracing on start option
Change-Id: Ie7a85da4fd865fbabd6b38ac1d12977ff2684114
2019-12-11 14:41:51 -06:00
Evgeny 28e59eb0da hcc library loading workaround
Change-Id: I8b383f901235cfdfaba612a4effa4b9fcf12104d
2019-12-10 06:40:09 -06:00
Evgeny b74ae2f62d kfd trace rocprof integration
Change-Id: Ie1f1679f50a973d071b81f3cf9fca570da9f12c3
2019-12-03 09:47:58 -06:00
Evgeny 60043d198b code object tracking and v3 code object support
Change-Id: I081ada13f6364ea4401a97a485dedfa9bf8a45fe
2019-11-19 20:18:09 -06:00