10 Révisions

Auteur SHA1 Message Date
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
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
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
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
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ć 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
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
Mirza Halilcevic 6250954456 EXSWHTEC-265 - Implement Tests for Atomic Exchange (#196)
Change-Id: I4d332dcaad2d0a788b6711f5be05ca6d61a9e34b


[ROCm/hip-tests commit: f24d2dd934]
2023-12-20 10:22:01 +00:00