Commit Graph

1086 Commits

Author SHA1 Message Date
Manocha, Rahul b215381bbe SWDEV-538600 - Fix error code checks in some tests (#305) 2025-06-19 21:11:54 +05:30
Sang, Tao 6c60fcafd8 SWDEW_516488 - Fix possible atomics tests' failures (#292) 2025-06-14 05:33:25 +05:30
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
Venkatesh, Anavena 6e2c871652 Test cases for Fp4 and fp6 coversion apis (#169) 2025-06-10 21:29:06 +05:30
Swargam, Rambabu f7712bd5a8 SWDEV-493276 - [catch2][dtest] Additional tests for Scratch limit change (#46)
* SWDEV-493276 - [catch2][dtest] Additional tests for Scratch limit change

* Removed the Kernel wait related scenarios

* Modified kernel operation

* Fixed PSDB NVIDIA build issue

* Restricted for Windows

* Used isSetScratchLimitSupported for all tests and modified isSetScratchLimitSupported
2025-06-10 21:25:06 +05:30
Brzak, Branislav 90d7eea054 SWDEV-534689 - Remove Unit_hipLaunchCooperativeKernelMultiDevice_Streams (#209) 2025-06-04 19:52:16 +05:30
Gollamandala, Srinivasarao 60b3aae3c0 SWDEV-526022-[catch2][dtest]-Functional and Negative tests for hipLaunchKernelExC, hipLaunchKernelEx and hipDrvLaunchKernelEx APIs (#156)
* Fntl tests of hipLaunchKernelExC, hipLaunchKernelEx and hipDrvLaunchKernelEx APIs

* Fixed the test failures on windows
2025-06-03 14:37:25 +05:30
Belton-Schure, Aidan ef6c95f6ce SWDEV-527851 SWDEV-527890 SWDEV-529456 - Update vector types test (#172)
* Update vector types test

* update MakeVector to be host+device function

* Add regression testing

* Add tests for subscript operator

Change-Id: Ifac85aaa6cd6d6bd96c4239414e38f284e2a2d54

* Fix unused vars

Change-Id: I6bc2da76dbf962db5d75ea5a84bf16b66f8ba6ba

---------

Co-authored-by: Aidan Belton <abeltons@amd.com>
2025-05-29 21:38:20 +05:30
Manocha, Rahul ea8a7e1e54 SWDEV-460098 - Fix error codes for hipLaunchKernel APIs to match cuda (#206)
Co-authored-by: Branislav Brzak <branislav.brzak@amd.com>
2025-05-29 13:20:49 +05:30
Dittakavi, Satyanvesh 1be3aa8283 SWDEV-508973 - Fix the catch tests failures due to change in kernel validation error codes to match CUDA (#198) 2025-05-26 18:41:58 +05:30
Arandjelovic, Marko 74e743dcb9 Remove ifdef guards in VMM tests (#196) 2025-05-22 20:49:57 +05:30
Assiouras, Ioannis d1e6f076e2 SWDEV-508965 - Remove references to HIP_MEMSET_NODE_PARAMS struct (#195) 2025-05-22 13:08:36 +05:30
Assiouras, Ioannis 99f0083a64 SWDEV-533235 - Fix reference counting in Unit_hipGraphUserObj_ClonedGraph (#189) 2025-05-21 09:31:39 -07:00
Assiouras, Ioannis 3b98cef62a Remove invalid section that passes a destroyed stream in Unit_hipMemcpyPeerAsync_Negative_Parameters 2025-05-20 20:32:35 +01:00
Godavarthy Surya, Anusha 161ecddafe SWDEV-519722 - Update test to work on MGpu machines without P2P access (#145) 2025-05-14 20:52:58 +05:30
Andryeyev, German 0b1eed5acd SWDEV-497841 - Add max alloc test for MemPool (#108)
Stress mempool with a lot of big memory allocations.
The test requires >30MB of free memory.
2025-05-14 20:52:41 +05:30
GunaShekar, Ajay 86eb49aa7f SWDEV-527806 - hip-tests . Add P2P checks for mGPU atomics tests (#168) 2025-05-14 20:49:01 +05:30
Arandjelovic, Marko 552ed6125e Remove SetGetCacheConfig tests as APIs are not implemented (#84) 2025-05-14 16:27:05 +02:00
Arandjelovic, Marko 974d47ad8d SWDEV-525066 - Enable hipDeviceGetGraphMemAttribute functional tests (#71) 2025-05-14 16:06:23 +02:00
Hernandez, Gerardo 001affc6ae SWDEV-420237 - Add tests for reduce sync operations (#102) 2025-05-14 11:57:05 +01:00
Gollamandala, Srinivasarao d9cb3c7fb1 SWDEV-514396-[catch2][dtest]-Delay the hipUserObjectRelease (#68) 2025-05-13 22:16:15 +05:30
Sang, Tao 5a33b33ec8 SWDEV-508863 - Add generic target in compressed fatbin test (#28)
Change-Id: Iae148c3c998b18247624938512918dbb31bc462d
2025-05-13 09:34:30 -04:00
Sang, Tao 63c545989b SWDEV-521083 - Fix __hip_atomic_fetch_max/min() issues (#81)
Fix __hip_atomic_fetch_max/min() issues in float types
2025-05-13 15:10:09 +02:00
Arandjelovic, Marko dec3869d6d SWDEV-499927 - Enable Virtual Memory tests on NV platform (#79) 2025-05-13 00:21:38 +02:00
GunaShekar, Ajay fd8833cc83 SWDEV-522333 - hipDeviceGetPCIBusId relax format sizes (#33) 2025-05-12 12:50:34 -07:00
Patel, Jaydeepkumar 8abcd95564 SWDEV-521135 - Remove Unit_UUID_setEnv_Thread_Lock and correct uuidList.cc (#31) 2025-05-12 17:00:46 +05:30
Xie, Pengda 0c1a7bf155 SWDEV-514841 - Remove invalid stream tests on AMD platform 2025-05-08 16:25:23 -07:00
Huang, AnZhong 2c800b120d SWDEV-527299 - Support HIP_POINTER_ATTRIBUTE_CONTEXT (#122)
Removed this verification, as HIP_POINTER_ATTRIBUTE_CONTEXT will be supported.
2025-05-08 11:35:48 +05:30
Brzak, Branislav 3f30d6d8ea SWDEV-515519 - Synchronize after mem pool trim (#89) 2025-04-30 16:09:15 +02:00
GunaShekar, Ajay 52e72e9e00 SWDEV-524925 - hip-tests build with custom hip (#65) 2025-04-29 08:51:04 -07:00
Sang, Tao 7bc6eda321 SWDEV-507388 - Check image support. (#6)
Change-Id: Ieda106374eb066cd22ddd1194a9f9b1352c26d16
2025-04-23 21:20:13 +05:30
Stojiljkovic, Vladana 0d72e7fc8f SWDEV-511290 - Remove invalid Unit_hipMemSetAccess_MapPhysChksFromMulDev test (#93)
Co-authored-by: agodavar_amdeng <Anusha.GodavarthySurya@amd.com>
2025-04-15 17:28:20 +02:00
Xie, Jiabao(Jimbo) e25680e4d1 SWDEV-501675 - disable Unit_hipMalloc_AllocateMoreThanTotalRAM (#63)
Unit_hipMalloc_AllocateMoreThanTotalRAM is an invalid test. hipMalloc is able to allocate more than RAM size if VRam is larger, unless the test is meant to only allocate on host device.
Previously this test may have passed because of an incorrect check on hipMalloc limit: we had incorrectly limited allocation to physical ram size. This is no longer correct. We could always allocate Vram limit or sometimes system ram limit if Vram is full, fixed in https://github.com/AMD-ROCm-Internal/clr/pull/122

Co-authored-by: Jimbo Xie <jiabaxie@amd.com>
2025-04-03 11:35:38 -04:00
Brzak, Branislav 902988494e SWDEV-516564 - SWDEV-512817 - Remove mentions of gfx940 and gfx941 (#30) 2025-03-19 15:42:18 +01:00
Ioannis Assiouras bc055cc2b7 SWDEV-516180 - Skip OpenGL tests on devices with no image support
Change-Id: Ic7a86fa2cf9c1072ab3d08f4346764a3bef7d415
2025-03-11 10:45:53 -04:00
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
German Andryeyev 168312b97f SWDEV-497841 - Change the validation condition
The test wrongly assumed that the reserved memory should always
be equal to the allocation size. However, suballocations are possible

Change-Id: I1d1f3c3cdb231188f8b35ed64ffe4e2a3a2f16f9
2025-03-10 15:49:10 -04:00
Aidan Belton-Schure 714cc594e7 SWDEV-514965 - Free leaking memory in kernel tests
* This also removes test that is invalid on GPUs
  - As it requires releasing memory on the device (which it does not do)
  - Copying back the kernel argument to the host
  - It is also a NO-OP as the queue has no pushes to pop

Change-Id: I8050cd400d34f78d5afce71bf0e3d57d1878bef0
2025-03-10 05:07:19 -04:00
Jaydeep Patel c0fc5426e5 SWDEV-511890 - Use max grid dim from device prop like block dim in checking for corner cases.
Change-Id: I557c70186b4a695b7c151952bf8cfd8dae54eb20
2025-03-10 00:55:15 -04:00
Tao Sang 94eea4db59 SWDEV-505853 - Fix Unit_hipMemPoolApi_BasicAlloc in mgpu
Unit_hipMemPoolApi_BasicAlloc expects to work on device 0, but other
tests will set not-0 devices in mgpu. This leads to hang of
Unit_hipMemPoolApi_BasicAlloc. Fix by set device 0 in head code
of Unit_hipMemPoolApi_BasicAlloc.

SWDEV-508872 - Fix Perf_hipPerfMemFill_test

When mem size is 2G, the test is so slow that it looks like stuckness.
Set top mem size to 1G can make the test pass in an acceptiable time.

Change-Id: Ie26dbf597e5ba8cb898d1aae5ed5ecf0267c3228
2025-03-07 14:52:10 -05:00
Julia Jiang 6b5a5dde28 SWDEV - 508961 - Update requestedHandleType in hip-tests repos
Change-Id: I5d8a1ae1d36ecdf2786dbd8a6e83c3692592efb6
2025-03-06 11:38:14 -05:00
Ioannis Assiouras d33a0fa75a SWDEV-518423 - Remove incorrect Unit_hipMemSetAccess_AccessDirectlyFromHost test
The test sets the hipMemCreate and hipMemSetAccess properties
to device but accesses the mapped memory directly from the host.

Change-Id: I2ae51a2658acc01aff39fc371ba97191cc9b3878
2025-03-06 11:31:35 -05:00
Ioannis Assiouras cfb6a08bc0 SWDEV-516461 - Skip hipmemcpy call to device dst that is freed, for xnack
Change-Id: Icd08675de881e70054e2ba7be17c62d095d33d8c
2025-03-06 11:26:18 -05:00
Aidan Belton-Schure 674ed47852 SWDEV-489364 - Free memory in hipAPIStreamDisable
Change-Id: I4f740fe803bcc4bbf57865173d92c567de65fdbb
2025-03-06 04:07:21 -05:00
Marko Arandjelovic 7ef404621e SWDEV-441296 - Add unit test for hipTexObjectCreate
Change-Id: Ibfc2c910a54ccd1686a3939a1008c472a8465137
2025-03-05 12:10:14 -05:00
taosang2 f6471c5b2c SWDEV-507141 - Make some buffered print tests shorter
Change-Id: I651c25f011c24d2192c62596722b8fddc581655b
2025-03-05 11:33:55 -05:00
taosang2 1a7df073ba SWDEV-501963 - Add missing codes for gfx950
Change-Id: I6b3c6bf54c61cffd44cd6f17b75998f751b75724
2025-03-05 08:18:22 -05:00
Jaydeep Patel b42adb24b4 SWDEV-457316 - Fix tests to use graph's reserve memory instead of hipMemGetInfo.
Change-Id: I839aaec3f502ed8686651fdc05b71c0da3e5dea2
2025-03-05 00:48:15 -05:00