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]
이 커밋은 다음에 포함됨:
taosang2 작성하고 Tao Sang가 2024-03-19 20:15:06 -04:00를 커밋함
1 부모 fed7008230
커밋 df2bcdb90f
7 파일이 변경됨
+49 -21

검색과 일치하는 파일 없음

@@ -234,6 +234,13 @@ void launch_kernels_and_verify(std::vector<hipStream_t> &streams, unsigned int n
* - HIP_VERSION >= 5.7
*/
TEST_CASE("test_svm_fine_grain_memory_consistency") {
int pcieAtomic = 0;
HIP_CHECK(hipDeviceGetAttribute(&pcieAtomic, hipDeviceAttributeHostNativeAtomicSupported, 0));
if (!pcieAtomic) {
fprintf(stderr, "Device doesn't support pcie atomic, Skipped\n");
REQUIRE(true);
return;
}
const int num_elements = 2167;
int num_devices = 0;
HIP_CHECK(hipGetDeviceCount(&num_devices));