Graf commitů

56 Commity

Autor SHA1 Zpráva Datum
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
Jatin Chaudhary 867f1276b7 Add tests for hipStreamWaitEvent (#2559) 2022-08-03 16:47:34 +05:30
ROCm CI Service Account e514aff37d SWDEV-345323 - Free H & D memory and destroy stream. (#2809)
Change-Id: I552ac0ad1002fce13767c405558d5d655c7b5c7c
2022-07-19 20:09:18 +05:30
Jatin Chaudhary c0374feacc EXSWCPHIPT-37 - Add test for hipStreamAttachMemAsync (#2558) 2022-07-11 14:37:22 +05:30
Jatin Chaudhary 4820aa0dd4 Add HIP_CHECK_THREAD and REQUIRE_THREAD macro for multi threaded HIP API tests (#2664) 2022-06-20 15:07:13 +05:30
ROCm CI Service Account eb22c8be11 SWDEV-330666 - Test cases for null stream and/or priority. (#2651)
Change-Id: I9f5c99513fa1c754c2ab2e3cb9dcd5b6a3bb0176
2022-06-15 11:29:21 +05:30
Dylan Angus 0150ab8682 Adding support for hipStreamWriteValue32/64 and hipStreamWaitValue32/64 (#2568)
* AHTS-90 - Add missing test case for hipStreamCreate
* Update hipStreamGetFlags testing
* Added testing for hipStreamSynchronize
* Added macro to test a particular error code is returned from an expression
* Update hip_test_common.hh
* Correcting checkers to properly list the test count
* fix copy paste error in HIP_CHECK_ERROR
* Add support for hipStreamWaitValue
* Remove changes unrelated to this PR
* Revert "Added testing for hipStreamSynchronize"
* Remove changes unrelated to this PR
* Added skip test for failure on AMD devices and removed changed to hip_test_common.hh
* Fixed build issues on Nvidia platforms by disabled incompatible tests; Updated negative tests to check the correct return values

Co-authored-by: Jatin Chaudhary <jatin.chaudhary@codeplay.com>
Co-authored-by: Fábio Mestre <fabio.mestre@codeplay.com>
Co-authored-by: Finlay Marno <finlay.marno@codeplay.com>
Co-authored-by: Fábio <fabio.m.mestre@gmail.com>
2022-06-03 08:31:30 +05:30
Fábio aa9c3859f8 Update hipStreamGetFlags testing (#2565)
Added new negative test case scenarios
Changed assertions to check for a specific flag.
2022-06-02 11:06:55 +05:30
Finlay 99a23cfd45 Updated negative tests for hipStreamGetPriority (#2517) 2022-05-25 11:50:59 +05:30
ROCm CI Service Account 824d79cd50 SWDEV-327563 - Windows: enable skipped devicelib, event, stream tests (#2668)
Change-Id: Iebc9766f71f20148d2d4b6e08de7745111393a97
2022-05-06 11:04:10 -07:00
ROCm CI Service Account 308e9520c2 SWDEV-331548 - fix test hang issue (#2658)
destroy stream before exit

Change-Id: I1a51ae349d0dd9a5ff6cdac21c5930bd6d87e021
2022-05-05 11:55:50 +05:30
Jatin Chaudhary 600157719d Add and restructure tests for hipStreamCreate (#2560)
* Add and restructure tests for hipStreamCreate
* Add streamCreate to CMakeLists file
2022-04-01 09:02:45 +05:30
agunashe 3ccd6ec300 SWDEV-273235 - catch2 windows build (#2422)
Change-Id: I331c6c2525a65746e2d0799ec8dc2f608af1176a
2021-11-26 11:52:46 +05:30
agunashe f90c5d218c SWDEV-273235 - Linux: catch2 shared lib to executable (#2421)
Change-Id: I17101e39fd05eb35c087ebdf3cb005d428d9f206
2021-11-26 11:02:29 +05:30
sumanthtg dc22ccc85e SWDEV-303262 - Catch2 test fix for -Wunused-but-set-parameter compilation error. (#2357)
Change-Id: I102d80763103fa792ab1282745bd89f8d24454d2
2021-09-24 16:27:17 +05:30