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

55 Коммитов

Автор SHA1 Сообщение Дата
Ammar ELWazir 2f5313a0c7 Fixing cmake_modules
Removing unused definitions and compile options
Using cmake variables to set the options needed
Changing the visibility to make it specific for the targets

Change-Id: I80cf0997cd28897d5a06a58c7225ba40dfc51e2d
2022-05-11 19:25:43 -04:00
Laurent Morichetti 046df32729 Fix race conditions in TraceBuffer
1) The Entry's state was published after making the record avaiable,
   so a thread flushing the records could see an unitialized record.
2) data_ and write_pointer_ could become out of sync. write_pointer_
   could be indexing into another buffer than what data_ was pointing
   to.
3) GetEntry could get a nullptr free_buffer_ because multiple threads
   could acquire the work_mutex_ before the work_thread_ could wake up,
   or between allocate_worker's loop iterations.

Change-Id: I6f0a015557888eeeaa75a8bce7fde8de276d11dd
2022-05-03 21:56:46 -04:00
Laurent Morichetti 06a3da7c63 Fix copyright headers
Change-Id: I380d867fa5fb04e68b5b332e9abf33fbeb1e9418
2022-04-19 09:30:45 -07:00
Ammar ELWazir 7ee4f87b73 SWDEV-307394: Fixing Download HSA-Class Issue
Exchanging the git clone of the hsa-class to a local downloaded version pushed to the roctracer repo

Change-Id: Id45a38b2d355102c2e0dee1e4bfde50398369047
2022-03-29 22:27:25 +00:00
Ranjith Ramakrishnan bc19ae71eb File reorganization with backward compatibility
Package installed /opt/rocm
Soft links and wrapper header files installed /opt/rocm/roctracer for backward compatibility
tracer_tool library renamed to roctracer_tool and installed in /opt/rocm/lib/roctracer

Change-Id: Ica7518c5ef2e591715121cbc942b69dff29233d3
2022-03-04 04:03:51 -08:00
Ranjith Ramakrishnan ebda880c4a SWDEV-291455: Prefer rocm include path to hip include path
Change-Id: I1fa96e72169fac689a3a2ed38e988d7f5d18bf04
2022-02-14 14:21:32 -08:00
Icarus Sparry 8ea268b3f4 Forcibly disable parallelism
The manually written Makefiles in the test directory are not safe to
use by more than one job. For example we see things like
	all: clean $(EXECUTABLE)
which says that the 'all' target depends on the 'clean' and
'$(EXECUTABLE)' targets. If make is invoked with -j2 then the clean
and '${EXECUTABLE}' can be built in parallel, so the clean can delete
things whilst they are being built!

Change-Id: I9c56db4c629081b8d812dad45dfd4afde10e481f
Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
2021-10-31 15:19:36 -07:00
Ammar ELWazir 99e2f37c81 SWDEV-298155: Fixing HSA-CLASS REV
Adding the latest commit to pull from the hsa-class git repo that includes the fix for SWDEV-298155
"Fixing the typo in evt_stats.h" https://github.com/ROCmSoftwarePlatform/hsa-class/commit/e6456a6d93cc6d8bcc59bd6ea24f27146f86ff4c

Change-Id: I9984de8ec9204a6cf47a25ce4ac42852473c56c9
2021-09-29 12:27:15 -04:00
Freddy Paul 1cc934204f roctracer:All libraries need to be installed with LIBRARY TAG
Cmake will do the post processing required for RPATH or any other
needed for the libraries only if installed as libraries not as
regular files

FIX: SWDEV-287893
Change-Id: I9cf478fcd23b9f2e8b3bdd81aa566cad3ec2a5e3
2021-05-26 12:15:25 -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
Kent Russell 5c9329aec8 roctracer: Support static thunk
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: I5de63e0a56a8946132ccbb7140a19a82a70b951d
2021-04-27 12:56:56 -04:00
Evgeny 4baffc8e53 SWDEV-264282 : fixing tracer_tool linking
Change-Id: I0fd78c01595bbd506f42cf9dfb45f62b2124f704
2020-12-09 22:18:22 -05:00
Evgeny 7d8fd0606d Adding dumping of HSA handles
Change-Id: I18e2cfdf2574110bffa09d30c7ac1d3941252939
2020-12-01 16:45:33 -05: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 bada601e64 testing using v3 object
Change-Id: Ifca31d632726ab83f4c672b46cd9b97f817e757d
2020-09-16 20:34:42 -04:00
Evgeny ed1f1b66ac build normalizing - generating under build directory
Change-Id: Id9203aec7800024bd749059a415fb29b8051005a
2020-09-07 15:24:58 -05:00
Evgeny ddcb68d0a8 optimized tool stats
Change-Id: Ia9c06879f6e2e195e589c53299c2cafe96a4bfe5
2020-08-20 15:11:21 -05:00
Aaron Enye Shi ee3ed37335 Update to use new bitcode library structure
Also, continue support for old bitcode library layout
for backwards compatibility.
Requires PR: https://github.com/ROCmSoftwarePlatform/hsa-class/pull/3

Change-Id: I55b4fdb4c11442a4920eb721d178861b18912417
2020-07-14 15:34:43 -04:00
Evgeny d1ad7a56e1 tests standalone build
Change-Id: I556cbc48c169764beaf9e50684edfb0e9075074c
2020-06-15 23:49:58 -05:00
Evgeny d2135ad2c8 CI run script version
Change-Id: I0e806854eb7db12656f7f1770642f20247fa6734
2020-06-04 17:31:18 -05:00
Evgeny 1e7650074a fixin build: check script residing in build area
Change-Id: I1a3d794b24c7506d5e24c341c61fe45b31238002
2020-05-29 16:09:13 -05:00
Evgeny 7c5cfafa30 fising mytest environment
Change-Id: Ic48c95e711758c3e448c317bc78c1bceeb22362c
2020-05-20 00:44:58 -05:00
Evgeny c956bb9c6b fix hsa_path
Change-Id: I07c6a504ec1892f314fcbb207656baaf0e356864
2020-05-19 17:20:25 -05:00
Evgeny 173c83c6d4 fixing rocm root
Change-Id: I79ff754775565d4500254e4566b8c994c237ba34
2020-05-18 22:35:30 -05:00
Evgeny 074306d997 SWDEV-236864 : packaging of generated headers
Change-Id: Ifda69eecf3697f6b69c978b3c4c2ffe9835edeb8
2020-05-18 18:08:06 -05:00
Evgeny 3b62c5c6b9 roctracer test with disabled hip api activity
Change-Id: I6d2139a67810cafb9ccb94bf57f55e85e1ab0982
2020-05-06 00:02:24 -05:00
Evgeny d46e357aba changing hsa class rev
Change-Id: Ibd86f519c71edaca60fdc4f9cb7d9a230f5f3c6e
2020-04-20 14:32:28 -05:00
Evgeny 5e5fe9917d normalizing trace comparison mechanism 2020-03-27 00:32:18 -05:00
eshcherb 7b8b39b495 Merge branch 'amd-master' into rkebichi-trace-compare 2020-03-25 19:27:49 -05:00
rkebichi a3be8ff7f1 Update CMakeLists.txt 2020-03-23 17:28:46 -04:00
rkebichi 8247b59a81 Update CMakeLists.txt 2020-03-17 12:27:52 -04:00
rkebichi 8cc21b7557 Update CMakeLists.txt 2020-01-31 16:19:29 -05:00
rkebichi 4fbb8e4863 Update CMakeLists.txt 2020-01-31 15:53:18 -05:00
Evgeny e9087dcd86 saving time for roctx records 2020-01-29 23:39:08 -06:00
Evgeny b43eef92be hsa_rsrc_factory sync test 2020-01-29 22:44:41 -06:00
Evgeny b82a21056e normalizing C API: HSA domain 2019-12-30 20:09:41 -06:00
Evgeny 8280f47327 adding multi-GPU test 2019-12-29 04:09:10 -06:00
Evgeny 077f8ec6b6 normalizing C API 2019-12-29 03:06:11 -06:00
Evgeny 7b3ce9a616 porting to clang 2019-12-05 11:23:18 -06:00
rkebichi f0b49ac122 Update CMakeLists.txt 2019-11-12 17:27:33 -05:00
Evgeny 86dbe20e82 fixing test with conditinoal kfd wrapper compilatipn 2019-11-12 12:35:35 -06:00
Evgeny 72a2571b22 hip-vdi support 2019-10-21 23:03:20 -05:00
Rachida Kebichi 315a547cc4 Add KFD support. 2019-09-27 18:32:54 -04:00
Evgeny a614df9560 updating HSA test 2019-04-01 21:11:14 -05:00
Evgeny 69a480a971 instance creation fix 2019-03-13 15:54:47 -05:00
Evgeny 73a5d5ed27 advancing hsa-class revision 2019-02-19 10:57:39 -06:00
Evgeny fbe3612b5e adding include dir for hsa/hsa.h 2019-01-23 21:05:31 -06:00
Evgeny a530e509fe tool xml input 2019-01-17 22:39:53 -06:00
Evgeny 48a4440ab0 adding explicite usage test 2019-01-15 13:18:47 -06:00
Evgeny 91af7764ad async token mechanism 2019-01-10 03:01:15 -06:00