182 Commits

Author SHA1 Message Date
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
Maneesh Gupta 2a01aa5b4e Update performance_common.hh
Replace std::reduce with std::accumulate due to RHEL build issues.

[ROCm/hip-tests commit: 2c7f3749fb]
2023-07-20 09:55:37 +05:30
milos-mozetic 8b44d2d773 EXSWHTEC-315 - Implement unit tests for dim3 (#298)
- Implement unit tests for dim3
- Add doxygen comments

[ROCm/hip-tests commit: 8412bcb1b3]
2023-07-18 13:02:03 +05:30
nives-vukovic 64167b64c4 EXSWHTEC-304 - Expand and refactor tests for clock device functions (#273)
- Expand and refactor clock device functions
- Add comments and format code
- Fix doxygen test group comments

[ROCm/hip-tests commit: f73d1b21ff]
2023-07-18 13:00:51 +05:30
nives-vukovic d0abae4346 EXSWHTEC-256 - Implement tests for grid_group APIs (#153)
- Migrate basic Cooperative Groups tests and integrate to catch
- Refactor basic Cooperative Groups tests
- Rename tiled partition related files and fix minor bug
- Add LaunchCooperativeKernal and LaunchCooperativeKernelMultiDevice tests
- Refactor hipCGThreadBlockTileType to use common function
- Fix updated file not added during merge
- Add coalesced_group type tests
- Add coalesced_group shuffle_up and shuffle_down tests
- Add coalesced_group shuffle tests - test fails
- Implement common code for cooperative group tests
- Fixed compilation errror in cooperative_groups_common.hh
- Implement busy wait device function
- Reimplement tests for grid_group APIs
- Add tests for grid_group member and non-member APIs
- Refactor existing test for grid_group sync testing
- Add thread and block dimensions generators
- Add check of grid and block dimensions
- Modify doxygen comments
- Move cpu_grid.h and supporting functions to catch/include
- Use warp_size from properties in grid/block dims generators
- Fix condition for warp size 32 on AMD
- Fix cpu_grid.h for warp function tests
- Add missing include into cpu_grid.h
- Code cleanup
- Fix doxygen comments
- Add missing include in utils header

[ROCm/hip-tests commit: 22f3d9034b]
2023-07-18 12:55:00 +05:30
milos-mozetic 4c7a0c7bef EXSWHTEC-231 - Implement custom Benchmarking tool for Performance tests (#117)
- Introduce performance tests to project.
- Improve benchmarking utilities.
- Delete copy constructors from Timer and Benchmark classes.
- Disable Catch2's benchmarking functionalities.
- Address review comments and add progress bar/display output to the Benchmarking tool
- Add flushing of the buffer on the benchmark name display
- Introduce command line options.
- Add allocation type to string helper function.
- Add output modifier to Benchmark class.
- Fix invalid calculation of deviation
- Update performance_common.hh
- Resolve build error on Windows by adding include for reduce and accumulate

[ROCm/hip-tests commit: 5fbbdcae68]
2023-07-18 12:53:27 +05:30
milos-mozetic c5b57687b2 EXSWHTEC-282 - Implement Unit Tests for channel descriptor create function (#215)
- Implement basic test cases for channel descriptor API
- Fix indentation
- Refactor channel descriptor tests
- Extend the list of FormatNone types
- Implement unit test for 16-Bit Floating-Point channel descriptor
- Regroup vector types and basic types within test cases
- Add builtin types to the size/kind calculation
- Uncomment mistakenly commented tests
- Remove cout from channel_descriptor_common.hh
- Exclude 16-bit floating point tests from NVIDIA build due to the build error for hipCreateChannelDescHalf* functions
- Add doxygen comments and disable tests due to defects
- Fix errors in doxygen comments
- Rename group for channel descriptor
- Modify Copyright header comment
- Apply clang-format
- Use std::is_same_v<> instead of std::is_same<>::value to enhance readability
- Disable failed tests on external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/215

[ROCm/hip-tests commit: 262dc3d072]
2023-07-09 09:08:20 +05:30
ROCm CI Service Account 6df8431d83 SWDEV-380340 - [catch2][dtest] DynamicLoading tests migrated from direct to catch2 (#346)
Change-Id: I5f82ddd565d4e86270498d2d8b155200ce568849

[ROCm/hip-tests commit: ee95b284c3]
2023-07-09 08:55:01 +05:30
ROCm CI Service Account 15b519869c SWDEV-388833 - [catch2][dtest] g++ test migrated from dtests to catch2 (#353)
Change-Id: I6f23fa88dc6066c2c779348c245a1eb69fb807cb

[ROCm/hip-tests commit: a50aaea803]
2023-07-09 08:53:17 +05:30
ROCm CI Service Account a1346c114a SWDEV-388834 - [catch2][dtest] Kernel tests migrated from direct to catch2 (#345)
Change-Id: I8d1d7c6d5db018301cd76f2e38b5997ae91c15db

[ROCm/hip-tests commit: a461ae2fc9]
2023-07-08 20:54:42 +05:30
milos-mozetic 1bb4348c3b EXSWHTEC-224 - Test cases ID clean up and documentation for Execution Control (#85)
- Test cases ID clean up and documentation for Execution Control
- Update config_nvidia_linux_common.json
- Disable test which failed on external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/85

[ROCm/hip-tests commit: e103027f81]
2023-07-08 20:50:41 +05:30
ROCm CI Service Account 011b44b482 SWDEV-393910 - Port gfx940 changes to mainline. (#321)
Change-Id: I77e70bcb15fbd38b1c79c1f68b7e483b2b3e0daf

[ROCm/hip-tests commit: d33ccb3569]
2023-06-29 08:57:51 +05:30
ROCm CI Service Account 58afea607c SWDEV-398174,SWDEV-398655,SWDEV-402054 - Fix runKernelForDuration() for Windows (#333)
Change-Id: If0cb99aa66a132c8228fd0a6bb56fdf644a99eae

[ROCm/hip-tests commit: a6ed21522d]
2023-06-28 21:44:30 +05:30
Mirza Halilčević 6f035718cc EXSWHTEC-103 - Implement tests for hipDrvMemcpy3D APIs (#56)
- Implement basic behavior checks in all copy directions
- Implement synchronization behavior checks for expected behavior based on cuda docs
- Implement positive tests for zero sized width and/or height copies, where no copy is expected to happen
- Implement negative parameter tests
- Implement all of the above for hipDrvMemcpy3D and hipDrvMemcpy3DAsync.
- Disable failing tests on AMD.
- Fix copyright disclaimer.
- Add defect issue numbers.

[ROCm/hip-tests commit: c695f1b146]
2023-06-28 20:16:25 +05:30
milos-mozetic 84f4cb0bc1 EXSWHTEC-224 - Test cases ID clean up and documentation for Initialization&Version (#83)
- Test cases ID clean up and documentation for Initialization and Version

[ROCm/hip-tests commit: 1af95c5a2a]
2023-06-28 15:46:40 +05:30
Mirza Halilčević 498662a131 EXSWHTEC-98 - Implement tests for hipMemcpy3D APIs (#55)
- Implement tests for hipMemcpy3D APIs
- Implement basic behavior checks in all copy directions
- Implement synchronization behavior checks for expected behavior based on cuda docs
- Implement positive tests for zero sized width and/or height copies, where no copy is expected to happen
- Implement negative parameter tests
- Implement all of the above for hipMemcpy3D and hipMemcpy3DAsync.
- Disable failing tests on AMD.
- Fix copyright disclaimer.

[ROCm/hip-tests commit: 113a36c0eb]
2023-06-28 12:50:42 +05:30
ROCm CI Service Account be8a0d7d2c SWDEV-389689 - Rework oversubscription test to use threads instead of process. Also consider system memory when oversubscribing (#317)
Change-Id: If063552e9e2815f07e944259237310f6fef37ad5

[ROCm/hip-tests commit: 329a350ec0]
2023-06-28 12:47:48 +05:30
milos-mozetic 16eee59975 EXSWHTEC-224 - Test cases ID clean up and documentation for Device Memory Access (#88)
- Test cases ID clean up and documentation for Device Memory Access
- Added group for deprecated Context Management

[ROCm/hip-tests commit: 15c91808cc]
2023-06-28 09:47:04 +05:30
milos-mozetic 86a80099b5 EXSWHTEC-224 - Test cases ID clean up and documentation for Error Handling (#72)
- Test cases ID clean up and documentation for Error Handling

[ROCm/hip-tests commit: 93751460f7]
2023-06-28 09:45:53 +05:30
milos-mozetic b2829b49de EXSWHTEC-224 - Test cases ID clean up and documentation for Event Management (#71)
- Test cases ID clean up and documentation for Event Management

[ROCm/hip-tests commit: 3969e4a320]
2023-06-28 09:45:15 +05:30
milos-mozetic a8f65237eb EXSWHTEC-224 - Test cases ID clean up and documentation for Device Management (#70)
- Test cases ID clean up and documentation for Device Management
- Adjust doxygen comments to fix bugs
- Adjust defgroup comments for test modules

[ROCm/hip-tests commit: d0295c4295]
2023-06-28 09:44:00 +05:30
ROCm CI Service Account 1a351b31f4 SWDEV-393637 - Standardize the way to implement wait mechanism (#316)
Change-Id: I59027667806878191f9c641f27ce47e6f85ba40c

[ROCm/hip-tests commit: 5f4af7cde4]
2023-06-21 21:27:36 +05:30
ROCm CI Service Account 2ff66ee54b SWDEV-360437 - use hipGetLastError() correctly (#295)
removing the unnecessary hipGetLastError since its interfering with subsequent tests

Change-Id: I6f78a265dd7e55c7ac48913eb68be266f9163df5

[ROCm/hip-tests commit: 849cd91612]
2023-06-21 16:00:20 +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 3048c339ab SWDEV-366138 - Add surface tests (#309)
Add surface tests
Optimize some codes
Change-Id: I1691b81d597bfd722d561778f919ebf8ca530e89


[ROCm/hip-tests commit: 2337705b55]
2023-06-20 16:33:37 -07:00
ROCm CI Service Account 85129ca201 SWDEV-399416 – remove wiki link (#299)
Remove wiki link from hip_texture_helper.hh

Change-Id: I97116cfdc6f8fc71f0eabc388117921eb12028d7

[ROCm/hip-tests commit: 7c56699b2b]
2023-06-19 22:11:16 -07:00
ROCm CI Service Account f97fcfb153 SWDEV-384938 - [catch2][dtest] Warp shuffle function support for half datatypes (#226)
Change-Id: I8fb3f26f51894eaea7824111e3f69deb5da3dde3


[ROCm/hip-tests commit: 3d63316327]
2023-05-09 21:47:47 -07:00
Maneesh Gupta 76bf03c9c7 SWDEV-1 - Fix warnings while building tests (#201)
Change-Id: I7faf3446f8c9dafbbfc6bab4c6c1b756f0e4219d

[ROCm/hip-tests commit: ac4267e21e]
2023-03-14 21:42:20 +05:30
ROCm CI Service Account ff8637c332 SWDEV-383201 - Sync for two memory tests (#184)
Unit_hipMemcpy_Positive_Synchronization_Behavior
Unit_hipMemcpyHtoD_Positive_Synchronization_Behavior

Change-Id: Ia0d188d93fde99b4400a6b5ab60fcde969c2405d

[ROCm/hip-tests commit: ce788b3cef]
2023-03-06 16:57:29 +05:30
ROCm CI Service Account afd5fd4446 SWDEV-382074 - Check for peer access. (#169)
Change-Id: I8b931a92fc97c68556d74332984ddf17c53df7d4


[ROCm/hip-tests commit: 92f0da368f]
2023-02-27 21:20:57 -08:00
ROCm CI Service Account 9b44d48a42 SWDEV-352540, SWDEV-352480, SWDEV-351985 - updating gfx11 check (#164)
Change-Id: Ibb0b80463d1316019599cf83462d41196490ea3d


[ROCm/hip-tests commit: df911a7119]
2023-02-13 14:10:31 -08:00
ROCm CI Service Account abfb3f99a5 SWDEV-362512 - Use macro to check NV or AMD. (#161)
Change-Id: If55a25dded52110f55d6c60cdbf0030378e5dd8b


[ROCm/hip-tests commit: 5e90a5e386]
2023-02-09 13:29:44 -08:00
Mirza Halilčević 848418ec9b EXSWHTEC-69 - Implement tests for hipMemRangeGetAttributes (#51)
- Negative parameter tests for hipMemRangeGetAttribute and hipMemRangeGetAttributes
- Validate the behavior of hipMemRangeGetAttribute for hipMemRangeAttributeReadMostly
- Validate the behavior of hipMemRangeGetAttribute for hipMemRangeAttributePreferredLocation
- Validate the behavior of hipMemRangeGetAttribute for hipMemRangeAttributeLastPrefetchLocation
- Validate the behavior of hipMemRangeGetAttribute for hipMemRangeAttributeAccessedBy
- Validate the behavior of hipMemRangeGetAttributes

[ROCm/hip-tests commit: 203b994230]
2023-01-17 17:27:58 +05:30
music-dino 8237f2a7cd EXSWHTEC-74 - Implement tests for hipMemcpy and derivatives (#15)
- Basic positive tests
- Negative parameter tests

[ROCm/hip-tests commit: f5eb0da5c1]
2023-01-17 12:25:43 +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
milos-mozetic 32f354cb2d EXSWHTEC-200 - Create documentation detailing groups of tests (#5)
- Customized Doxygen configuration named DoxyfileTests is added, as well as separate header file used for definition of test groups.
- Add support for TEMPLATE_TEST_CASE preprocessing
- Extend the PREDEFINED list to define all macro names to include #if and #ifdef sections in documentation

[ROCm/hip-tests commit: 4dc52105c0]
2022-12-29 13:15:34 +05:30
arjun-raj-kuppala a063d591ad Create jenkinsfile (#3)
[ROCm/hip-tests commit: b177875344]
2022-12-14 17:28:10 +05:30
music-dino 02c8a5783e EXSWHTEC-81 - Implement tests for hipGetSymbolAddress and hipGetSymbolSize (#3002)
- Implement negative tests for hipGetSymbolAddress
- Implement negative tests for hipGetSymbolSize
- Reimplement positive test for both apis
- Expand positive test with memcpy to and from symbol
- Disable test sections that cause a segfault in CUDA

[ROCm/hip-tests commit: bcdb3a7ece]
2022-11-30 17:28:13 +05:30
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 3d05214ace SWDEV-360437 - fix tests with hipGetLastError() (#3040)
Unit_hipFreeImplicitSyncDev*
Unit_hipFreeImplicitSyncHost*
Unit_hipFreeImplicitSyncArray*
Unit_hipStreamCreateWithFlags_DefaultStreamInteraction
Unit_hipStreamSynchronize_NullStreamAndStreamPerThread

Change-Id: I382cf13bfe15bd8b1af657bdbb8c4f9043ea6f17


[ROCm/hip-tests commit: acf7e3580b]
2022-10-31 17:38:26 -07:00
Rakesh Roy 624d6bbdce SWDEV-361590 - Fix Palamida scan issue (#3020)
- Don't use  code from Wikipedia (prohibited sources)

[ROCm/hip-tests commit: e7203b9706]
2022-10-25 09:08:18 -07:00
music-dino 39c86475c1 EXSWHTEC-94 - Implement helper classes and functions for memory tests (#2978)
- Implement helper classes and functions for memory tests
- Remove c++14 standard constraint on memory tests
- Remove GenerateLinearAllocationFlagCombinations until finished

[ROCm/hip-tests commit: 77bc96131b]
2022-10-12 08:30:51 +05:30
Paulius Velesko 65a428aaff Catch2 Test Fixes (#2961)
* test fixes

* address PR comment

* PR comment fixing Nvidia pass

* add additional kernel launch checks

* pr comments


[ROCm/hip-tests commit: da453211ed]
2022-09-30 15:07:25 -07:00
Mirza Halilčević 55ad764e70 EXSWHTEC-5, EXSWHTEC-7 - Implement abstraction for multithreaded tests (#2887)
* Implement abstraction for multithreaded tests.

Signed-off-by: Dino Music <dino.music@htecgroup.com>
Co-authored-by: Mirza Halilcevic <mirza.halilcevic@htecgroup.com>

[ROCm/hip-tests commit: 960f396180]
2022-09-19 20:54:45 +05:30
ROCm CI Service Account 55da06237e SWDEV-349490 - Add unit test of sRGB (#2940)
Add unit test of sRGB.
Update helper functions to accomodate uchar4 and float4.
Change-Id: Ib604cf603ab63b908130ef1c562c53d42328bacf


[ROCm/hip-tests commit: 30fcb99268]
2022-09-15 21:04:57 -07:00
agunashe 90a98d2813 SWDEV-344154 - infrastructure to skip tests for different archs (#2850)
Change-Id: Id3bda440c4cd920ce18c14d06e2f2c6ab6346de3

[ROCm/hip-tests commit: 77307513ae]
2022-08-17 17:10:52 -07:00
ROCm CI Service Account a3433c458c SWDEV-348686 - Add extension on windows platform for executable path. (#2845)
Change-Id: Id7a9b6ec49e8f210b0a74b5f5fd68d584f005b4e

[ROCm/hip-tests commit: a3ed68d072]
2022-08-05 12:19:24 +05:30
Anton Mitkov 75bd4a8bcf EXSWCPHIPT-118 - Added testing for hipMemset Synchronous behavoiour. (#2750)
[ROCm/hip-tests commit: 871c75e8f0]
2022-08-04 10:35:21 +05:30
Dylan Angus 4a96554d63 Extending hipMallocManaged tests (#2670)
* Extending hipMallocManaged tests

* Fixed compilation error

* Added tests skips for hipMallocManaged tests on devices that don't support managed memory

* Removed unused stream


[ROCm/hip-tests commit: 4b07ea6125]
2022-07-28 20:05:27 -07:00
ROCm CI Service Account 51feb62db0 SWDEV-329789 - ported MultiThread Test to catch2 (#2800)
Change-Id: Ic23244ed150c7e35188e30eee70e58438472bd45

[ROCm/hip-tests commit: 5a7d362eef]
2022-07-19 20:09:07 +05:30