182 Melakukan

Penulis SHA1 Pesan Tanggal
amilanov-amd cac67a0f32 SWDEV-521760 - Fix and enable disabled HIP tests from cooperative groups group (#2027)
* Reworked Unit_hipLaunchCooperativeKernel_Basic and Unit_hipLaunchCooperativeKernelMultiDevice_Basic
* Introduce reduction_factor for coop groups tests. Fix Unit_Coalesced_Group_Tiled_Partition_Sync_Positive_Basic
* Fix always false requirement by adding a cast
* Change data type to unsigned long long to align with cuda
* Change literal type to double to ensure proper type casting
* Remove formatting comments
2026-01-27 11:51:08 +01:00
Jimbo a59d46ffbf SWDEV-567545 - Implement block_rank in co-op grid groups (#2182)
* SWDEV-567545 - Implement block_rank in co-op grid groups
2025-12-29 11:39:23 -05:00
Jatin Chaudhary 8e1aee62d0 make hip-tests compileable with TheRock (#1624)
## Motivation

Resolved: SWDEV-566226

The current implementation of agents inside of rocprof-systems keeps just the minimal necessary set of information required for populating the `info_agent` table inside of rocpd database. There is a sufficient amount of data that is being left out from database, so this change should fix that and store the additional agent information as an `extdata` row inside of `info_agent` table.

## Technical Details

This PR introduces additional filed inside of `agent` structure inside which is representing the JSON formatted string of all the additional information we can acquire about particular agent. This data is processed and added during the initial fetching of agents, and afterwards pushed inside of the database.

---------

Co-authored-by: David Galiffi <David.Galiffi@amd.com>

* SWDEV-557412 - Incorporate proper chunk offset when remapping virtual memory (#1848)

* SWDEV-557412 - Incorporate proper offset when remapping virtual memory

* Fix condition to check if VMHeap allocation address matches a chunk address

* Move offset calculation outside if/else block

---------

Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>

* SWDEV-567852 - Clean-up hip::init() (#1948)

* SWDEV-559267 - Use CLPrint to DevLogPrintf with Log Level - detail debug. (#1160)

* SWDEV-548892 - Stop using ocml isinf wrapper (#1854)

* SWDEV-562708 - change default maximum SVM size to 256GB (#1731)

* SWDEV-503089 - Fix and enable disabled HIP tests from math group (#1319)

* SWDEV-503089 - Fix and enable disabled HIP tests from math group

* SWDEV-503089 - Move single precision reduced run to a common function

* SWDEV-548892 - Stop using ockl steadyctr function (#1882)

Directly use the builtin

* Implement PTL support (#1957)

* Implement PTL support

Signed-off-by: adapryor <Adam.pryor@amd.com>
(cherry picked from commit 45bc31292e7940a3b8fca044ef7df22047b95733)

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>

---------

Signed-off-by: adapryor <Adam.pryor@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>

* SWDEV-558080 - Add recommended granularity (#1176)

* Add recommended granularity

* Improve granularity testing

* Update based on feedback

* Fix and enable VMM tests on cuda (#1855)

* Fix and enable VMM tests on cuda

* Minor syntax fixes

---------

Co-authored-by: Rahul Manocha <rmanocha@amd.com>

* [rocprofiler-systems] Add support for ompt_callback_thread_begin (#1681)

* Add thread_begin callback

* Make OMPT callbacks that are instant have start_ts = end_ts

* SWDEV-567514: Remove default stream wait (#1977)

- when virtual map command is called

- can create deadlock

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>

* Fix flaky test Unit_hipStreamAddCallback_StrmSyncTiming (#2022)

* Review comments

* skip the 3 failing tests to merge hip-tests rocm-systems PR

---------

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Signed-off-by: adapryor <Adam.pryor@amd.com>
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Co-authored-by: GunaShekar <agunashe@amd.com>
Co-authored-by: agunashe <ajay.gunashekar@amd.com>
Co-authored-by: Ethan Trinh <Ethan.Trinh@amd.com>
Co-authored-by: JeniferC99 <150404595+JeniferC99@users.noreply.github.com>
Co-authored-by: Victor Zhang <111778801+victzhan@users.noreply.github.com>
Co-authored-by: German Andryeyev <56892148+gandryey@users.noreply.github.com>
Co-authored-by: usrihari123 <srihari.u@amd.com>
Co-authored-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Co-authored-by: anujshuk-amd <anujshuk@amd.com>
Co-authored-by: itrowbri <Ian.Trowbridge@amd.com>
Co-authored-by: marantic-amd <marantic@amd.com>
Co-authored-by: David Galiffi <David.Galiffi@amd.com>
Co-authored-by: cadolphe-amd <chris.adolphe@amd.com>
Co-authored-by: Karthik Jayaprakash <54370791+kjayapra-amd@users.noreply.github.com>
Co-authored-by: Matt Arsenault <Matthew.Arsenault@amd.com>
Co-authored-by: Todd tiantuo Li <88386084+lttamd@users.noreply.github.com>
Co-authored-by: amilanov-amd <Aleksandar.Milanov@amd.com>
Co-authored-by: Adam Pryor <61172547+adam360x@users.noreply.github.com>
Co-authored-by: Maisam Arif <Maisam.Arif@amd.com>
Co-authored-by: AidanBeltonS <abeltons@amd.com>
Co-authored-by: Rahul Manocha <153310294+manocharahul@users.noreply.github.com>
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
Co-authored-by: Kian Cossettini <Kian.Cossettini@amd.com>
Co-authored-by: Shadi Dashmiz <94885391+shadidashmiz@users.noreply.github.com>
Co-authored-by: Ioannis Assiouras <38722728+iassiour@users.noreply.github.com>
Co-authored-by: Ajay GunaShekar <86270081+agunashe@users.noreply.github.com>
2025-12-03 08:53:17 -08:00
amilanov-amd da9bb4efae SWDEV-503089 - Fix and enable disabled HIP tests from math group (#1319)
* SWDEV-503089 - Fix and enable disabled HIP tests from math group

* SWDEV-503089 - Move single precision reduced run to a common function
2025-11-26 10:34:05 +01:00
Victor Zhang 92fcc928b6 SWDEV-526773 - Modify LaunchDelayKernel to set a hard coded WallClock… (#1911)
* SWDEV-526773 - Modify LaunchDelayKernel to set a hard coded WallClock value when it's not avaliable

* Change hardcode clockrate in unit of KHz.
2025-11-25 11:21:03 -05:00
systems-assistant[bot] ad3cb435ee SWDEV-507874 - Psdb perf: reduce test iterations (#618)
Change-Id: Ia9af40ecfb2ea121388a3c7a932805b49cef7669

Co-authored-by: agunashe <ajay.gunashekar@amd.com>
2025-10-20 09:00:05 -07:00
Rahul Manocha 27ec19116d SWDEV-557828 - fix hip-tests on cuda (#1152)
Co-authored-by: Rahul Manocha <rmanocha@amd.com>
2025-10-07 08:28:56 -07:00
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