83 Коміти

Автор SHA1 Повідомлення Дата
Jatin Chaudhary 8e1aee62d0 make hip-tests compileable with TheRock (#1624)
## Motivation

Resolved: SWDEV-566226

The current implementation of agents inside of rocprof-systems keeps just the minimal necessary set of information required for populating the `info_agent` table inside of rocpd database. There is a sufficient amount of data that is being left out from database, so this change should fix that and store the additional agent information as an `extdata` row inside of `info_agent` table.

## Technical Details

This PR introduces additional filed inside of `agent` structure inside which is representing the JSON formatted string of all the additional information we can acquire about particular agent. This data is processed and added during the initial fetching of agents, and afterwards pushed inside of the database.

---------

Co-authored-by: David Galiffi <David.Galiffi@amd.com>

* SWDEV-557412 - Incorporate proper chunk offset when remapping virtual memory (#1848)

* SWDEV-557412 - Incorporate proper offset when remapping virtual memory

* Fix condition to check if VMHeap allocation address matches a chunk address

* Move offset calculation outside if/else block

---------

Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>

* SWDEV-567852 - Clean-up hip::init() (#1948)

* SWDEV-559267 - Use CLPrint to DevLogPrintf with Log Level - detail debug. (#1160)

* SWDEV-548892 - Stop using ocml isinf wrapper (#1854)

* SWDEV-562708 - change default maximum SVM size to 256GB (#1731)

* SWDEV-503089 - Fix and enable disabled HIP tests from math group (#1319)

* SWDEV-503089 - Fix and enable disabled HIP tests from math group

* SWDEV-503089 - Move single precision reduced run to a common function

* SWDEV-548892 - Stop using ockl steadyctr function (#1882)

Directly use the builtin

* Implement PTL support (#1957)

* Implement PTL support

Signed-off-by: adapryor <Adam.pryor@amd.com>
(cherry picked from commit 45bc31292e7940a3b8fca044ef7df22047b95733)

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>

---------

Signed-off-by: adapryor <Adam.pryor@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>

* SWDEV-558080 - Add recommended granularity (#1176)

* Add recommended granularity

* Improve granularity testing

* Update based on feedback

* Fix and enable VMM tests on cuda (#1855)

* Fix and enable VMM tests on cuda

* Minor syntax fixes

---------

Co-authored-by: Rahul Manocha <rmanocha@amd.com>

* [rocprofiler-systems] Add support for ompt_callback_thread_begin (#1681)

* Add thread_begin callback

* Make OMPT callbacks that are instant have start_ts = end_ts

* SWDEV-567514: Remove default stream wait (#1977)

- when virtual map command is called

- can create deadlock

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>

* Fix flaky test Unit_hipStreamAddCallback_StrmSyncTiming (#2022)

* Review comments

* skip the 3 failing tests to merge hip-tests rocm-systems PR

---------

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Signed-off-by: adapryor <Adam.pryor@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Co-authored-by: GunaShekar <agunashe@amd.com>
Co-authored-by: agunashe <ajay.gunashekar@amd.com>
Co-authored-by: Ethan Trinh <Ethan.Trinh@amd.com>
Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>
Co-authored-by: Victor Zhang <111778801+victzhan@users.noreply.github.com>
Co-authored-by: German Andryeyev <56892148+gandryey@users.noreply.github.com>
Co-authored-by: usrihari123 <srihari.u@amd.com>
Co-authored-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Co-authored-by: anujshuk-amd <anujshuk@amd.com>
Co-authored-by: itrowbri <Ian.Trowbridge@amd.com>
Co-authored-by: marantic-amd <marantic@amd.com>
Co-authored-by: David Galiffi <David.Galiffi@amd.com>
Co-authored-by: cadolphe-amd <chris.adolphe@amd.com>
Co-authored-by: Karthik Jayaprakash <54370791+kjayapra-amd@users.noreply.github.com>
Co-authored-by: Matt Arsenault <Matthew.Arsenault@amd.com>
Co-authored-by: Todd tiantuo Li <88386084+lttamd@users.noreply.github.com>
Co-authored-by: amilanov-amd <Aleksandar.Milanov@amd.com>
Co-authored-by: Adam Pryor <61172547+adam360x@users.noreply.github.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: AidanBeltonS <abeltons@amd.com>
Co-authored-by: Rahul Manocha <153310294+manocharahul@users.noreply.github.com>
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
Co-authored-by: Kian Cossettini <Kian.Cossettini@amd.com>
Co-authored-by: Shadi Dashmiz <94885391+shadidashmiz@users.noreply.github.com>
Co-authored-by: Ioannis Assiouras <38722728+iassiour@users.noreply.github.com>
Co-authored-by: Ajay GunaShekar <86270081+agunashe@users.noreply.github.com>
2025-12-03 08:53:17 -08:00
Ioannis Assiouras a598f9138b Fix flaky test Unit_hipStreamAddCallback_StrmSyncTiming (#2022) 2025-11-26 22:52:58 +00:00
amilanov-amd 738bf16008 [hip-tests] Tag multigpu tests with Catch2 tags (#1315) 2025-11-14 13:00:30 +01:00
swargamrambabu e6b1ec25bd SWDEV-561337 Additional Tests for hipStreamCopyAttributes API (#1607)
* SWDEV-548797 Additional Tests for hipStreamCopyAttributes API

* SWDEV-548797 : Added sanity check section for negative test case
2025-11-12 14:05:54 +05:30
vstojilj 7d078b9875 SWDEV-553920 - Fix Unit_hipStreamCreateWithPriority_ValidateWithEvents (#1622) 2025-11-05 09:31:01 +01:00
Satyanvesh Dittakavi 46e683d41a SWDEV-545950 - Add hipStreamCopyAttributes API Implementation (#914)
* SWDEV-545950 - Add hipStreamCopyAttributes API Implementation

* Add unit test for hipStreamCopyAttributes API

* Add ChangeLog and nvidia mapping for the API

* Update rocprofiler-sdk with new HIP API details

* [rocprofiler-sdk] handle hipStreamCopyAttributes in stream tracing service

- this new HIP function has multiple stream arguments and needs to be skipped because it does not have an explicit create/destroy/set functionality

* Update HIP_RUNTIME_API_TABLE_STEP_VERSION in clr and rocprofiler-sdk

* Resolve merge conflicts

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
2025-10-12 19:57:05 +05:30
systems-assistant[bot] becb4646bd SWDEV-546346 - [catch2][dtest] Tests for hipStreamSetAttribute and hipStreamGetAttribute (#524)
* SWDEV-546346 - [catch2][dtest] Tests for hipStreamSetAttribute and hipStreamGetAttribute

* SWDEV-546346 - Modified Kernel, added info statement

---------

Co-authored-by: Rambabu Swargam <rambabu.swargam@amd.com>
Co-authored-by: jainprad <92369414+jainprad@users.noreply.github.com>
2025-09-25 15:29:26 +05:30
Ioannis Assiouras 97fc90c58f SWDEV-556250 - Added synchronization before validating the result in Unit_hipStreamLegacy* tests (#1062) 2025-09-23 14:14:51 +01:00
Satyanvesh Dittakavi 86792d8562 SWDEV-549680 - Fix memory leaks in stream tests (#629) 2025-09-03 20:33:49 +05:30
systems-assistant[bot] 4174508dcc SWDEV-545953 - Tests for hipStreamGetId (#529)
Co-authored-by: Satyanvesh Dittakavi <Satyanvesh.Dittakavi@amd.com>
Co-authored-by: ammallya <ameyakeshava.mallya@amd.com>
Co-authored-by: swargamrambabu <rambabu.swargam@amd.com>
Co-authored-by: jainprad <92369414+jainprad@users.noreply.github.com>
2025-08-29 16:07:01 +05:30
Danylo Lytovchenko 2ff2316227 Adjust clang format to the new versions, revert broken macro layout (#714) 2025-08-22 17:23:22 +02:00
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
Patel, Jaydeepkumar 3766537ced SWDEV-534016 - Change error code as per current CLR logic (#207)
Change error code as per current CLR logic.
Intra device async memcpy in 2 diff threads can't sync by CLR internals, It needs to be handled by app/test.

[ROCm/hip-tests commit: a4c93871b5]
2025-07-30 21:21:56 +05:30
Xie, Pengda dd6d3a6cd3 SWDEV-514841 - Remove invalid stream tests on AMD platform
[ROCm/hip-tests commit: 0c1a7bf155]
2025-05-08 16:25:23 -07:00
Aidan Belton-Schure 3838bda081 SWDEV-489364 - Free memory in hipAPIStreamDisable
Change-Id: I4f740fe803bcc4bbf57865173d92c567de65fdbb


[ROCm/hip-tests commit: 674ed47852]
2025-03-06 04:07:21 -05:00
Ioannis Assiouras aaecd3e058 SWDEV-493278 - Fix error codes in Unit_hipStreamBatchMemOp_Negative_Tests
Change-Id: I560da08d94b2ec41bbb5d5dc96561b79daa410a5


[ROCm/hip-tests commit: 22946cd158]
2025-01-27 14:00:24 +00:00
SrinivasaRao 93b661d9b0 SWDEV-493278-[catch2][dtest]-Negative Tests for the hipStreamBatchMemOp API
Change-Id: I408aa01e279817b44ff05571f3251a281dd5a4f6


[ROCm/hip-tests commit: 7d2ed4bd39]
2025-01-24 13:47:16 -05:00
Rambabu Swargam ce3f70c1d5 SWDEV-506876 - [catch2][dtest] Enable stress tests for hipStreamLegacy
Change-Id: Ica8d0e68f4ec19af48d6d417f018b9d8f375125d


[ROCm/hip-tests commit: 94f5907371]
2025-01-24 13:34:29 -05:00
Marko Arandjelovic fe9860bd47 SWDEV-485763 - Fix memory leaks in various unit tests
Fix memory leaks by adding missing destroy calls for
events, streams, and graphs at the end of tests.

Ensure that every test case executes destroy calls,
regardless of whether it passes or fails.

Change-Id: I814e35c528d90ed2abb34d77377f1a7fd3f1f11c


[ROCm/hip-tests commit: 9cffda4ebb]
2024-12-10 10:25:08 -05:00
Vladana Stojiljkovic d6b1d6a264 SWDEV-489376 - Fix Unit_hipLaunchHostFunc_Graph memory leaks
Change-Id: I209f686cb13f05d6b0b790aaa7ab8b93555df3b1


[ROCm/hip-tests commit: bf9f14d2ee]
2024-12-09 04:01:22 -05:00
Satyanvesh Dittakavi 19ab862ea3 SWDEV-489384 - SWDEV-489388 - Fix memory leaks in hipStreamGetDevice catch tests
Change-Id: I7e96edbdbb8cde8b81c471bd0572f95df40d3530


[ROCm/hip-tests commit: 01bfe61293]
2024-11-26 01:56:28 -05:00
SrinivasaRao 3948ea2930 SWDEV-466663-[catch2][dtest] _spt api names missing from code coverage-Phase-1
Change-Id: Ifd374fcc242767ab7a9e999dba79f2f3c2ef7c4a


[ROCm/hip-tests commit: 4e659f42de]
2024-11-15 17:46:43 +05:30
Ioannis Assiouras d4ad29fd1e SWDEV-489354 - Fixed memleak in Unit_hipLaunchHostFunc_Diffpriority
Change-Id: I8a8b49b225e2b48973ae37727766a4af04d08f6f


[ROCm/hip-tests commit: 950bedf14f]
2024-11-13 07:06:00 -05:00
Ioannis Assiouras 2f4a9f3fd2 SWDEV-489358 - Fixed memleak in Unit_hipMultiStream_sameDevice
Change-Id: I5a662e46546125988d8a75f76aafcc905eab7147


[ROCm/hip-tests commit: d4f6a2defb]
2024-11-13 05:35:34 -05:00
Rambabu Swargam c55f3d16b8 SWDEV-468261 - [catch2][dtest] Functional testcases for hipStreamLegacy
Change-Id: I37cf900d4cfdc244ba8d1d7e2e8c6d34f535a0c2


[ROCm/hip-tests commit: 96d4493c3a]
2024-11-13 00:00:43 -05:00
sdashmiz 4432d9458f SWDEV-462585 - Add initial test for hipStreamLegacy
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Idf38f2e8c49e9011ede73e6222db68ccdc74ed80


[ROCm/hip-tests commit: 4e4cde6d70]
2024-10-15 11:11:12 -04:00
Tao Sang d32df0957c SWDEV-467540 - Verify awaitCompletion()
Update the existing test case to verify
awaitCompletion() for unfinished command.

Change-Id: I0fbcdba9ffb8633d861312c221ac12df1772c6e6


[ROCm/hip-tests commit: 3e0b749b76]
2024-07-30 14:29:35 -04:00
Branislav Brzak 35c7d3e1c6 SWDEV-448163 - Fix Doxygen warnings
Change-Id: If72e312461a72920b6a482009c9aef4cf92f2e1b


[ROCm/hip-tests commit: 6c23e25c86]
2024-03-25 05:18:34 -04:00
Sebastian Luzynski f767e489d8 SWDEV-441274 - Implement a positive test for hipStreamWriteValue
Signed-off-by: Sebastian Luzynski <Sebastian.Luzynski@amd.com>
Change-Id: I81577c28bf38e56b6a88717478109cda4d4b2ee0


[ROCm/hip-tests commit: 0a1d7aefbb]
2024-03-08 12:27:52 -05:00
Mirza Halilcevic d425db338b EXSWHTEC-384 - Coverage Tool and Test Plan update #455
Change-Id: Idf52308186a73ae1c4d815eb59f20ea7da99c964


[ROCm/hip-tests commit: dc78fafa49]
2024-02-27 22:26:25 +05:30
Mirza Halilcevic dcade635c6 EXSWHTEC-281 - Implement Unit Tests for assert functions #210
Change-Id: I6c05915c957d9b67951b3e97cc35cb1ca72a945f


[ROCm/hip-tests commit: 044a59496c]
2024-02-23 20:45:53 +05:30
Ajay f83e9be99c SWDEV-347670 - StreamWait test issues
SWDEV-439486 - Fix Unit_hipStreamValue_Wait32_NonBlocking_Mask_Gte

Change-Id: Iab61cacaa72ac88905a2befe3aff931f8216d152


[ROCm/hip-tests commit: 8c0a6f1cdb]
2024-01-25 11:30:57 -05:00
Jatin Chaudhary bf7b7e6809 SWDEV-428670 - Delete hipStream*Performance tests
This class of tests can fail randomnly since they assume that time to
create first set of stream should be greater than second set. This is
incorrect since there can be multiple reason why the time for second
batch can be greater than the first batch.

Change-Id: I5f91c2bab7119608014dead25fdeb38523c61682


[ROCm/hip-tests commit: 39aeb7b42e]
2023-12-13 17:12:16 +00:00
Jaydeep Patel d4e5dfa942 SWDEV-425248 - numerous bug fixes
https://gerrit-git.amd.com/c/compute/ec/clr/+/849086 changed stream sync behaviour and accordingly updated Unit_hipStreamCreateWithFlags_DefaultStreamInteraction.
Update error code to match for hipStreamWaitEvent.
Thread detach makes executions all async and while that is happening, It is unexpected effect for device reset so join thread is better.

Change-Id: I1affa84089626dee478d8bcc5aaa318e320fd6b0


[ROCm/hip-tests commit: be88e1dffc]
2023-11-17 06:30:38 -05:00
Jatin Chaudhary 3a4f3e5fab SWDEV-411064 - check if image is supported before running image specific tests
Also fix CU Mask test.

Change-Id: I0fbb93a1bcce131e0f98dee7cd5da9704d2ca8ac


[ROCm/hip-tests commit: e605151eb1]
2023-11-07 01:05:01 -05:00
Jaydeep Patel 9d7a3e0e60 SWDEV-424039 - Min CU mask on MI300 should be 10 as it has more max CUs.
Change-Id: Iecd9765a9aba969622f7e5581d952615850bd343


[ROCm/hip-tests commit: 0f99950ba7]
2023-11-06 08:29:51 -05:00
ROCm CI Service Account c39777c629 SWDEV-386902 - [catch2][dtest] Test case to verify hipStreamCreate Performance (#222)
Change-Id: I8e6695a4e9214bc9ade598be993e1cbf0b1d210d

[ROCm/hip-tests commit: cdf434b357]
2023-08-14 20:52:06 +05:30
ROCm CI Service Account d3b771c91d SWDEV-385161 - Deprecate usage of env vars in HIP samples and tests (#363)
* SWDEV-385161 - Deprecate usage of env vars in HIP samples and tests env vars such as HIP_PATH, ROCM_PATH, HIP_COMPILER, HIP_RUNTIME, HSA_PATH etc are removed.

Change-Id: I280e20b291cfb14675846aae72d97fa5b3ad567d

[ROCm/hip-tests commit: 34976df246]
2023-08-14 12:06:14 +05:30
ROCm CI Service Account f72821a84d SWDEV-408958 - Use LaunchDelayKernel and modify it to use same kernel based on real time clock for gfx10 and gfx11. (#370)
Change-Id: Iea8a48e8cbfa1745c7d5535dc5820133a4104087

[ROCm/hip-tests commit: 04080c2e2e]
2023-07-20 10:16:56 +05:30
ROCm CI Service Account 9916a91962 SWDEV-389825 - intermittent failure on multithread test (#315)
- remove null stream from operation with other created streams on multithread test
- some general test fix

Change-Id: Icec7436f92a2d90dcee93ed5cdc4c8934d803fde

[ROCm/hip-tests commit: a7ab47589b]
2023-06-29 08:57:38 +05:30
ROCm CI Service Account 4ba3a31215 SWDEV-392791 - [catch2][dtest] Migrating locally available test cases of hipStreamCreateWithPriority() api to Catch2 (#269)
Change-Id: I232f9d2e4d469f8b46639d020b58bbbbcf09a6d4

[ROCm/hip-tests commit: 573d14a3bf]
2023-06-21 15:59:33 +05:30
ROCm CI Service Account 7ab638c564 SWDEV-378057 - [catch2][dtest] Test cases for hipStreamGetDevice API (#223)
Change-Id: I456e32bfaaa1b284c590015e3319c49e47236f71

[ROCm/hip-tests commit: eea59ab941]
2023-06-21 15:57:26 +05:30
ROCm CI Service Account 38cbcbbb78 SWDEV-372153 - Add tests for hipStreamGetDevice (#212)
* SWDEV-372153 - Add tests for hipStreamGetDevice

Change-Id: Ida2d36ff6f4f38daa97712533d27061fc99454ca

* Fix test on nvidia devices

---------


[ROCm/hip-tests commit: 5ede3b1fb9]
2023-03-21 08:57:30 -07:00
ROCm CI Service Account 3af8290717 SWDEV-360327 - [catch2][dtest] Test cases added for hipLaunchHostFunc API (#170)
Change-Id: I0d92ed0d8e97a2f7b34cc89dd6dcffa2236ee308


[ROCm/hip-tests commit: 12fb9350ad]
2023-03-01 17:31:07 -08:00
ROCm CI Service Account e9ad9e182c SWDEV-1 - Refactor of cmake files of stream and memory unit tests (#174)
Change-Id: Ie29641be95e7fb2a191f22e5d1e588d6943a430f


[ROCm/hip-tests commit: 1c4285f3df]
2023-02-27 15:55:24 -08:00
Rahul Garg ca57f979a0 Catch2 standalone exe (#129)
* SWDEV-359379 - catch2: Standalone single exe per file

-workaround for rsp file issue.
-Creates single exe per file
-tests detection is still during execution time and NOT compile time

Change-Id: Iddfb83d57b2d767212f3d9307a276b7d572da6cd

* SWDEV-359379 - Update CMakeList

* Update Catch.cmake

* Temporarily disable failing tests


[ROCm/hip-tests commit: 961245e9f4]
2023-01-19 14:09:14 -08:00
Mirza Halilčević 89cf6ce4bb EXSWHTEC-99 - Reimplement tests for hipStreamAttachMemAsync (#52)
- Negative parameter tests
- Validate basic behavior
- Validate the behavior when pageable memory access is supported
- Validate the behavior for hipMemAttachGlobal
- Validate the behavior for hipMemAttachHost
- Validate the behavior for hipMemAttachSingle

[ROCm/hip-tests commit: 8ae538a341]
2023-01-17 17:28:57 +05:30
ROCm CI Service Account d8b7cb28ff SWDEV-337452 - Changing Clock64 to WallClock64 in tests for gfx11. (#78)
Change-Id: I484fe9ff7cd56c70a37a3ac5a4a55812f8557259


[ROCm/hip-tests commit: 87fac87657]
2023-01-06 15:05:21 -08:00
ROCm CI Service Account e41399533b SWDEV-345188 - Windows: fix warnings while building catch (#3071)
fixes deprecated warning for 'getenv' on Windows

Change-Id: I5ecdaca451a936e843691c4611910ee338b22e46

[ROCm/hip-tests commit: d20ab63be1]
2022-11-28 20:17:09 +05:30
ROCm CI Service Account c1bfc5c652 SWDEV-346657 - add more hipStreamAcb test (#3064)
* SWDEV-346657 - add more hipStreamAcb test

Change-Id: If94628ec9c285e9689ce471931b3c40b7d3ece84

[ROCm/hip-tests commit: 0ce3886fc8]
2022-11-28 20:16:16 +05:30