2
0

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]
Este cometimento está contido em:
taosang2
2023-12-20 14:32:58 -05:00
cometido por Tao Sang
ascendente fed7008230
cometimento df2bcdb90f
7 ficheiros modificados com 49 adições e 21 eliminações
@@ -76,6 +76,13 @@ void spawnAnalysisTask(int location)
* - HIP_VERSION >= 5.7
*/
TEST_CASE("test_svm_fine_grain_sync_buffers") {
int pcieAtomic = 0;
HIP_CHECK(hipDeviceGetAttribute(&pcieAtomic, hipDeviceAttributeHostNativeAtomicSupported, 0));
if (!pcieAtomic) {
fprintf(stderr, "Device doesn't support pcie atomic, Skipped\n");
REQUIRE(true);
return;
}
size_t num_pixels = 1024 * 1024 * 2;
hipStream_t stream;
HIP_CHECK(hipSetDevice(0));