Commit Graph

10 Commits

Author SHA1 Message Date
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
Evgeny 567f457f25 SWDEV-267190 real pid/tid arg values
Change-Id: Ia3d98364b5bc7e9eace3d742055af4e074d64c66
2021-03-18 15:13:21 +00:00
Evgeny a87d41c6e4 JSON flow timestamp fix
Change-Id: I2dacc29250f2d9c5d56bf8ab3ca7f621cb7b663a
2020-09-21 03:53:03 -04:00
Evgeny 9bdd497a51 minor changes;
Change-Id: I4266d6af1adef66637b3c971fa21c800240a79ef
2020-01-14 10:25:13 -06:00
Evgeny d8560ae0b3 enable rocprofiler kernels trace; fixing signal value for proxy signal; fixing scope options in input txt format;
Change-Id: Ife63c4091e565a2158e292c7acf9718085c709be
2019-11-01 20:44:02 -05:00
Evgeny 8ebf2fc5fa roctx rocprof integration
Change-Id: Ia5e3a60c8d89ef0b04a83f09be361454a95e9689
2019-10-09 23:39:59 -05:00
Evgeny 068e2b1c27 hip trace fix
Change-Id: I2477932a4e537082179859640904450ba8be82f4
2019-06-21 18:16:26 -05: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 3761f50f84 fixed json dependencies
Change-Id: Ia48cf55b872853da28ada17964c3314b6c718750
2019-01-28 23:27:50 -06:00
Evgeny 0257e2d0dc --stats postprocessing
Change-Id: If9ee0d119c445f44b42b5c97af7b276bca1dc300
2019-01-28 20:50:11 -06:00