Граф коммитов

21 Коммитов

Автор SHA1 Сообщение Дата
Hernandez, Gerardo 4b2ed7653f 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
2025-07-18 13:45:19 +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
Rambabu Swargam 7fb9301d6b SWDEV-467854 - [catch2][dtest] Functional testcases for hipGetProcAddress API - Part 2
Change-Id: I4619f8e69b75d1193e98adce2707bf7876b1ba59
2025-01-21 12:53:28 -05:00
Sourabh Betigeri 726a537a74 SWDEV-488318 - Fixes memory leaks in SPT tests
Change-Id: Icabc541b25342d7d5c095b437b91f74582cd9336
2024-12-18 11:43:20 -05:00
Marko Arandjelovic 9cffda4ebb 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
2024-12-10 10:25:08 -05:00
Vladana Stojiljkovic 5b67a2a4a0 SWDEV-450735 - Add compiler option for using clock64
Change-Id: I9efed88d691ee1b2b4465286b3340b820f7bf627
2024-08-29 10:26:11 +02:00
Jaydeep Patel ad602b0011 SWDEV-444257 - Less # of CUs i.e. 2 tends to ..
- make blockdim to become 0 and hence need validation.
- run cooperative kernel with param lesser # of threads
  than actual # of elements and hence need correction in
  validation part.

Change-Id: Ie48a038fe6f8cf25d7f6460703648a360f511f35
2024-04-03 13:37:34 -04: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
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 ee3c94faf2 SWDEV-411064 - check if image is supported before running image specific tests
Change-Id: I62b3f7489f2f33b4b4e02f42a46e66c8940f2277
2023-09-21 06:23:55 -04:00
ROCm CI Service Account 798c4e7255 SWDEV-326250 - Adding new set 1 of test cases to test compiler flag -fgpu-default-stream=per-thread (#176)
Change-Id: I1a13ebdf366913ce938b3891cfdc549c6c618569
2023-02-27 15:54:03 -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 7890b0559e SWDEV-348684 - Fixed catch-2 test failure (#3073)
Change-Id: Ib21c26a3c8e51f0b7f132ecd4ad209dfef1d0689
2022-11-28 14:03:51 +05:30
Satyanvesh Dittakavi 32cc365ede SWDEV-355959 - Remove the invalid test Unit_hipStreamPerThread_CoopLaunchMDev (#2952) 2022-09-21 14:16:46 +05:30
ROCm CI Service Account d0aaed906d SWDEV-353807 - Fixes multiple catch issues (#2912)
- enforcing c++17 for all tests
- Warning as error: ignoring return value

Change-Id: I3d171540403f74222e631d1a8e393386461c9729
2022-08-30 16:53:21 -07:00
Anton Mitkov 871c75e8f0 EXSWCPHIPT-118 - Added testing for hipMemset Synchronous behavoiour. (#2750) 2022-08-04 10:35:21 +05:30
agunashe c31efdf8c1 SWDEV-327563 - Fix hipStreamPerThrdTsts test failures on windows (#2792) 2022-07-11 10:52:04 +05:30
ROCm CI Service Account c20cf461aa SWDEV-314080 - Adding test cases based on hipStreamPerThread stream object. (#2781)
Change-Id: I9b60f4ecdc3196d5dfdb3d7f484f0b5429aae8b3
2022-07-08 15:19:24 +05:30
ROCm CI Service Account 4dae53cbac SWDEV-329380 - Fixed reset test (#2589)
- after reset memory should be re-allocated

Change-Id: I3e814de464629a2651b4b8e752400f09fd6fc971
2022-03-31 15:34:19 +05:30
agunashe ec8d624959 SWDEV-273235 - hip change to build catch tests on Windows (#2472)
* SWDEV-273235 - hip change to build catch tests on Windows

Change-Id: I96de305694609c669cb81480f3572d987ce87d98

* SWDEV-1 - skip failing hipStreamPerThread_DeviceReset_1 test on Linux
2022-02-09 08:17:45 -08:00
Sarbojit2019 d756a47a41 SWDEV-292547 - dtests for hipStreamPerThread (#2417) 2022-01-06 16:18:30 +05:30