Commit Graph

70 Commits

Author SHA1 Message Date
Xie, Pengda 0c1a7bf155 SWDEV-514841 - Remove invalid stream tests on AMD platform 2025-05-08 16:25:23 -07:00
Aidan Belton-Schure 674ed47852 SWDEV-489364 - Free memory in hipAPIStreamDisable
Change-Id: I4f740fe803bcc4bbf57865173d92c567de65fdbb
2025-03-06 04:07:21 -05:00
Ioannis Assiouras 22946cd158 SWDEV-493278 - Fix error codes in Unit_hipStreamBatchMemOp_Negative_Tests
Change-Id: I560da08d94b2ec41bbb5d5dc96561b79daa410a5
2025-01-27 14:00:24 +00:00
SrinivasaRao 7d2ed4bd39 SWDEV-493278-[catch2][dtest]-Negative Tests for the hipStreamBatchMemOp API
Change-Id: I408aa01e279817b44ff05571f3251a281dd5a4f6
2025-01-24 13:47:16 -05:00
Rambabu Swargam 94f5907371 SWDEV-506876 - [catch2][dtest] Enable stress tests for hipStreamLegacy
Change-Id: Ica8d0e68f4ec19af48d6d417f018b9d8f375125d
2025-01-24 13:34:29 -05:00
Marko Arandjelovic 9cffda4ebb 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
2024-12-10 10:25:08 -05:00
Vladana Stojiljkovic bf9f14d2ee SWDEV-489376 - Fix Unit_hipLaunchHostFunc_Graph memory leaks
Change-Id: I209f686cb13f05d6b0b790aaa7ab8b93555df3b1
2024-12-09 04:01:22 -05:00
Satyanvesh Dittakavi 01bfe61293 SWDEV-489384 - SWDEV-489388 - Fix memory leaks in hipStreamGetDevice catch tests
Change-Id: I7e96edbdbb8cde8b81c471bd0572f95df40d3530
2024-11-26 01:56:28 -05:00
SrinivasaRao 4e659f42de SWDEV-466663-[catch2][dtest] _spt api names missing from code coverage-Phase-1
Change-Id: Ifd374fcc242767ab7a9e999dba79f2f3c2ef7c4a
2024-11-15 17:46:43 +05:30
Ioannis Assiouras 950bedf14f SWDEV-489354 - Fixed memleak in Unit_hipLaunchHostFunc_Diffpriority
Change-Id: I8a8b49b225e2b48973ae37727766a4af04d08f6f
2024-11-13 07:06:00 -05:00
Ioannis Assiouras d4f6a2defb SWDEV-489358 - Fixed memleak in Unit_hipMultiStream_sameDevice
Change-Id: I5a662e46546125988d8a75f76aafcc905eab7147
2024-11-13 05:35:34 -05:00
Rambabu Swargam 96d4493c3a SWDEV-468261 - [catch2][dtest] Functional testcases for hipStreamLegacy
Change-Id: I37cf900d4cfdc244ba8d1d7e2e8c6d34f535a0c2
2024-11-13 00:00:43 -05:00
sdashmiz 4e4cde6d70 SWDEV-462585 - Add initial test for hipStreamLegacy
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Idf38f2e8c49e9011ede73e6222db68ccdc74ed80
2024-10-15 11:11:12 -04:00
Tao Sang 3e0b749b76 SWDEV-467540 - Verify awaitCompletion()
Update the existing test case to verify
awaitCompletion() for unfinished command.

Change-Id: I0fbcdba9ffb8633d861312c221ac12df1772c6e6
2024-07-30 14:29:35 -04:00
Branislav Brzak 6c23e25c86 SWDEV-448163 - Fix Doxygen warnings
Change-Id: If72e312461a72920b6a482009c9aef4cf92f2e1b
2024-03-25 05:18:34 -04:00
Sebastian Luzynski 0a1d7aefbb SWDEV-441274 - Implement a positive test for hipStreamWriteValue
Signed-off-by: Sebastian Luzynski <Sebastian.Luzynski@amd.com>
Change-Id: I81577c28bf38e56b6a88717478109cda4d4b2ee0
2024-03-08 12:27:52 -05:00
Mirza Halilcevic dc78fafa49 EXSWHTEC-384 - Coverage Tool and Test Plan update #455
Change-Id: Idf52308186a73ae1c4d815eb59f20ea7da99c964
2024-02-27 22:26:25 +05:30
Mirza Halilcevic 044a59496c EXSWHTEC-281 - Implement Unit Tests for assert functions #210
Change-Id: I6c05915c957d9b67951b3e97cc35cb1ca72a945f
2024-02-23 20:45:53 +05:30
Ajay 8c0a6f1cdb SWDEV-347670 - StreamWait test issues
SWDEV-439486 - Fix Unit_hipStreamValue_Wait32_NonBlocking_Mask_Gte

Change-Id: Iab61cacaa72ac88905a2befe3aff931f8216d152
2024-01-25 11:30:57 -05:00
Jatin Chaudhary 39aeb7b42e 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
2023-12-13 17:12:16 +00:00
Jaydeep Patel be88e1dffc 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
2023-11-17 06:30:38 -05:00
Jatin Chaudhary e605151eb1 SWDEV-411064 - check if image is supported before running image specific tests
Also fix CU Mask test.

Change-Id: I0fbb93a1bcce131e0f98dee7cd5da9704d2ca8ac
2023-11-07 01:05:01 -05:00
Jaydeep Patel 0f99950ba7 SWDEV-424039 - Min CU mask on MI300 should be 10 as it has more max CUs.
Change-Id: Iecd9765a9aba969622f7e5581d952615850bd343
2023-11-06 08:29:51 -05:00
ROCm CI Service Account cdf434b357 SWDEV-386902 - [catch2][dtest] Test case to verify hipStreamCreate Performance (#222)
Change-Id: I8e6695a4e9214bc9ade598be993e1cbf0b1d210d
2023-08-14 20:52:06 +05:30
ROCm CI Service Account 34976df246 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
2023-08-14 12:06:14 +05:30
ROCm CI Service Account 04080c2e2e SWDEV-408958 - Use LaunchDelayKernel and modify it to use same kernel based on real time clock for gfx10 and gfx11. (#370)
Change-Id: Iea8a48e8cbfa1745c7d5535dc5820133a4104087
2023-07-20 10:16:56 +05:30
ROCm CI Service Account a7ab47589b 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
2023-06-29 08:57:38 +05:30
ROCm CI Service Account 573d14a3bf SWDEV-392791 - [catch2][dtest] Migrating locally available test cases of hipStreamCreateWithPriority() api to Catch2 (#269)
Change-Id: I232f9d2e4d469f8b46639d020b58bbbbcf09a6d4
2023-06-21 15:59:33 +05:30
ROCm CI Service Account eea59ab941 SWDEV-378057 - [catch2][dtest] Test cases for hipStreamGetDevice API (#223)
Change-Id: I456e32bfaaa1b284c590015e3319c49e47236f71
2023-06-21 15:57:26 +05:30
ROCm CI Service Account 5ede3b1fb9 SWDEV-372153 - Add tests for hipStreamGetDevice (#212)
* SWDEV-372153 - Add tests for hipStreamGetDevice

Change-Id: Ida2d36ff6f4f38daa97712533d27061fc99454ca

* Fix test on nvidia devices

---------
2023-03-21 08:57:30 -07:00
ROCm CI Service Account 12fb9350ad SWDEV-360327 - [catch2][dtest] Test cases added for hipLaunchHostFunc API (#170)
Change-Id: I0d92ed0d8e97a2f7b34cc89dd6dcffa2236ee308
2023-03-01 17:31:07 -08:00
ROCm CI Service Account 1c4285f3df SWDEV-1 - Refactor of cmake files of stream and memory unit tests (#174)
Change-Id: Ie29641be95e7fb2a191f22e5d1e588d6943a430f
2023-02-27 15:55:24 -08:00
Rahul Garg 961245e9f4 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
2023-01-19 14:09:14 -08:00
Mirza Halilčević 8ae538a341 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
2023-01-17 17:28:57 +05:30
ROCm CI Service Account 87fac87657 SWDEV-337452 - Changing Clock64 to WallClock64 in tests for gfx11. (#78)
Change-Id: I484fe9ff7cd56c70a37a3ac5a4a55812f8557259
2023-01-06 15:05:21 -08:00
ROCm CI Service Account d20ab63be1 SWDEV-345188 - Windows: fix warnings while building catch (#3071)
fixes deprecated warning for 'getenv' on Windows

Change-Id: I5ecdaca451a936e843691c4611910ee338b22e46
2022-11-28 20:17:09 +05:30
ROCm CI Service Account 0ce3886fc8 SWDEV-346657 - add more hipStreamAcb test (#3064)
* SWDEV-346657 - add more hipStreamAcb test

Change-Id: If94628ec9c285e9689ce471931b3c40b7d3ece84
2022-11-28 20:16:16 +05:30
ROCm CI Service Account 814f0cc15c SWDEV-327563 - Windows Enable fixed tests v5 (#3059)
Change-Id: Ie144e481f38b3e5d462f64d76ab4fd32043f2b46
2022-11-07 15:36:09 +05:30
nives-vukovic 6e4c9a8089 EXSWHTEC-17 - Implement additional hipStreamWaitEvent tests (#2910)
- Add simple test that waits for an event - Unit_hipStreamWaitEvent_Default
- Add negative test when stream is uninitialized - Unit_hipStreamWaitEvent_WithUninitializedStream
- Minor modification of Unit_hipStreamWaitEvent_DifferentStreamstxt
- Modify uninitialized stream error code
2022-11-03 08:01:37 +05:30
nives-vukovic 17feaa555d EXSWHTEC-40 - Implement additional Stream Management negative tests (#2922)
- Implement negative test for hipStream<Write/Wait>Value when stream is uninitialized
- Implement negative test for hipStreamSynchronize when stream is uninitialized
- Invalid flag negative test for hipStreamWriteValue API removed as flag parameter is not used
2022-10-10 13:18:49 +05:30
Paulius Velesko da453211ed Catch2 Test Fixes (#2961)
* test fixes

* address PR comment

* PR comment fixing Nvidia pass

* add additional kernel launch checks

* pr comments
2022-09-30 15:07:25 -07:00
nives-vukovic 4795cc6265 EXSWHTEC-37 - Expand tests for hipStreamQuery (#2921)
- Add testing for null stream in Unit_hipStreamQuery_WithNoWork
- Add testing for null stream in Unit_hipStreamQuery_WithFinishedWork
2022-09-26 11:03:30 +05:30
nives-vukovic 968e21cd1f EXSWHTEC-24 - Fix issues and refactor code in Stream Management tests (#2916)
- Fix bug in calculation of normal priority in Unit_hipStreamGetPriority_StreamsWithCUMask tests
- Delete duplicate test Unit_hipStreamGetPriority_InvalidPriorityPointer
- Separate Unit_hipStreamAddCallback_ParamTst into positive and negative test
- Remove Unit_hipStreamDestroy_Negative_DoubleDestroy test for Nvidia devices due to error
2022-09-26 11:03:18 +05:30
nives-vukovic 26d316a250 EXSWHTEC-18 - Implement positive test for hipDeviceGetStreamPriorityRange (#2911)
- Add hipDeviceGetStreamPriorityRange.cc file with a test for simple device stream priority range check
- Add newly created file into CMakeLists.txt
2022-09-26 11:02:49 +05:30
ROCm CI Service Account 3af54da059 SWDEV-287351 - Fix hipStreamWithCUMask hang on Navi21 (#2939)
- For gfx >= 10, one work group processor encompasses 2 CUs & hence the CUs need to be enabled in pair

Change-Id: I359df1b221b4400b260b02201b7b0385054784f3
2022-09-23 12:37:42 +05:30
ROCm CI Service Account e8eb0f375f SWDEV-327563 - Enable fixed tests linux and windows v3 (#2943)
Change-Id: Ia5c47821268d7f31b70c473ef2a4785b6735a2f1
2022-09-21 11:59:06 -07:00
Finlay cc1f3702e7 EXSWCPHIPT-133 - Added support for offsetting to arrays to hipStreamValue tests (#2766) 2022-08-08 10:47:42 +05:30
Fábio ed3eb0db78 Added testing for hipStreamSynchronize and hipStreamQuery (#2572) 2022-08-08 09:29:20 +05:30
Finlay 8c492acb9d EXSWCPHIPT-140 - Added hipStreamCreateWithFlags tests (#2549) 2022-08-05 10:59:44 +05:30
Finlay 17050703b1 EXSWCPHIPT-139 - added tests for hipStreamDestroy (#2548) 2022-08-05 10:59:19 +05:30