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

51 Коммитов

Автор SHA1 Сообщение Дата
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
Mirza Halilčević 562f46ed64 EXSWHTEC-300 - Extend tests for atomic bitwise operations #288
Change-Id: I499a1c57400f13ebdf056d093228501f4eb2cb31


[ROCm/hip-tests commit: fa5ba557a5]
2024-02-26 12:39:52 +05:30
Mirza Halilčević e1741ba833 EXSWHTEC-264 - Implement Unit Tests for Atomic Min/Max Operations #192
Change-Id: I11779d677b4133b1bc3baa244f8a1b9b21e0045a


[ROCm/hip-tests commit: cf34eb8d63]
2024-02-23 20:44:46 +05:30
Mirza Halilčević c1a03d1f5d EXSWHTEC-263 - Implement Unit Tests for Atomic Bitwise Operations #191
Change-Id: I78cf8fc662b08e3e3ba1bdb13cb27cea22fdce9e


[ROCm/hip-tests commit: b6180a3354]
2024-02-23 20:44:46 +05:30
Mirza Halilčević f8e64eeb1d EXSWHTEC-262 - Introduce build dependencies for atomic arithmetic operations #180
Change-Id: Ic2293f273158613312dc39914da087fc0a462242


[ROCm/hip-tests commit: 2eb17f0696]
2024-02-23 20:44:45 +05:30
Maneesh Gupta 6ae21d195e SWDEV-1 - Merge github PRs to amd-staging
- https://github.com/ROCm/hip-tests/pull/194
- https://github.com/ROCm/hip-tests/pull/36
- https://github.com/ROCm/hip-tests/pull/44
- https://github.com/ROCm/hip-tests/pull/47
- https://github.com/ROCm/hip-tests/pull/62
- https://github.com/ROCm/hip-tests/pull/63
- https://github.com/ROCm/hip-tests/pull/64
- https://github.com/ROCm/hip-tests/pull/65
- https://github.com/ROCm/hip-tests/pull/66
- https://github.com/ROCm/hip-tests/pull/67
- https://github.com/ROCm/hip-tests/pull/68
- https://github.com/ROCm/hip-tests/pull/69
- https://github.com/ROCm/hip-tests/pull/142
- https://github.com/ROCm/hip-tests/pull/196
- https://github.com/ROCm/hip-tests/pull/238

Change-Id: I74f7fef76d7d536b1cf89dad3e527c92d1cd21b5


[ROCm/hip-tests commit: 6429ef1b60]
2023-12-20 10:39:37 +00:00