Wykres commitów

175 Commity

Autor SHA1 Wiadomość Data
MachineTom 4a31affb76 Users/taosang/SWDEV-510994 - Refractor atomics header and tests (#902)
* SWDEV-550626 - Refactor atomics header and tests

1. Introduce __HIP_ATOMIC_BACKWARD_COMPAT.
By default we define __HIP_ATOMIC_BACKWARD_COMPAT=1 to
let hip atomic functions maintain old assumptions. if
users want to adopt the new behavior, that is , by default
assume no-fine-grained no-remote-memory, then they can
define __HIP_ATOMIC_BACKWARD_COMPAT=0 and get the new
behaviour.

2. Use  __HIP_ATOMIC_BACKWARD_COMPAT_MEMORY to replace
original __HIP_FINE_GRAINED_MEMORY  in atomic header.
And apply __HIP_FINE_GRAINED_MEMORY onto all 
atomicXXX_system() functions to prevent failure on memory
allocated by hipHostMalloc().

3. Replace HIP_TEST_FINE_GRAINED_MEMORY with
HIP_TEST_ATOMIC_BACKWARD_COMPAT_MEMORY in hip-tests.

4. Fix negative test errors.
    Fix managed memory test error on memory order.
    some other minor changes.
    As a result  all originally disabled tests are enabled.

5. Add more atomics tests in some cases.

6. Reduce test time in each case.
     Reduce iteration number to 1 for tests that cost too much time.

8. Put common codes into hip_test_common.hh
2025-09-25 10:58:59 -04:00
MachineTom 25922d08c3 SWDEV-539145 - Return error when ext_fine_grain_pool unavailable (#877)
Return error when ext_fine_grain_pool is unavailable for
hipHostMallocUncached, hipHostAllocUncached and
hipExtHostRegisterUncached.
Disable related tests on Navi4x where
ext_fine_grain_pool is unavailable
2025-09-21 19:25:28 -04:00
vstojilj f24e2ca676 SWDEV-546865 - Disable core dumps when running tests (#880)
* SWDEV-546865 - Disable core dumps when running tests

* SWDEV-546865 - Disable core dumps only for tests that require it
2025-09-15 15:58:41 +02:00
systems-assistant[bot] be2e7314fa SWDEV-532473 - Add Pcie atomic support check to failing tests (#575)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
2025-09-09 09:01:25 -07:00
Julia Jiang d130c986fc SWDEV-553028 - Adding Coptright in files for HIP-tests (#829) 2025-09-05 16:44:28 -04:00
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
Dittakavi, Satyanvesh d424664592 SWDEV-523177 - Fix the Unit_hipEventCreateWithFlags_DisableSystemFence_CohHstMem test (#131)
* SWDEV-523177 - Fix the Unit_hipEventCreateWithFlags_DisableSystemFence_CohHstMem test

* Fix the hip nvidia psdb failure

[ROCm/hip-tests commit: 41af8e62ca]
2025-08-18 18:27:13 +05:30
Luo, Phoebe 17d12dff14 SWDEV-546504 - Improve Catch2 INFO Prints (#496)
SWDEV-546504 Added function to print output to terminal and a debug print that can be toggled

[ROCm/hip-tests commit: 0dde3ce589]
2025-08-11 13:53:04 -07:00
Manocha, Rahul e7b5e7cf98 SWDEV-532473 - Check for P2P support in atomic mgpu tests (#225)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>

[ROCm/hip-tests commit: fcebe427fc]
2025-08-04 12:51:59 -07:00
GunaShekar, Ajay 57fccdf79c SWDEV-537473 - kernel path fix for windows (#286)
[ROCm/hip-tests commit: 797c104b4d]
2025-06-13 21:04:04 +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
Sang, Tao 178d6036f5 SWDEV-537473 - Fix missing KERNELS_PATH (#273)
[ROCm/hip-tests commit: c4284d50c5]
2025-06-11 19:44:36 +05:30
Belton-Schure, Aidan a81c743078 SWDEV-482125 - fix Unit_Rtc_MathFunctions_header (#270)
[ROCm/hip-tests commit: 6fbcc0726f]
2025-06-10 22:52:50 +05:30
Hernandez, Gerardo 5d5fa6fc2a SWDEV-420237 - Add tests for reduce sync operations (#102)
[ROCm/hip-tests commit: 001affc6ae]
2025-05-14 11:57:05 +01:00
taosang2 53ddaca565 SWDEV-447973 - Add generic target codeobj test
Add simple tests to verify generic target code
objects.

Change-Id: Iae148c3c938b18247624938512918dbb3cbc462e


[ROCm/hip-tests commit: f581518103]
2025-03-10 17:45:14 -04: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
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 f0e8bcc19b SWDEV-491363 - [catch2][dtest] Add and Enable tests for Graph APIs
Details :
1) Add tests for hipDrvGraphExecMemsetNodeSetParams
2) Enable commented tests for hipDrvGraphMemcpyNodeSetParams

Change-Id: Ia4771e1dea022b5f4316b66c0bd585f0f941ab77


[ROCm/hip-tests commit: c90d83366f]
2025-01-21 12:59:03 -05:00
taosang2 43b7d702ff SWDEV-474989 - Fix texture filter test issues
Change-Id: I9b647aff79ba92f07b2ca18eac49d58ae63fa859


[ROCm/hip-tests commit: 8a9ed34f6a]
2024-12-23 07:27:18 -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
Vladana Stojiljkovic 0c255ac97f 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


[ROCm/hip-tests commit: 9893726343]
2024-12-03 13:49:16 -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
Vladana Stojiljkovic e6277881c3 SWDEV-486969 - Add macros for capturing sync APIs
Change-Id: I6d348c8b34b29021c281c32aa5a636960e234ccb


[ROCm/hip-tests commit: 70a7d3ab8b]
2024-11-04 03:52:51 -05:00
taosang2 6af4dd61e6 SWDEV-451393 - Add kernel execution perf test
Add kernel excution perf test per blockSize and block number.
Implement a solution to roughly evaluate gpu variable
frequency based on clock64() and wall_clock64().

Change-Id: Ic87761a862d4a894fdcaab3431d63fe2592bb682


[ROCm/hip-tests commit: 0a22d14775]
2024-10-23 02:25:07 -04:00
Marko Arandjelovic 050d2f991f SWDEV-487395 - Add macros for capturing async APIs
Change-Id: Id8647a05f3f483792d9224aaf8a2488c2498c0ba


[ROCm/hip-tests commit: aac7b29d78]
2024-10-21 09:09:20 -04:00
Vladana Stojiljkovic e057b9e471 SWDEV-450735 - Add compiler option for using clock64
Change-Id: I9efed88d691ee1b2b4465286b3340b820f7bf627


[ROCm/hip-tests commit: 5b67a2a4a0]
2024-08-29 10:26:11 +02:00
SrinivasaRao 7e49ea7a8b SWDEV-388834 - [catch2][dtest] Module tests migrated from direct to catch2
Change-Id: I9a3fbdd4e52bb69ab428b7cfcd478fa0382e7cc9


[ROCm/hip-tests commit: 304b0ac90b]
2024-08-22 23:39:12 -04:00
Marko Arandjelovic 48ee9f8ae7 SWDEV-441603 - Add hipDrvMemcpy2DUnaligned test
Change-Id: I44b65867cabeb369fda8a82984fe3f694499942c


[ROCm/hip-tests commit: 639a9c2996]
2024-08-01 17:44:26 -04:00
Marko Arandjelovic 5153e57122 SWDEV-461794 Fix Unit_hipMemcpyAsync_Positive_Synchronization_Behavior
- Fixed wrong assumptions in the test:
   - Pinned Host memory to Pinned Host memory is async (before:sync)
   - Pinned Host memory to Device is async (before:sync)

Change-Id: Ib826e177854cbcdad04181e245382cf0bec02c46


[ROCm/hip-tests commit: 12a5d4c24c]
2024-07-31 14:50:12 -04:00
Ioannis Assiouras 7ed657c2af SWDEV-474159 - Query max LDS in Unit_hipDynamicShared
Change-Id: Ie78613ea1a87d69aff4f764368ea7a1893e021f5


[ROCm/hip-tests commit: 5e26ec0bb1]
2024-07-17 22:17:20 +01:00
taosang2 b3d203d19b 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


[ROCm/hip-tests commit: de9581efb6]
2024-07-16 14:44:06 -04:00
sdashmiz 25c1efc7ea FEAT-60269 - Test for large LDS
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I8f476f1b44324fffcc25423209a632caeb48cb99


[ROCm/hip-tests commit: ee6bbb0004]
2024-07-08 12:07:14 -04:00
Todd tiantuo Li 106e39f1e2 SWDEV-448894 - Correct and align peer access related behavior for memcpy tests
Change-Id: I31379836f9066a6b317efc26678302261e4c7a1b


[ROCm/hip-tests commit: 4163c69fdc]
2024-06-26 16:05:28 -04:00
Sameer Sahasrabuddhe ec1f43cd05 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


[ROCm/hip-tests commit: 53f0a9bd01]
2024-05-03 08:58:23 -04:00
Rahul Manocha 9961681454 SWDEV-449487 Generate dimensions for multiproc count 2
Change-Id: I3728ff49f0b2c292d46307d689066af3f59b455f


[ROCm/hip-tests commit: fead2adf5b]
2024-04-18 06:22:23 -04:00
Rahul Manocha 500a08991d [SWDEV-438556][SWDEV-449685] - Fix for CG MultiGrid Group Tests
Change-Id: Iaf3d422e57465fefe9adb1fc7c01a480ada37db3


[ROCm/hip-tests commit: bcff12dedc]
2024-04-16 08:20:33 -04:00
Jaydeep Patel cab05268fa SWDEV-447525 - Zero-initialize hipMemPoolProps.
Change-Id: Iee71961bd1d679f0a6a9223e6387748602706c2d


[ROCm/hip-tests commit: b45bc412d7]
2024-03-15 14:26:00 +00:00
Sebastian Luzynski 9682f1becc SWDEV-447358 - Add build_doc target to hip-tests
This change adds a new cmake target to generate test plan documentation using
Doxygen. The target is called build_docs and it's not added to the default
build commands, hence it needs to be called separately.

Signed-off-by: Sebastian Luzynski <Sebastian.Luzynski@amd.com>
Change-Id: I441524568e0513019ca21467950e48a551234802


[ROCm/hip-tests commit: 53406684ee]
2024-03-08 04:19:48 -05:00
German Andryeyev 861d4217f6 SWDEV-311271 - Reset default mempool state
Multiple subtests will fail if the default mem pool will keep information
of the previous subtests.

Change-Id: Ic9ab8ed93771e71735594a85235b5bb734d6680c


[ROCm/hip-tests commit: 4e3fc2d937]
2024-03-06 11:04:42 -05:00
Rakesh Roy 8fc1292bc2 SWDEV-1 - Merge github PRs to amd-staging
Change-Id: I2944a63ddc2eec8dc1403d9790ffffbaec343385


[ROCm/hip-tests commit: 57bc68acb1]
2024-03-06 00:12:20 +05:30
Mirza Halilčević 3f4bbb3627 EXSWHTEC-382 - Implement tests for Launch API functions #454
Change-Id: I0720758144e89adaa43bcbcc6262dbb16cd4e2be


[ROCm/hip-tests commit: 66e2885107]
2024-02-27 22:18:00 +05:30
Mirza Halilcevic d439c6b986 EXSWHTEC-380 - Implement tests for Virtual Memory Management API functions #448
Change-Id: Ic766be69fddd0309f7ad4093465494cc14c7c70b


[ROCm/hip-tests commit: 00433d4f87]
2024-02-27 16:51:09 +05:30
Nives Vukovic ad4d04fa88 EXSWHTEC-371 - Implement tests for the hipDrvGraphAddMemsetNode API #447
Change-Id: I981e14f34b008054d46e61ebae0099792df446b1


[ROCm/hip-tests commit: 63c93f95a8]
2024-02-27 12:30:54 +05:30
Nives Vukovic f44575fb94 EXSWHTEC-370 - Implement tests for the hipDrvGraph*MemcpyNode APIs #446
Change-Id: I956dc06157324e9d6971348a70b600c4a9105538


[ROCm/hip-tests commit: 6f9f5c07fe]
2024-02-27 12:29:28 +05:30
Mirza Halilčević 218f6a3251 EXSWHTEC-357 - Implement tests for 1D mipmapped texture device functions #431
Change-Id: I74b4bc2a73ec8bbe21460eda8cdc79210fe2501e


[ROCm/hip-tests commit: 0ecb874b52]
2024-02-27 12:12:52 +05:30
Mirza Halilčević bb08c70c4e EXSWHTEC-350 - Implement tests for hipModuleLaunchCooperativeKernel #429
Change-Id: I42342c7d4cceed67990f603cd83473fe76e7f856


[ROCm/hip-tests commit: 303836a7fd]
2024-02-27 12:11:52 +05:30
Nives Vukovic d339e17a53 EXSWHTEC-338 - Implement tests for half2 type casting intrinsics #422
Change-Id: I5492fa7d54573d45bfdb9320e74ccc6ca7640d2d


[ROCm/hip-tests commit: 50031b5c44]
2024-02-26 22:23:34 +05:30
Milos Mozetic 2520691374 EXSWHTEC-314 - Implement unit tests for short vector types #297
Change-Id: I609548b79ae45530b0e82c532f93cf1f411343e4


[ROCm/hip-tests commit: 536c20b62d]
2024-02-26 12:44:06 +05:30
Mirza Halilčević 43157d20de EXSWHTEC-297 - Introduce build dependencies for builtin atomic operations tests #292
Change-Id: Ie16d2175e330522c226cde9f30a1f326782a4551


[ROCm/hip-tests commit: 0972ef88aa]
2024-02-26 12:43:08 +05:30
Nives Vukovic 6855fc32cb EXSWHTEC-311 - Implement tests for integer type casting intrinsics #285
Change-Id: I6e6bee38dad6948d46ba2ce0d5d2e3b27c150d35


[ROCm/hip-tests commit: f9cf87fe60]
2024-02-26 12:38:43 +05:30