Commit-Graf

346 Incheckningar

Upphovsman SHA1 Meddelande Datum
Assiouras, Ioannis 5283a114b2 SWDEV-549309 - Ensure that the kernel is issued to a stream that is ass… (#552)
* SWDEV-549309 - Ensure that the kernel is issued to a stream that is associated to the current device

* SWDEV-549309 - Ensure that the kernel is issued to a stream that is associated to the current device in atomic tests

* SWDEV-549309 - Added fix for Unit_hipMallocFromPoolAsync_Multidevice_Concurrent test

* SWDEV-549309 - Added fix for Unit_hipMemcpyPeerAsync_Positive_Default

* SWDEV-549309 - Added fix for Unit_hipStreamAttachMemAsync_Positive_AttachGlobal and Unit_hipGetProcAddress_GraphAPIs_AddMemsetMemcpyNodes

[ROCm/hip-tests commit: d21a95cea8]
2025-08-14 11:50:56 +05:30
Hernandez, Gerardo b8ef4025e2 SWDEV-534207 - solve phoenix mem test failures (#218)
* make sure symbolStatus after hipGetProcAddress() is the expected in the tests that are failing on Phoenix
* fix that calls to hipMemset2DAsync() and hipMemset2DAsync_spt() to set values on submatrices where not taking into account the pitch, causing test failures on Phoenix
* before testing whether hipMemset2DAsync() works, initialize the whole matrix to a known value. This makes sure the test fails even if the uninitialized memory returned after hipMallocPitch() happens to have the expected value
* Sbefore testing whether hipMemset2DAsync_spt() works, initialize the whole matrix to a known value. This makes sure the test fails even if the uninitialized memory returned after hipMallocPitch() happens to have the expected value
* fix up compiler error: dyn_hipMemset2DAsync_ptr should have been dyn_hipMemset2DAsync_spt_ptr
* when Unit_hipMalloc3D_Basic fails due to a potential memory leak, print the values that hipMemGetInfo() returns before and after the allocation/deallocation pair.
* Also print intermediate free memory
* Make sure Unit_hipMalloc3D_Basic allocates at least PalSettings::subAllocationChunkSize_ on Windows. Otherwise hipMemGetInfo() will not report an increase on available memory after hipFree() is called, as the minimum amount of memory that cause a call to the CoarseMemorySubAllocator::Create() is that chunk size
* Fix up previous commit; allocated too much memory
* skip some extent sizes in Unit_hipFreeMipmappedArrayImplicitSyncArray if allocating them would be require more memory than the actual totalGlobalMem of the device
* Do not expect an exact match when comparing the memory available memory before and after hipMalloc3D() + hipFree()
* Do not allocate more memory than the total GPU memory in Unit_hipFreeMipmappedArrayImplicitSyncArray
* fix expected available memory amount comparison in hipMalloc3D - Basic
* use SUCCEED() macro in Unit_hipFreeMipmappedArrayImplicitSyncArray to log more information when there is not enough memory for the mipmapped array to be allocated
* fix formatting

[ROCm/hip-tests commit: 4b2ed7653f]
2025-07-18 13:45:19 +05:30
Manocha, Rahul 54bf215b7d SWDEV-539145 - Fix compilation error in windows psdb (#376)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hip-tests commit: 2a0bcca07b]
2025-07-15 08:38:24 -07:00
Sang, Tao 9623281087 SWDEV-539145 - Add tests of hipHostMallocUncached, hipHostAllocUncached and hipHostRegisterUncached (#348)
[ROCm/hip-tests commit: 9499bf6d1e]
2025-07-01 10:10:25 +05:30
Manocha, Rahul 91a6727ea6 SWDEV-538600 - Fix error code checks in some tests (#305)
[ROCm/hip-tests commit: b215381bbe]
2025-06-19 21:11:54 +05:30
Sang, Tao 438882ceb7 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

[ROCm/hip-tests commit: ec8ff45a1d]
2025-06-11 21:11:25 +05:30
Assiouras, Ioannis 9e384db161 Remove invalid section that passes a destroyed stream in Unit_hipMemcpyPeerAsync_Negative_Parameters
[ROCm/hip-tests commit: 3b98cef62a]
2025-05-20 20:32:35 +01:00
Andryeyev, German 0ad7f9c137 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.

[ROCm/hip-tests commit: 0b1eed5acd]
2025-05-14 20:52:41 +05:30
Arandjelovic, Marko 563cb3112f SWDEV-499927 - Enable Virtual Memory tests on NV platform (#79)
[ROCm/hip-tests commit: dec3869d6d]
2025-05-13 00:21:38 +02:00
Xie, Pengda dd6d3a6cd3 SWDEV-514841 - Remove invalid stream tests on AMD platform
[ROCm/hip-tests commit: 0c1a7bf155]
2025-05-08 16:25:23 -07:00
Huang, AnZhong 035c860b2a SWDEV-527299 - Support HIP_POINTER_ATTRIBUTE_CONTEXT (#122)
Removed this verification, as HIP_POINTER_ATTRIBUTE_CONTEXT will be supported.

[ROCm/hip-tests commit: 2c800b120d]
2025-05-08 11:35:48 +05:30
Xie, Jiabao(Jimbo) 4ec606f1ee 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>

[ROCm/hip-tests commit: e25680e4d1]
2025-04-03 11:35:38 -04:00
Brzak, Branislav ee0e2af0e1 SWDEV-516564 - SWDEV-512817 - Remove mentions of gfx940 and gfx941 (#30)
[ROCm/hip-tests commit: 902988494e]
2025-03-19 15:42:18 +01:00
German Andryeyev 86432880c6 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


[ROCm/hip-tests commit: 168312b97f]
2025-03-10 15:49:10 -04:00
Tao Sang a697edb15b 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


[ROCm/hip-tests commit: 94eea4db59]
2025-03-07 14:52:10 -05:00
taosang2 f2ab8e53cc SWDEV-501963 - Add missing codes for gfx950
Change-Id: I6b3c6bf54c61cffd44cd6f17b75998f751b75724


[ROCm/hip-tests commit: 1a7df073ba]
2025-03-05 08:18:22 -05:00
Saleel Kudchadker 954c70ace8 SWDEV-515407 - Fix incorrect test behavior
- For H2D transfer cases, we cannot enfore ErrorNotReady behavior if the
  source is unpinned. In that case the driver can sync depending on if
it pins or stages the source buffer.

Change-Id: I436a4b667bff172cfbadc58631a46a215c40fcb1


[ROCm/hip-tests commit: d8f5c2560f]
2025-02-26 11:39:34 -05:00
Pengda Xie 272659ff99 SWDEV-514841 - Remove invalid stream tests which leads to segfault
Change-Id: I230c4ccc0d2f591cbf2cd0e019f910094f4f3f26


[ROCm/hip-tests commit: b46d6abdcb]
2025-02-21 12:08:36 +00:00
Tao Sang 2ad61701d5 SWDEV-503359 - Fix Unit_hipExtMallocWithFlags_CoherentTst
Fix Unit_hipExtMallocWithFlags_CoherentTst hang on device fine
grain access memory because host builtin atomic functions malfunctions
on it.
Fix SWDEV-507938 also.
Change-Id: Ie26dbf6b7e5aa8cb898d11ae5ed5ecf1267c3228


[ROCm/hip-tests commit: 8ea926725b]
2025-02-13 13:37:36 -05:00
Vladana Stojiljkovic 08e2b6a15d SWDEV-486969 - Reuse existing tests to verify behavior of capturing sync Memcpy APis
Change-Id: I7e94743d6957ffaadae9cff297e3f0d93f9ff806


[ROCm/hip-tests commit: 6c5468f802]
2025-01-26 07:56:32 -05:00
Tao Sang 2d122ae751 SWDEV-506090 - Fix Unit_hipMemAdvise_TstAlignedAllocMem
Change-Id: I651c25f011d24d0190c62586722b81ddc580655f


[ROCm/hip-tests commit: 5f2992a546]
2025-01-24 13:16:27 -05:00
Marko Arandjelovic 719600ccc4 SWDEV-489617 - Enable Unit_hipMemcpyAsync_Positive_Synchronization_Behavior
- Since any-host-to-any-host as always synchronous, there's no need for
separate functions
 - Removed 'return' statement as it skips the rest of the test.

Change-Id: If70e0b21ad8151311d5ac7c5de789f6265cf44b6


[ROCm/hip-tests commit: 3809d1bb75]
2025-01-22 10:54:18 -05:00
Rambabu Swargam 41cf067716 SWDEV-467854 - [catch2][dtest] Functional testcases for hipGetProcAddress API - Part 2
Change-Id: I4619f8e69b75d1193e98adce2707bf7876b1ba59


[ROCm/hip-tests commit: 7fb9301d6b]
2025-01-21 12:53:28 -05:00
Rambabu Swargam 415bd0878b SWDEV-493295 - [catch2][dtest] Adding additional tests for hipMalloc
Change-Id: I600e77ac5d07d169c34090041d2663741f3d4882


[ROCm/hip-tests commit: 274fb5d974]
2025-01-16 11:23:06 -05:00
taosang2 b543624e2c SWDEV-438503 - Enable unified memory test
Change-Id: I7bfc8600521d78d8c73ab626f9846cd268651279


[ROCm/hip-tests commit: 22485fc93f]
2025-01-13 13:49:55 -05:00
Jaydeep Patel 62c5a23f78 SWDEV-497532 - Pass correct stream to MemcpyDeviceToDeviceShell to sync.
Change-Id: I7fe2b39e49725d01e7d9ec5b4ab9927a96dc951c


[ROCm/hip-tests commit: eb894a8b8d]
2025-01-13 10:40:23 -05:00
Jaydeep Patel 2253b82046 SWDEV-504960 - Check image support.
Change-Id: Ieda106374eb066cd20ddd1194a9f9b1352c26d05


[ROCm/hip-tests commit: a7dd22f97f]
2024-12-23 01:17:02 -05:00
Rambabu Swargam 6c7ed09ca0 SWDEV-490555 - [catch2][dtest] Additional tests for hipMemcpyDtoA and hipMemcpy2DArrayToArray
Change-Id: Icd0e4c35cc0cf60f2e943c4f4da39de23a8c1e5b


[ROCm/hip-tests commit: 92b717da81]
2024-12-16 12:13:01 -05:00
Marko Arandjelovic fe9860bd47 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


[ROCm/hip-tests commit: 9cffda4ebb]
2024-12-10 10:25:08 -05:00
SrinivasaRao 5ba5ca2934 SWDEV-490555-[catch2][dtest] Functional tests for the API hipMemcpyHtoAAsync
Change-Id: I927e0907e2e2fb8316151da5b3a5ba23835412e8


[ROCm/hip-tests commit: 16c33198ba]
2024-12-09 13:49:05 -05:00
Satyanvesh Dittakavi 9cad0a4d59 SWDEV-485372 - Fix texture catch tests to run on appropriate ASICs
Change-Id: I9ef93e37eb29c3d09c6448fe95dba39fa7060464


[ROCm/hip-tests commit: d5028f0c2a]
2024-12-09 10:35:43 -05:00
Marko Arandjelovic af278efe7d SWDEV-478998 - Add unit test for hipFreeHost
Change-Id: I85235243e0014ec6bd2b6a544222fdee8f0a7c68


[ROCm/hip-tests commit: 8736cabea3]
2024-12-04 11:56:44 -05:00
Ioannis Assiouras 569a4cac67 SWDEV-500124 - Removed Unit_hipHostAlloc_AllocateUseMoreThanAvailGPUMemory
Change-Id: I549ec451df2211378f421f35abc822d02cb0af24


[ROCm/hip-tests commit: ab395147d2]
2024-11-22 13:20:50 -05:00
Pradeep Kumar Jain 9592dfe6f1 SWDEV-468258 - [catch2][dtest] hipHostAlloc API testcases
Change-Id: I04974538092ae90501f7fa90dcad09c482b1ef64


[ROCm/hip-tests commit: 33cbbc8700]
2024-11-14 23:50:44 -05:00
Michael Xie b3dcbdaaf6 SWDEV-492356 - Install hip-test artifacts into a single folder
Change-Id: Ib2a2c021e2546c0233050f11d3dc84f2ea4ff03d


[ROCm/hip-tests commit: 72450ae7a1]
2024-11-13 18:22:32 -05:00
Ioannis Assiouras 7d8eb4adb8 SWDEV-483134 - Removed hipExtHostAlloc tests
Change-Id: Ifb938ad6d8382cfe25d531e5e36c5a4df986d940


[ROCm/hip-tests commit: b2e3b605a6]
2024-11-06 11:28:37 -05:00
Vladana Stojiljkovic 353bb4ac4d SWDEV-479312 - Implement tests for hipMemcpy2DArrayToArray
Change-Id: Id42557aefa0a887799402503c8905ee4cd322629


[ROCm/hip-tests commit: 558cbfd829]
2024-11-05 04:06:26 -05:00
Marko Arandjelovic 712ee64a1a SWDEV-478801 - Add unit test for hipMemcpyDtoA
Change-Id: Ia0f606294574c43b5e84438a33eda4c43bd0acbc


[ROCm/hip-tests commit: 04ad40156c]
2024-11-05 02:40:33 -05:00
Marko Arandjelovic a02d7f921d SWDEV-479213 - Add unit test for hipMemcpyHtoAAsync
Change-Id: I698eb2f7b73db439c1082ef79e2e5b5462e8fd1e


[ROCm/hip-tests commit: 003707116b]
2024-11-04 12:43:54 -05:00
Vladana Stojiljkovic 5e41c48966 SWDEV-478472 - Fix tests to return hipErrorInvalidChannelDescriptor instead of hipErrorUnknown
Change-Id: I1dc3af072aed813173cc12e9976a34ddf8c7d6a8


[ROCm/hip-tests commit: 5fa9900949]
2024-11-04 11:25:54 -05:00
Jaydeep Patel 9e080a303c SWDEV-483355 - hipDrvMemcpy2DUnaligned is not supported for inter GPU copy without p2p access.
Change-Id: Ie484efc5779b139e5ca2d504342fb49edfb6b30c


[ROCm/hip-tests commit: 7aff6567b7]
2024-11-04 11:23:39 -05:00
Jaydeep Patel c442ee3990 SWDEV-479616 - hipMemcpyParam2D and hipMemcpy2D does not support inter gpu copy without p2p access.
Skip Unit_hipGetProcAddress_MemoryApisPeerToPeer if p2p access is not supported.

Change-Id: I9f8598b9d1edf1d189583c5600b2e4d937564ea4


[ROCm/hip-tests commit: 067e3836ee]
2024-11-04 11:18:58 -05:00
Li, Todd tiantuo 149d95ec0c SWDEV-472357 - fix 1D, 2D and 3D memCpy tests
on sync, stream and setDevice

Change-Id: I19bdb907977338cac67c1e3f6f01cda6f2b97ec6


[ROCm/hip-tests commit: 9e30678987]
2024-11-04 11:12:52 -05:00
Marko Arandjelovic 8b5dbca27c SWDEV-476486 - Add unit test for hipMemAllocHost
Change-Id: Ie77686b4e2a269b845b3187f27281a5a855bd731


[ROCm/hip-tests commit: a13da7ba02]
2024-11-04 05:12:05 -05:00
Ajay c39806eede SWDEV-1 - exclude hipExtHostAlloc.cc from nvidia test list
Change-Id: I31644cbf446f057af82235dccc54202ad3e81428


[ROCm/hip-tests commit: 61f3be259a]
2024-10-29 11:23:04 -04:00
Ioannis Assiouras 0976bd0249 SWDEV-480400 - Add unit test for hipExtHostAlloc
Change-Id: Ica92d1ae91bdc4feef52b7b07d55da4dff8d7542


[ROCm/hip-tests commit: 359aed1348]
2024-10-25 11:51:42 -04:00
Rahul Manocha 6470a57dac SWDEV-474617 - Add Peer Device access check for memcpy2D tests and fix for SVM Memory test.
Change-Id: Idff7c02087f99c59f456e0027bbe0bc19cf67059


[ROCm/hip-tests commit: 8b15996041]
2024-10-23 14:26:02 -04:00
Marko Arandjelovic 2e87246963 SWDEV-475749 - Add unit test for hipMallocHost
Change-Id: I0e94342ba68c12f64ac94a04a46f1c478e6f01be


[ROCm/hip-tests commit: 56ef43810b]
2024-10-23 14:05:33 -04:00
Todd tiantuo Li bc7d1d9144 SWDEV-448894 - Fix hipMemcpyDtoD and hipMemcpyDtoDAsync tests
1.Test staging buffer copy when there is no P2P capabilities
2.Enable PeerAccess correctly for P2P copy

Change-Id: Ic0b75a60c8a763f3cfe68fbd92656fbfb4c207bc


[ROCm/hip-tests commit: d1d8b1e08e]
2024-10-23 10:54:34 -04:00
Rupam Chetia 779beb09f2 SWDEV-471105 - [catch2][dtest] Adding functional tests for hipMemPoolExportToShareableHandle, hipMemPoolExportPointer, hipMemPoolImportFromShareableHandle and hipMemPoolImportPointer
Change-Id: Ief0f0d7f4c05d741e49eaffa54f11338c4bdc30f


[ROCm/hip-tests commit: 9fd38dd3e1]
2024-10-23 02:45:00 -04:00