Ammar Elwazir
57add1a6fa
Revert "SWDEV-295522: Fixing Performance Issue"
...
This reverts commit e7327aaac7 .
Reason for revert: Merged by mistake
Change-Id: I8c39c823d92cc20a238ca6120dde4b2fa9121e85
2022-04-07 06:55:34 -04:00
Ammar ELWazir
e7327aaac7
SWDEV-295522: Fixing Performance Issue
...
Removing DEBUG_TRACES and the unnecessary use of roctracer_op_string, made the MS app reporting 78 to 81 stable samples per second, depending on the type of the trace, while the main app without rocprof reports 100 to 106. More detailed numbers will be posted in the ticket.
Change-Id: Ida25d3bfc72047afaa27326d697be76d97564334
2022-04-07 00:07:24 +00:00
Ammar ELWazir
43a36f8dd5
SWDEV-328300: supporting centos-9 for roctracer
...
Changing pthread_yield() to sched_yield() as pthread_yield() is deprecated in CentOS 9
Change-Id: I2961b61374e36995d0835f0e65b26c35f5eb8715
2022-03-18 01:26:39 +00:00
Ammar ELWazir
513460bd41
SWDEV-294248 (Fixing Race Conditions):
...
Fixing race conditions that happened when enabling trace-period feature on the following code:
#include <hip/hip_runtime.h>
__global__ void
kernel ()
{
}
int
main (int argc, char **argv)
{
for (size_t i = 0; i < 10000; ++i) {
hipLaunchKernelGGL (kernel, 1, 1, 0, 0);
hipDeviceSynchronize ();
}
return 0;
}
Change-Id: I4eb88a4a71efbad0f6483e7fb6e8e0c6a662860b
2021-08-11 22:48:55 -04:00
Ammar Elwazir
53fa06ad66
Merge "Fixing correlation_id_map" into amd-staging
2021-08-11 21:44:59 -04:00
Ammar Elwazir
682ebba1c2
Merge "Cosmetic change" into amd-staging
2021-08-11 20:47:53 -04:00
Ammar ELWazir
b02586c587
Cosmetic change
...
Fixing variable names and removing un-needed references
Change-Id: I3ed2cee89e7dc599caf1726fe1eab1a913e5a93d
2021-08-09 14:13:57 -04:00
Ammar ELWazir
1e3ed06a9a
Fixing correlation_id_map
...
Changing correlation_id_map to static instance instead of being a pointer and fixing the corresponding references
Change-Id: Id8a481a90b46831f91985a7e0523fd2869991aeb
2021-08-09 14:05:52 -04:00
Christophe Paquot
e5e1258ef8
SWDEV-295205 - Remove KFD domain from roctracer
...
Change-Id: I2771cf43aa115bb466531bf887f7cc75e187f2ef
2021-07-22 10:12:45 -07:00
Christophe Paquot
b04dfd5fdf
SWDEV-281658 - Preserve the callback IDs enum ordering
...
Use HIP_API_ID_NONE to detect unsupported API instead of
HIP_API_ID_NUMBER which can grow with a new version of the API.
This HIP_API_ID_NONE enum has a fixed value of 0 so the
HIP_API_IDs really start at FIRST.
Change-Id: I760aa50ddf6fa6d46bf20555ad7d429335a53f97
2021-06-30 09:52:20 -04:00
Laurent Morichetti
297b613604
Fix random bugs discovered while reading the code
...
In HsaTimer::correlated_pair_ns, the time ID should be used to
select the clock ID passed to clock_gettime.
In MemoryPool::allocator_default, pass the correct value to realloc.
Change-Id: I5d10c0994c07fdeadd99c81deba4e71a4f579523
2021-05-20 21:22:16 -04:00
Laurent Morichetti
8fb3cdb30b
Make HIP_VDI the default
...
As this snippet shows, HCC is no longer supported by roctracer:
#if HIP_VDI
...
#else
#error HCC support dropped
#endif
Removed HIP_VDI from the CMakeLists.txt, and the source code.
Change-Id: Ib273da2a5af6d67fa1b021a7eca3ff785c8b9c73
2021-05-20 21:20:27 -04:00
Evgeny
912cfd4cf8
SWDEV-251491 : fixing tracing on exit
...
Change-Id: I1bf2a6093331e7a08179b9f64394c5c49206ef0e
2020-12-25 01:49:44 -05:00
Rachida Kebichi
2d31848c44
SWDEV-259683 HIP API records filtering
...
Change-Id: I43ca5e022d2c055b6a9bc2c09b4276b490a4b986
2020-12-16 16:29:36 -05:00
Evgeny
b83ffeeab8
SWDEV-258731 : cleanup
...
Change-Id: Iabcc81576eb8b6c0484eae820c3e25a896da6c5b
2020-12-02 13:52:57 -06:00
Evgeny
cb3643da05
SWDEV-254329 : extending debug trace with timestamps, cmake option '-DCMAKE_DEBUG_TRACE=1'
...
Change-Id: Id16c01a6c00f6384c37fa9b5a9709a5e98e1fb57
2020-10-14 00:07:12 -04:00
Evgeny
29c63c5281
SWDEV-213367 : codeobj event implementation
...
Change-Id: Ibcaca6869ce96d8802c5fa8ba241f43834d6f2a7
update - codeobj event implementation
Change-Id: I4c12f26a19f2b31d9ac2211c3426a0e587a332b3
update2 - codeobj event implementation
Change-Id: Ic877549a83542ae00352503471d881e847ebac9c
test - codeobj event implementation
Change-Id: I0618d3a93de94c3d7467372ba4a3d4ea5520bfc7
URI reference test - codeobj event implementation
Change-Id: I6cf7e8a648cf012cb0708058b118a75e58f992b9
adding test/app - codeobj event implementation
Change-Id: Idf4c197c7b9116ccde5ec50ff47a26a858bfab32
uri test fix - codeobj event implementation
Change-Id: I7c385f82f516d9d8f2cd726366f00be3664006e3
uri test cleanup - codeobj event implementation
Change-Id: I542d5baf88c048c8b4717af843b803cd93e8f3bc
URI buffer fix - codeobj event implementation
Change-Id: Iac65e04c03a0939935c10f53c6b580a2e33878f5
HSA events tests trace-check disabled
Change-Id: I0f4d13aeeceb1d1a6e2191673eacbf9c7ae2ae52
2020-10-09 08:36:12 -04:00
Evgeny Shcherbakov
02fcb90a4b
Merge "hip library loader check" into amd-staging
2020-10-07 19:01:55 -04:00
Evgeny
9061c4ea41
hip library loader check
...
Change-Id: I34957db88932e1ed725a0a0d8ca9a66fecc92e38
2020-10-07 17:53:51 -04:00
Evgeny
ef61a39603
SWDEV-249924 : hip correlation id explicite propogation; tracer debug instrumentation;
...
Change-Id: Ibbc411541f5610ce739f3fc1efa1ab7f605220f5
initial commmit
Change-Id: I34b360be62c2083819dc5c3acc8268bd69f2f58a
2020-10-06 13:25:51 -04:00
Evgeny
156d9327cc
flush-rate option fixed
...
Change-Id: I74ff83ebf2a0a4ba414d30b7cb193522f44660ce
2020-08-20 15:11:38 -05:00
Evgeny
ddcb68d0a8
optimized tool stats
...
Change-Id: Ia9c06879f6e2e195e589c53299c2cafe96a4bfe5
2020-08-20 15:11:21 -05:00
Evgeny
f027cf1e22
trace buffer initializatino fix
...
Change-Id: Ibb4b3e939d74b776dbdd7ae0c2af02535974abd8
2020-08-06 03:08:33 -05:00
Evgeny
a9048f33a8
roctracer static linking
...
Change-Id: I4df98c6d9991a3a58e2f646fc0c8fe8f104a105d
2020-08-05 02:26:40 -05:00
Evgeny
9bb4b0d311
fixed recursive mutex
...
Change-Id: Id63d022b8fd9e900f40b1f991ecb413419d527ad
2020-07-16 05:53:20 -05:00
Rachida Kebichi
64ee8f29ef
support for hip multi kernels
...
Change-Id: Idc8945f924ceb35081e153921181b96ee5f653b6
2020-06-11 15:13:33 -04:00
Evgeny
07479cf881
adding tracer flush/unload stage unloading
...
Change-Id: Id84774b2ce20b261a9a84d2ad802b76093a748d4
2020-06-02 05:10:02 -05:00
Evgeny
511f659a8e
hipLaunchKernel kernel name fix
...
Change-Id: I59c63ec34f77fe39ed1edc8b6395db3871004e40
2020-05-29 13:16:14 -04:00
Evgeny
3d4f6b3002
buffer wrap-thread startup fix
...
Change-Id: I857cff63d28dcc068eddbd3ae2bc0193c428ec41
2020-05-07 06:45:29 -05:00
Evgeny
463869d556
optimize HIP API tracing
...
Change-Id: I43df8d8c4d2165d6ad63665b8bd1d86f99c5dffc
2020-05-05 04:08:13 -05:00
Evgeny
5531a38d02
loader verbose prints
...
Change-Id: I99fcdcb0f06b58071a0ff13fbe468c23f7698410
2020-04-22 23:10:05 -05:00
Evgeny
95d05100a7
HIP libraries static definition
...
Change-Id: I7cd45b491f35d5890246f8d4b1ce358f62b4c682
2020-04-20 12:38:02 -05:00
Evgeny
5e5fe9917d
normalizing trace comparison mechanism
2020-03-27 00:32:18 -05:00
Evgeny
1be273a1b4
enable tool reloading
2020-03-14 00:13:22 -05:00
Evgeny
3568ca4dbb
compatibility with pre-pcs rocprofiler version
2020-03-11 11:33:27 -05:00
Evgeny
7965a02680
fixing rocprofiler activity enabling
2020-03-09 21:13:44 -05:00
Evgeny
d2243ef1ec
pc sampling integration fix
2020-03-07 19:09:54 -06:00
Evgeny
8b63135ced
PC sampling initial bringup
2020-02-28 14:01:40 -06:00
Evgeny
f214221bb2
control of trace buffer thread start
2020-01-27 14:31:24 -06:00
Evgeny
1c79061bb3
filtering start/stop callback if already started/stopped
2020-01-15 12:57:28 -06:00
Evgeny
077f8ec6b6
normalizing C API
2019-12-29 03:06:11 -06:00
eshcherb
e212670fe8
Merge pull request #31 from whchung/feature-roctracer_get_timestamp
...
[Feature] Introduce a new API roctracer_get_timestamp().
2019-12-26 17:41:44 -06:00
Evgeny
dceeb6846e
checking hip/hcc loader enabled
2019-12-25 05:51:19 -06:00
Wen-Heng (Jack) Chung
b7aa8fedb7
Introduce a new API roctracer_get_timestamp().
...
roctracer_status_t roctracer_get_timestamp(uint64_t* timestamp);
Get system timestamp for roctracer clients.
The API could be used to help roctracer clients understand the reference frame
of timestamps when receiving activity callbacks, as the nanoseconds reported in
the activity callbacks are not in the same reference frame as CPU walltime
clock.
2019-12-19 18:05:33 +00:00
Evgeny
23a1d54acf
renaming libmcwamp_hsa to libmcwamp; force loading of roctx library;
2019-12-12 19:03:26 -06:00
Evgeny
0316b23df0
enabling of trace disable for HIP-VDI
2019-12-08 12:38:19 -06:00
Evgeny
e606af1499
corremation id initialization fix
2019-12-08 12:11:50 -06:00
Evgeny
c58f1f411c
hcc corr id wait enabled by default
2019-12-05 18:13:30 -06:00
Evgeny
9d37542470
lib onload trace
2019-12-05 18:08:17 -06:00
Evgeny
7138c5787b
enabling hip id wait for HIP-VDI
2019-11-27 19:39:32 -06:00