56 Коммитов

Автор SHA1 Сообщение Дата
Julia Jiang 28ef3b4b9e swdev-564412 - fix seg faults in atomic operation tests with muti-gpus (#2541) 2026-01-23 11:26:27 -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
Gerardo Hernandez 8abfee9f26 SWDEV-541351 - fix use of uninitialized memory in Unit___hip_atomic_compare_exchange tests (#1976) 2025-11-25 11:02:14 +00:00
amilanov-amd 738bf16008 [hip-tests] Tag multigpu tests with Catch2 tags (#1315) 2025-11-14 13:00:30 +01:00
Sourabh U Betigeri f58393108f SWDEV-564408 - Reduces hip-tests runtime Pt2 (#1724) 2025-11-12 13:37:00 -08:00
Victor Zhang 437ce0b8df fix atomics SystemTest() use after free (#1595) 2025-11-02 21:45:44 -05: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 f1ed57e54d SWDEV-550626 - Make atomics test pass with new compiler (#731)
Change pinned host memory to device memory so that
atomics Min/Max tests can pass with new compiler patch
in integer types.
2025-08-25 22:30:55 -04:00
Danylo Lytovchenko f7338717ae SWDEV-470698 - fix formatting, add format check workflow (#657) 2025-08-20 19:58:06 +05:30
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
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 36c3328b23 SWDEV-527806 - p2p checks for Atomic tests (#502)
[ROCm/hip-tests commit: a82f042ca1]
2025-07-30 09:20:59 -07:00
GunaShekar, Ajay 1a709fd533 SWDEV-545476 - memleak valgrind fixes for atomics and compiler (#470)
fixes SWDEV-545476 and SWDEV-545493

[ROCm/hip-tests commit: 39fd515cd2]
2025-07-29 08:32:34 -07:00
GunaShekar, Ajay 0d4e5bc4ac SWDEV-527806 - hip-tests . Add P2P checks for mGPU atomics tests (#258)
[ROCm/hip-tests commit: 25a7cf681e]
2025-07-22 19:47:03 +05:30
Jiang, Julia 4b41394fe6 SWDEV-523483 - Updated hip-tests for atomics add-operation (#448)
[ROCm/hip-tests commit: a7344b87c2]
2025-07-19 06:49:03 +05:30
Sang, Tao 91681bfd28 SWDEV-516488 - Sync all devices. (#349)
[ROCm/hip-tests commit: 863f8828c3]
2025-07-02 10:05:40 +05:30
Sang, Tao 976d0574cf SWDEW_516488 - Fix possible atomics tests' failures (#292)
[ROCm/hip-tests commit: 6c60fcafd8]
2025-06-14 05:33:25 +05:30
Godavarthy Surya, Anusha 63376e2b32 SWDEV-519722 - Update test to work on MGpu machines without P2P access (#145)
[ROCm/hip-tests commit: 161ecddafe]
2025-05-14 20:52:58 +05:30
GunaShekar, Ajay edefd09753 SWDEV-527806 - hip-tests . Add P2P checks for mGPU atomics tests (#168)
[ROCm/hip-tests commit: 86eb49aa7f]
2025-05-14 20:49:01 +05:30
Sang, Tao 0da26f9d89 SWDEV-521083 - Fix __hip_atomic_fetch_max/min() issues (#81)
Fix __hip_atomic_fetch_max/min() issues in float types

[ROCm/hip-tests commit: 63c545989b]
2025-05-13 15:10:09 +02: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
Rahul Manocha 4947316122 SWDEV-503246 - Fix atomic memory order test hangs for AGENT scope
1) Cannot assume that blockIdx.x = 0 and threadIdx.x = 0 will be
run first in TestKernel. Initialize flags outside kernels.
2) use __hip_atomic_store in device code and __atomic_store_n for host.

Change-Id: If4e9274d2c16af55b53a626c3ba2fb0db7052d4b


[ROCm/hip-tests commit: fc270bc90c]
2025-02-13 12:40:28 -05:00
Rahul Manocha 6cde56faa8 SWDEV-492165 - Add new test types for atomicCAS and unsafeAtomicAdd
Change-Id: Icacb6e94c64c5d4ce3f15c6d4a50fe8506cedfa9


[ROCm/hip-tests commit: c7236e3e2e]
2025-02-11 13:21:22 -05:00
Rahul Manocha 572eb13c5c SWDEV-454316 - Fix for Atomic Min Max Testcases
Change-Id: Ieca965e6e17f4b17769938228340791b9bbe45ab


[ROCm/hip-tests commit: 0c230d3cf0]
2024-11-19 23:32:30 -05:00
Rahul Manocha 2172f9e961 SWDEV-454895 - Fix for Atomic Memory Order testcase failures
Change-Id: I66f92b57527c364b18a695bc9475f4c3432e742b


[ROCm/hip-tests commit: 5672b0d380]
2024-11-19 23:26:20 -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
Rahul Manocha d6edbe7223 [SWDEV-454178] - Fix for Atomic Arithmetic testcases
Change-Id: I8c8a7026bfe4906108c7c90907ffe130cd993ab4


[ROCm/hip-tests commit: ba23adcded]
2024-10-25 14:51:55 -04:00
Rahul Manocha 4ea6eb80a1 SWDEV-454315 - Disable test section that segfaults on windows
Change-Id: Idaac99c433120d98646417318258bfb375d2f367


[ROCm/hip-tests commit: 6cf941c830]
2024-08-14 07:53:29 -04:00
Rahul Manocha a4a3aa3955 [SWDEV-454315] - Fix for Atomic bitwise ops testcases
Change-Id: Ib402c6499ad9218fba89e78c8f91a87ca3537b35


[ROCm/hip-tests commit: 90bafb8ae8]
2024-08-08 14:44:23 -04:00
Jatin Chaudhary f6a7bc10c5 SWDEV-460834 - tests for unsafe atomics bf16 and fp16
Change-Id: I9175674ecb17f9fc2efb49ecd57d85776a4217c5


[ROCm/hip-tests commit: fcc268e56f]
2024-07-30 11:43:32 -04:00
Ioannis Assiouras e89d5c6a04 SWDEV-455444 - Fixed Unit_AtomicBuiltins_Negative_Parameters_RTC
After compiler change atomic_compare_exchange{weak,strong} now checks the failure memory order
as well as the success memory order. As a result there is additional warnings from RTC compilation.
Modified Unit_AtomicBuiltins_Negative_Parameters_RTC unit test to reflect that.

Change-Id: I55f954f3a870b947d1df393207d19e5f7989ee80


[ROCm/hip-tests commit: d1dff962d7]
2024-06-12 00:43:21 -04:00
Ioannis Assiouras 1a525cb854 SWDEV-464648 - code and comment cleanups
Change-Id: I10b462078fa9eed73372d81dff92d7278731f736


[ROCm/hip-tests commit: 38f67d4a0b]
2024-06-12 00:34:10 -04:00
Rahul Manocha 6ddf2baaf9 [SWDEV-435667][SWDEV-453664] - Fix for Atomic Exchange Testcases
Change-Id: Ic2233ca962b8b5fc865433dbea630146931b5d92


[ROCm/hip-tests commit: 60d5761167]
2024-06-07 10:53:29 -04:00
Rahul Manocha 4ecda67e71 [SWDEV-438556][SWDEV-451686] - Enable Negative Param hip tests
Change-Id: I7c602ca0109864aac9d18feb31ae90f2a0ef4d36


[ROCm/hip-tests commit: 839b3b21d1]
2024-04-22 13:00:22 -04:00
Rahul Manocha a4d016e071 [SWDEV-435667][SWDEV-452232] - Fix for Atomic Exch testcase seg faults
Change-Id: I36cd008215f41fe8b7c73fba11443a77658828ee


[ROCm/hip-tests commit: 4a80eee9f1]
2024-04-16 03:09:31 -04:00
Branislav Brzak 35c7d3e1c6 SWDEV-448163 - Fix Doxygen warnings
Change-Id: If72e312461a72920b6a482009c9aef4cf92f2e1b


[ROCm/hip-tests commit: 6c23e25c86]
2024-03-25 05:18:34 -04: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ć 70440d95e5 EXSWHTEC-298 - Extend tests for atomic CAS operations #287
Change-Id: Ieb3e7effc1d3f767c77c0cd7c0b20c391c4665af


[ROCm/hip-tests commit: 8f8e30e1c6]
2024-02-27 22:55:04 +05:30
Mirza Halilčević ab6ba8c0a8 EXSWHTEC-299 - Extend tests for atomic arithmetic operations #286
Change-Id: I221332c33be92ec152a2cd2ede34379aaa73d996


[ROCm/hip-tests commit: abf39d2dcd]
2024-02-27 22:54:15 +05:30
Mirza Halilčević af3497362e EXSWHTEC-275 - Implement tests for atomic CAS operations #408
Change-Id: I77c6995f1f85dedce3b3afb907abb03a4a1f2b83


[ROCm/hip-tests commit: 7659470dbc]
2024-02-26 22:01:41 +05:30
Mirza Halilčević c2b5bc06f0 EXWHTEC-262 - Implement tests for increment/decrement atomic operations #395
Change-Id: I4d3ff4beb9385abdebf59e3eac8783a5c625fdac


[ROCm/hip-tests commit: 8f244479cf]
2024-02-26 22:01:19 +05:30
Mirza Halilčević d9a8761e24 EXSWHTEC-262 - Implement tests for atomic sub operations #394
Change-Id: Ib817f1245695b9eeaaa11d7a2ff9b2eb4ca4f72d


[ROCm/hip-tests commit: cc957255f3]
2024-02-26 22:00:39 +05:30
Mirza Halilčević 3223b6d129 EXSWHTEC-262 - Implement tests for atomic add operations #393
Change-Id: I11ff4658ef2076b25e0bdb91bbcd4f436b0fbd27


[ROCm/hip-tests commit: e70cadd514]
2024-02-26 21:59:18 +05:30
Mirza Halilčević 131cae5b91 EXSWHTEC-262 - Introduce common utilities for atomic arithmetic operations #392
Change-Id: I016e571d15b6b6c3a1b91a4bb4b5410e338efe49


[ROCm/hip-tests commit: 8ee015d1ef]
2024-02-26 16:00:41 +05:30
Mirza Halilčević fd2598f19e EXSWHTEC-296 - Implement negative compile tests for builtin atomic operations #391
Change-Id: I9f77a777e23a5dcc304bb5d7a996ca140c6e7814


[ROCm/hip-tests commit: 488e620fdb]
2024-02-26 15:59:51 +05:30
Mirza Halilčević 36794fc54d EXSWHTEC-297 - Implement memory ordering tests for builtin atomic operations #390
Change-Id: I9ed4ff6ec1e7b8aecc2e1c3ba5883c73901ba2e2


[ROCm/hip-tests commit: ea53809db1]
2024-02-26 15:57:36 +05:30
Mirza Halilčević d312d96a6c EXSWHTEC-297 - Introduce common utilities for memory ordering tests for builtin atomic operations #389
Change-Id: Iae1db918eab6a722c85ff00183c973dd8dd54e9b


[ROCm/hip-tests commit: d6dd4fd05b]
2024-02-26 15:56:10 +05:30
Mirza Halilčević 50d8ff1dc9 EXSWHTEC-296 - Implement negative RTC tests for builtin atomic operations #291
Change-Id: I240e606ea2b112837301ec7afe2f6501b47071ef


[ROCm/hip-tests commit: 8f112a639a]
2024-02-26 12:43:38 +05:30
Mirza Halilčević 89e2d0a479 EXSWHTEC-298 - Extend tests for atomic exchange operations #290
Change-Id: I19b4cb6177f3caa74c3f889de107e349ebb1d37c


[ROCm/hip-tests commit: 73e8f26cf4]
2024-02-26 12:41:18 +05:30
Mirza Halilčević 5962202338 EXSWHTEC-301 - Extend tests for atomic min/max operations #289
Change-Id: Ie9690b7986b22be9b6abdbd33ebf0e2d5fb56d66


[ROCm/hip-tests commit: 9d52facc34]
2024-02-26 12:40:56 +05:30