Граф коммитов

406 Коммитов

Автор SHA1 Сообщение Дата
Chun Yang f5e00dec76 SWDEV-301543 SWDEV-276146 : Fix profile output buff allocation
L2 flush is triggered by explicit cache flush PM4 packet in aqlprofile
packets to GPU. This cache flush is used to sync up CPU and GPU to make
sure perfomance counters copied to profile output buffer is visible to
CPU. To get rid of this cache flush the followings are done:
  1. This explicit cache flush packet is removed from aqlprofile code
     (another commit to aqlprofile code).
  2. This commit which changed profile output buffer to use kernarg
     memory since it is uncached for GPU.
After these changes profile counter values when copied by GPU to output
buffer they are guaranteed to be visible to CPU.

Change-Id: Ie953949c85fbee2f4369f1de966bcfb33daec084


[ROCm/rocprofiler commit: 2b79931631]
2021-09-02 17:30:57 -07:00
Laurent Morichetti 8cd375677f Move spmltgen.py to amd-npi
Change-Id: I63e67193453e2c5479a03a8c9c97f94eced04268


[ROCm/rocprofiler commit: 6fe4a5db51]
2021-08-20 10:45:39 -07:00
rachida b80e119d54 SWDEV-294331 Fix for memcopy Incorrect number of bindings error
Change-Id: I6dabca411bab567b27db8ef801006b393b22788e


[ROCm/rocprofiler commit: f1c0faa601]
2021-08-13 15:53:22 -07:00
Tony Tye f4691ed9e3 Merge "SWDEV-296154 rocprofiler test suite is failing" into amd-staging
[ROCm/rocprofiler commit: 99a5d6e75d]
2021-08-12 02:29:52 -04:00
Ammar Elwazir a940ad1c48 Merge "SWDEV-294319 & SWDEV-294321 Added support for missing functions" into amd-staging
[ROCm/rocprofiler commit: a3700a9243]
2021-08-11 21:52:31 -04:00
Ammar ELWazir 1f2ded91f6 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


[ROCm/rocprofiler commit: 14b62557d0]
2021-08-11 12:25:06 -04:00
rachida 42f5734c42 SWDEV-296154 rocprofiler test suite is failing
Change-Id: Id2b0ade0a475e38ea54671802e16b25d5beabed8


[ROCm/rocprofiler commit: 312048b38d]
2021-08-11 10:41:26 -04:00
Ammar ELWazir 872613f93f SWDEV-294319 & SWDEV-294321 Added support for missing functions
Added Support for launch kernel functions to fill_api_db
Added support for hipMemcpyToSymbol in add_memcpy
Added support for hsa_amd_memory_pool_allocate to be counted as source of allocations

Change-Id: I68806106324b19ca6f09d413df37c27582be2f51


[ROCm/rocprofiler commit: 804e063eda]
2021-08-02 16:55:33 -04:00
Chun Yang 7abf743d4b Change obj_map_ from pointer to object
Change-Id: Ibc2fb8812c34b44d7b59275f2850bb127b9def7c


[ROCm/rocprofiler commit: 55fdd451f3]
2021-07-28 11:52:44 -07:00
Christophe Paquot 02e1c73a51 SWDEV-295205 - Remove KFD domain from roc profiler
Removed KFD domain and references.

Change-Id: Icd7e1789c77490e57b527be065043eadb6b75c1c


[ROCm/rocprofiler commit: 79d477daed]
2021-07-14 16:50:20 -07:00
Christophe Paquot bce05f5b82 SWDEV-282961: dependency arrows missing
When building the json data flow, from_us_list has (timestamp, stream_id, thread_id).
stream_id used to be interpreted as from_tid and tid as to_tid. But that's not correct.
stream_id is always a destination and tid is the initiator (source).

Change-Id: I2f5bb86a387b4003b17271c90bdf9de4b59a79bf


[ROCm/rocprofiler commit: 244dadcb85]
2021-06-30 09:49:45 -04:00
rachida 61efc819c3 SWDEV-291267 Script to merge mpi rocprof traces
Change-Id: I3d86276666efb067ccb62730e74a67e0cc7c4d42


[ROCm/rocprofiler commit: b54bfac5bf]
2021-06-25 15:12:35 -04:00
AMD 9e422660cd Add support for gfx90a
Merge gfx90a support from the 'amd-npi' branch.

Change-Id: I9b51711ed4a1d2f1ed42ba9b83cb12136be228b8


[ROCm/rocprofiler commit: 4df3e0bd9a]
2021-06-16 16:35:42 -07:00
Rachida Kebichi bd65e66dc8 Merge "SWDEV-282961 Skip barrier events. Process hipMemSet events" into amd-staging
[ROCm/rocprofiler commit: afad08b4c5]
2021-06-16 10:27:39 -04:00
rachida e1f148e260 SWDEV-282961 Skip barrier events. Process hipMemSet events
Marker events inside hcc_ops_trace.txt are from barriers so they are not meant to be stored in ops_patch_data map.
Added support for hipMemset events which are a kind of memory copy.

Change-Id: I213fe959bcd35ff0371613ba5bffd95bc53e06b5


[ROCm/rocprofiler commit: caa5f32300]
2021-06-10 16:33:39 -04:00
rachida f2649f4049 SWDEV-284863 Removed accidental override of recordid
recordid  cannot be just a counter. The code removed was doing
just that i.e. incrementing a counter. Recordid has to come
from recvals data structure. That code was left there since
a while when Evgeny and Rachida were trying to prototype this feature.
I am not sure why it was not spotted before.

Change-Id: Ia867066dcfca083fcd4111f2aefc2fec88c26314


[ROCm/rocprofiler commit: 4ba91a972c]
2021-06-08 14:21:27 -04:00
Rachida Kebichi 950924438f SWDEV-284863 Fixed several issues preventing memcpy info dump in csv
1st issue was that one of the ostream ops failed to print the
content of the struct.
2nd issue: get_ptr_type was called with args being src/dest
pointers while it should be the agents pointers for src/dest.
3rd issue: memcopies map used (recordid, procid, is_async)
as a key but this is not enough as some copies share same key,
so I added begin/end timestamps as a way to distinguish between them.

Change-Id: I7c6e80e74e30ea572f21612aaf0cf7efec6e91e6


[ROCm/rocprofiler commit: 761bd6a86b]
2021-06-04 12:18:35 -04:00
Ashutosh Misra a407995955 rocprofiler:using right rocm lib(s) path
Correcting thunklib preload with tested absolute path

SWDEV-285578

Change-Id: I8aa8205a6886d2101cf66016d307ff8a7c86257b


[ROCm/rocprofiler commit: f3c80f645a]
2021-05-25 02:04:51 -04:00
Laurent Morichetti cac74820c2 Use ${BASH_SOURCE[0]} to deduce the install dir
Change-Id: I96b81c4d01a88a1edee05a54a4982e4a93225847


[ROCm/rocprofiler commit: badd1270f6]
2021-05-20 16:36:57 -07:00
Chun Yang 5067c2b18b SWDEV-283942 : Fixed false error report from rocprofiler
Change-Id: Ifc6eb0cb26f60a5596e1b626a578135ae9080f26


[ROCm/rocprofiler commit: 6da2b19562]
2021-05-17 14:16:50 -07:00
Freddy Paul 4167b16f8b rocprofiler:update with case-sensitivity email
All packages should have a valid email for contact.

SWDEV-257322

Change-Id: I49107ff44b9aaf13ec6a20319a420146f6443907


[ROCm/rocprofiler commit: c684d61de8]
2021-05-03 11:48:57 -07:00
Freddy Paul 4a37395f34 rocprofiler:Add maintainer email in package
All packages should have a valid email for contact.

SWDEV-257328

Change-Id: I03ceefc46cf8da4486e19b1001abd4cd8cbcb3c5


[ROCm/rocprofiler commit: 71ce3fa617]
2021-04-30 11:37:33 -07:00
Kent Russell 70680ba1dc Cmake: Support static hsakmt
Add numa lib as this will be required with a static thunk
Look for static thunk of shared thunk cannot be found

Signed-off-by: Kent Russell <kent.russell@amd.com>
Change-Id: Idcaa0c785a0502c9f5fe42e2dfb9e0c1780f9d66


[ROCm/rocprofiler commit: 97c9efce38]
2021-04-27 12:18:02 -04:00
Rachida Kebichi a01a4a26a7 Fixed issue with map key in dep_proc map
Change-Id: I5c2deeda2c2dedd9c800af60c0b4748279f8418e


[ROCm/rocprofiler commit: 7a5e408891]
2021-04-23 13:14:40 -04:00
Rachida Kebichi 365fb2eb6a Fixed order of code obj and symbols processing
Change-Id: Icb3341e54f3e0c7cf3da06811712f001e213d83d


[ROCm/rocprofiler commit: a2d89f22a7]
2021-04-22 20:27:26 -04:00
Laurent Morichetti 6624fe4628 Fix a compilation error with gcc-9.3.0
On Ubuntu 20.04, in Release mode, gcc fails with this error:

In file included from /usr/include/string.h:495,
                 from /opt/rocm/include/hsa/hsa_api_trace.h:57,
                 from ../rocprofiler/src/util/hsa_rsrc_factory.h:29,
                 from ../rocprofiler/src/util/hsa_rsrc_factory.cpp:25:
In function ‘char* strncpy(char*, const char*, size_t)’,
    inlined from ‘const util::AgentInfo* util::HsaRsrcFactory::AddAgentInfo(hsa_agent_t)’ at ../rocprofiler/src/util/hsa_rsrc_factory.cpp:323:12:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: error: ‘char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../rocprofiler/src/util/hsa_rsrc_factory.cpp: In member function ‘const util::AgentInfo* util::HsaRsrcFactory::AddAgentInfo(hsa_agent_t)’:
../rocprofiler/src/util/hsa_rsrc_factory.cpp:322:39: note: length computed here
  322 |     const int gfxip_label_len = strlen(agent_info->name) - 2;
      |                                 ~~~~~~^~~~~~~~~~~~~~~~~~

The error is caused by the following 2 lines:

    const int gfxip_label_len = strlen(agent_info->name) - 2;
    strncpy(agent_info->gfxip, agent_info->name, gfxip_label_len);

The size argument to strncpy should not depend on the input string.

Since the terminating character is not considered (the copy is at
most len - 2 bytes), using memcpy is preferable. Also, make sure
the destination does not overflow by clamping the size.

Change-Id: I0c5cf7e0daf4cd6fcf7092efb1d9fd4c02a6c639


[ROCm/rocprofiler commit: 304d3366af]
2021-04-22 11:12:53 -07:00
Rachida Kebichi b61f699020 Merge "SWDEV-263827 Visualize back-dep for wait" into amd-staging
[ROCm/rocprofiler commit: 7d99e03caf]
2021-04-12 09:32:28 -04:00
Evgeny 867ae7b2dd concurrent: enable PmcStopper to end perf counting.
Change-Id: I89785277678141e29349e162df10203787050643


[ROCm/rocprofiler commit: c4828a9de0]
2021-04-09 08:06:42 +00:00
Evgeny c701f9705c cleanup after separating for staging and npi branches
Change-Id: Iadd624df21b85f1590e901a8125680743e3281a3


[ROCm/rocprofiler commit: 780dfa37d4]
2021-04-08 20:37:47 +00:00
Evgeny 8c3ce30c94 SWDEV-265287 : integration spmltgen.py script
Change-Id: Ief3e93225fb6660e72a04e4bd4b379262b73c914


[ROCm/rocprofiler commit: 82d7bb2145]
2021-04-08 10:04:39 -04:00
Rachida Kebichi 894412dcff SWDEV-272485 append to CMAKE_CXX_FLAGS instead of override
Change-Id: I0c4364fa800a249d77ec7abd4e73556a8df1ef99


[ROCm/rocprofiler commit: 429a458cae]
2021-04-06 17:16:28 -04:00
Rachida Kebichi 0b1ad281f7 SWDEV-263827 Visualize back-dep for wait
Change-Id: Ic8a00c6ec583c5b90fcd0a1d19c5a51ce6303449


[ROCm/rocprofiler commit: a80f8e6e03]
2021-04-05 09:44:25 -04:00
Cole Nelson 3c5cb3ae00 Merge "CMakeLists.txt: add ENABLE_LDCONFIG to support multi-version install" into amd-staging
[ROCm/rocprofiler commit: 71f75b5983]
2021-03-30 15:39:27 -04:00
Cole Nelson cd0100f98e 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>


[ROCm/rocprofiler commit: 35c1b8bff2]
2021-03-27 15:33:09 -07:00
Evgeny Shcherbakov 280fac6b86 Merge "fixing gfx10 gfxip name" into amd-staging
[ROCm/rocprofiler commit: f27b925671]
2021-03-26 15:55:04 -04:00
Evgeny Shcherbakov 7dd5126ef1 Merge "obj-tracking default on" into amd-staging
[ROCm/rocprofiler commit: 4a31d93ec3]
2021-03-26 15:54:45 -04:00
Evgeny 0fe48f9982 obj-tracking default on
Change-Id: If919c1ee792e59bdb938608382e5b7350ca7098e


[ROCm/rocprofiler commit: 80973271f4]
2021-03-24 01:44:19 -05:00
Evgeny eddcdabf2a fixing gfx10 gfxip name
Change-Id: Ie58768d64117a616b1896489b505790cfa993054


[ROCm/rocprofiler commit: 64bdcaddc7]
2021-03-24 00:48:21 -05:00
Rachida Kebichi 6232a6f941 SWDEV-255637 add missing API calls.
Change-Id: Ic68258b6f3725a6dfdeab2a33b2e744f9b1b46b3


[ROCm/rocprofiler commit: 438300358b]
2021-03-23 17:24:29 -04:00
Evgeny 0282e30855 SWDEV-274821 SPM initialization fix
Change-Id: I5e27928a60083eff328bab3e79937ce11bce11bd


[ROCm/rocprofiler commit: e2c9d13e5b]
2021-03-22 09:18:36 +00:00
Evgeny cb57b17051 SWDEV-267190 real pid/tid arg values
Change-Id: Ia3d98364b5bc7e9eace3d742055af4e074d64c66


[ROCm/rocprofiler commit: 567f457f25]
2021-03-18 15:13:21 +00:00
Evgeny 02d06d0c19 SWDEV-274603 : fix SPM mode enabling
Change-Id: I67d9ecd8c808989315b2991ec492af2a4dd4ccbf


[ROCm/rocprofiler commit: c46913cdd6]
2021-03-10 01:27:28 -06:00
Evgeny 49c37df562 SWDEV-274603 : To enable SPM KFD mode
Change-Id: I53f86d51ae9855d9c96aa9d3a8c8e433070136a3


[ROCm/rocprofiler commit: 810b2b5982]
2021-02-25 21:38:39 -05:00
Evgeny Shcherbakov 7ca958cc32 Merge "adding GPU command functions module" into amd-staging
[ROCm/rocprofiler commit: 7290e42827]
2021-02-04 11:03:06 -05:00
Evgeny f9d0d82069 adding GPU command functions module
Change-Id: Id2c2d82ea6fee42695309ad3bb296effa77a2f33


[ROCm/rocprofiler commit: fb82ddee81]
2021-02-03 04:45:59 -05:00
Evgeny bacf127670 SWDEV-267558 : json rebasing supression by env ROCP_JSON_REBASE=0
Change-Id: I968d3922b1714dba09621a90c26cec959be55b91


[ROCm/rocprofiler commit: 3f504e9bd7]
2021-01-27 20:57:43 -06:00
Evgeny e65aba50ad SWDEV-241265 : fixing scripts
Change-Id: Id7fcc309d0003bc72e972976e1944afd6488001d


[ROCm/rocprofiler commit: 249b0c2b26]
2020-12-09 23:10:40 -05:00
Evgeny 2adb15caff SWDEV-255662 : spm kfd mode support
Change-Id: I840c7e92d3d5a59d8e5402c4d8ef86bc123dd07c


[ROCm/rocprofiler commit: 7e60bf163e]
2020-12-02 13:02:45 -06:00
Evgeny b781ea8577 fixing sqtt trace for zero size case
Change-Id: I75712485f518725af46a3b419339a212d1e762a0


[ROCm/rocprofiler commit: f2c9980647]
2020-12-01 18:19:51 -05:00
Rachida Kebichi aebe669461 Merge "SWDEV-255543 Hsa memcopy info csv gen" into amd-staging
[ROCm/rocprofiler commit: 03fecd0645]
2020-11-23 09:59:04 -05:00