SWDEV-425830 - Add pcie atomic query in atomic tests

Add code to query pcie-atomics in atomic tests.
If pcie-atomics is not supported, skip the tests.
Enable the tests for Nvidia GPUs as well.

Change-Id: I7bfc8600511d78d8c73ab526f9846cd268651278


[ROCm/hip-tests commit: fafcad9162]
This commit is contained in:
taosang2
2023-12-20 14:32:58 -05:00
committed by Tao Sang
parent fed7008230
commit df2bcdb90f
7 changed files with 49 additions and 21 deletions
@@ -129,7 +129,8 @@ void verify_linked_lists_on_device(hipStream_t stream, Node* pNodes,
int correct_count = *pNumCorrect;
if(correct_count != ListLength * numLists)
{
fprintf(stderr,"Failed\n");
fprintf(stderr, "Failed: correct_count = %d, ListLength=%u, numLists = %u\n", correct_count,
ListLength, numLists);
REQUIRE(false);
}
}
@@ -239,6 +240,7 @@ TEST_CASE("test_svm_shared_address_space_fine_grain_buffers") {
* Test requirements
* ------------------------
* - Host specific (WINDOWS and LINUX)
* - Unified address supported on devices
* - System fine grain access supported on devices
* - HIP_VERSION >= 5.7
*/