Commit Graph

48 Commits

Author SHA1 Message Date
Sang, Tao ec8ff45a1d SWDEV-514141 - Fix zero clock rate issues (#4)
1.Remove clock functions from some tests that don't need them.
2.In some memory pool tests and coherency tests, timer-based kernel
delay isn't reliable, use pinned host based notification instead.
3.Add CHECK_PCIE_ATOMICS_SUPPORT before some tests.
4.catch/unit/memory/hipMemoryAllocateCoherent.cc is removed
as it is useless and originally excluded in building.
5.Some tests can still pass even if clock rate =0, thus they
  will be kept as is.
6.Some logic and format improvement in some tests.

Change-Id: I6b3c6bf54c61cffd45cd6f17c75998f751b75725
2025-06-11 21:11:25 +05:30
Sang, Tao c4284d50c5 SWDEV-537473 - Fix missing KERNELS_PATH (#273) 2025-06-11 19:44:36 +05:30
Belton-Schure, Aidan 6fbcc0726f SWDEV-482125 - fix Unit_Rtc_MathFunctions_header (#270) 2025-06-10 22:52:50 +05:30
taosang2 f581518103 SWDEV-447973 - Add generic target codeobj test
Add simple tests to verify generic target code
objects.

Change-Id: Iae148c3c938b18247624938512918dbb3cbc462e
2025-03-10 17:45:14 -04:00
Vladana Stojiljkovic 9893726343 SWDEV-453145 - Enable _sync tests on nvidia
* _sync tests that use warp match functions (__match_any_sync and __match_all_sync) were disabled for nvidia because those functions are supported only on devices with compute capability 7.x or higher. In this solution, tests are always build (with specifying appropriate compile flag) and in in the runtime it is decided weather they should be skipped or not.

Change-Id: Ifa9e55f3b47aa3a00027cb986cd6ae46aed45ebd
2024-12-03 13:49:16 -05:00
Vladana Stojiljkovic 70a7d3ab8b SWDEV-486969 - Add macros for capturing sync APIs
Change-Id: I6d348c8b34b29021c281c32aa5a636960e234ccb
2024-11-04 03:52:51 -05:00
Marko Arandjelovic aac7b29d78 SWDEV-487395 - Add macros for capturing async APIs
Change-Id: Id8647a05f3f483792d9224aaf8a2488c2498c0ba
2024-10-21 09:09:20 -04:00
Vladana Stojiljkovic 5b67a2a4a0 SWDEV-450735 - Add compiler option for using clock64
Change-Id: I9efed88d691ee1b2b4465286b3340b820f7bf627
2024-08-29 10:26:11 +02:00
Ioannis Assiouras 5e26ec0bb1 SWDEV-474159 - Query max LDS in Unit_hipDynamicShared
Change-Id: Ie78613ea1a87d69aff4f764368ea7a1893e021f5
2024-07-17 22:17:20 +01:00
taosang2 de9581efb6 SWDEV-465162 - Support ignored error
Modified
TestContext::finalizeResults()

Added
HIP_CHECK_IGNORED_RETURN()
HIP_CHECK_ERRORS()

to supported ignored error such as hipErrorNotSupported.

Enable all mipmap tests in catch2 memory folder for linux.
The issues in the following tickets should be fixed.
SWDEV-465162, SWDEV-465163, SWDEV-465165, SWDEV-465166,
SWDEV-465168, SWDEV-465171, SWDEV-465172

Change-Id: I1146d6184582a7111a5af25b52f9e12c6a160e49
2024-07-16 14:44:06 -04:00
sdashmiz ee6bbb0004 FEAT-60269 - Test for large LDS
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I8f476f1b44324fffcc25423209a632caeb48cb99
2024-07-08 12:07:14 -04:00
Sameer Sahasrabuddhe 53f0a9bd01 SWDEV-453422: introduce warp sync tests
The following builtins are tested:

  - __all_sync, __any_sync, __ballot_sync and __activemask
  - __match_any_sync and __match_all_sync
  - __shfl_sync, __shfl_up_sync, __shfl_down_sync, and __shfl_xor_sync

The tests for shfl (all variants) were manually validated on a CUDA setup.

NOTE:

  - Unit_hipVoteSync_All temporarily disabled on Windows (SWDEV-452308).
  - All new tests temporarily disabled on CUDA (SWDEV-453145).

Change-Id: I84b205a88aa24219d199c760793e2f19f0cf8f13
2024-05-03 08:58:23 -04:00
Dino Music 111497351d EXSWHTEC-289 - Implement tests for remainder and rounding device math functions #234
Change-Id: I8413cfeb0cbf32e2e8369c5b1527c9794a595688
2024-02-23 20:46:17 +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
Mirza Halilcevic f24d2dd934 EXSWHTEC-265 - Implement Tests for Atomic Exchange (#196)
Change-Id: I4d332dcaad2d0a788b6711f5be05ca6d61a9e34b
2023-12-20 10:22:01 +00:00
sdashmiz e161374c31 SWDEV-332969 - [ABI Break]remove hiparray from tests
- replace with hipArray_t

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ie1dade58d868182309caf00bf65a86a8fed2cfa6
2023-10-12 12:09:20 -04:00
Jatin Chaudhary fe4891ad52 SWDEV-412457 - use proper headers for functionality used in hip-tests
Change-Id: I2ca20c17b4732638bf05e66196c500c5d25de3b2
2023-09-26 05:45:55 -04:00
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 a6ed21522d SWDEV-398174,SWDEV-398655,SWDEV-402054 - Fix runKernelForDuration() for Windows (#333)
Change-Id: If0cb99aa66a132c8228fd0a6bb56fdf644a99eae
2023-06-28 21:44:30 +05:30
ROCm CI Service Account 5f4af7cde4 SWDEV-393637 - Standardize the way to implement wait mechanism (#316)
Change-Id: I59027667806878191f9c641f27ce47e6f85ba40c
2023-06-21 21:27:36 +05:30
ROCm CI Service Account df911a7119 SWDEV-352540, SWDEV-352480, SWDEV-351985 - updating gfx11 check (#164)
Change-Id: Ibb0b80463d1316019599cf83462d41196490ea3d
2023-02-13 14:10:31 -08:00
ROCm CI Service Account 5e90a5e386 SWDEV-362512 - Use macro to check NV or AMD. (#161)
Change-Id: If55a25dded52110f55d6c60cdbf0030378e5dd8b
2023-02-09 13:29:44 -08:00
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 acf7e3580b SWDEV-360437 - fix tests with hipGetLastError() (#3040)
Unit_hipFreeImplicitSyncDev*
Unit_hipFreeImplicitSyncHost*
Unit_hipFreeImplicitSyncArray*
Unit_hipStreamCreateWithFlags_DefaultStreamInteraction
Unit_hipStreamSynchronize_NullStreamAndStreamPerThread

Change-Id: I382cf13bfe15bd8b1af657bdbb8c4f9043ea6f17
2022-10-31 17:38:26 -07:00
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
Anton Mitkov 871c75e8f0 EXSWCPHIPT-118 - Added testing for hipMemset Synchronous behavoiour. (#2750) 2022-08-04 10:35:21 +05:30
Dylan Angus 4b07ea6125 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
2022-07-28 20:05:27 -07:00
ROCm CI Service Account 5a7d362eef SWDEV-329789 - ported MultiThread Test to catch2 (#2800)
Change-Id: Ic23244ed150c7e35188e30eee70e58438472bd45
2022-07-19 20:09:07 +05:30
ROCm CI Service Account 0fc518d281 SWDEV-333188 - Port image tests to catch2 (#2793)
- Port image tests to catch2.
- Disable 3D filter test for gfx9a.
- Some other improvement
- Temporarily disable linear filter tests on Windows

Change-Id: Ieeddac9f8c50aa9b6b12ca9d8fd792a51973b8ca
2022-07-19 19:26:56 +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
Fábio f04fdbd0f7 EXSWCPHIPT-42 - Add HIP RTC support to the test framework (#2719)
* EXSWCPHIPT-42 - Add HIP RTC support to the test framework
* Removed ifdef from hipTestContext class
2022-06-13 15:35:02 +05:30
Finlay 205107aa3c hipMallocArray tests for default array and surface load store (#2675) 2022-05-25 16:13:18 +05:30
Finlay 99a23cfd45 Updated negative tests for hipStreamGetPriority (#2517) 2022-05-25 11:50:59 +05:30
ROCm CI Service Account b49e8e9fdf SWDEV-228443 - Enhancing hip unit tests for Memory Allocation APIs (#2616)
Adding new testcases for hipMalloc3D,hipMalloc3DArray,
hipArrayCreate,hipMallocPitch and hipMallocArray APIs

Change-Id: Ia2cc8865d605272995aaf703dd26954d11ded2ea
2022-05-17 15:01:15 +05:30
ROCm CI Service Account 70ccfa39ad SWDEV-305992 - Improve texture tests (#2646)
Enable more texture supports for hip-rocclr.
Skip texture tests on device that doesn't support images.
SWDEV-322257 - Fix issues of image tests skipped on
NVidia devices.

Change-Id: Ia99d06b1e97fc945f1b740e47710f4dcd70f38ca
2022-05-09 08:46:20 -07:00
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
Maneesh Gupta 1d15e18e30 Revert "SWDEV-289405 - [catch2][dtest][module] Migration of Module files to CATCH2 framework (#2351)" (#2354)
This reverts commit 4e1a3ff850.
2021-09-20 10:47:52 +05:30
dkrottap 4e1a3ff850 SWDEV-289405 - [catch2][dtest][module] Migration of Module files to CATCH2 framework (#2351)
Migrated all module related files to CATCH2 framework and optimized to
have single module kernel file

Change-Id: I39aa28ef22c1b2f4d0014ca32b59b9c645b725dc
2021-09-17 11:39:36 +05:30
DURGESH KROTTAPALLI 18591bc68f SWDEV-292393 - [catch2][dtest] Tests for hipMemcpy related apis.
Migrated all hipMemcpy related APIs to CATCH2 framework by optmizing
the code and moving the stress related tests to stress folder.

Change-Id: Id47669b49304c35d1a68fabdaaf3f6e3ab0428a5
2021-07-31 00:48:43 +05:30
Satyanvesh Dittakavi 8093223eec SWDEV-289401 - Catch2 tests for hip event APIs
Change-Id: I7c28f842282e07c21656fb92ddbb1a9ad32d752c
2021-07-30 07:15:00 -04:00
Jatin Chaudhary 46fb008ba6 SWDEV-289409 - Add hiprtc tests
Change-Id: Ib26527b704aed32ae3f3ed38bf6e2fd412462c8e
2021-07-22 00:34:53 -04:00
agunashe e2c6bb5b4e SWDEV-293742 - Update copyright end year
Change-Id: I2cb7bbd9a6d9da28116ba9dd9cec4e60525444e2
2021-07-07 12:57:23 -04:00
Sarbojit Sarkar 617f19e6d9 SWDEV-291783 - Catch2 tests for some of Stream APIs
Change-Id: I656fc59184863ef142cf89d7541982492f6b8484
2021-07-01 01:02:06 -04:00
cjatin 068e1f5043 SWDEV-289409 - Add first batch of device tests, add new exe, helper functions and update test Guidelines
Change-Id: I71929caf44725ba2cab7a6f0224bc37b9d04bcbb
2021-06-23 00:51:50 -07:00
Jatin Chaudhary da360c2aab SWDEV-277697 - [CatchTest] Fix Documentation, Add test to AMD specific, Add HIP Macros, New Binary for multiproc tests
Change-Id: I3783caf85c694b724ed55b778220b8ef9a39f84b
2021-05-25 07:12:54 -04:00
cjatin be6809d8d1 SWDEV-277697 - Adding Infra and dependent libs: Catch2 and json parser, for new HIP Testing framework
Change-Id: Iedfa041ec9acc13eeb631ff67e1677e2fe29463d
2021-05-19 00:47:00 -04:00