From 97003a5d91eacf3c8fb71d3a49ac6128b15033a9 Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Tue, 6 Feb 2024 15:30:38 +0000 Subject: [PATCH] SWDEV-408621 - check for image support before running hipArray tests Change-Id: I53c8ef7178931ca83a504dc1a226d46c34f175ae [ROCm/hip-tests commit: 7a3d1f0c000c26a2f4ca0a164b866c70046455bf] --- .../hip-tests/catch/unit/memory/hipArrayGetDescriptor.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/hip-tests/catch/unit/memory/hipArrayGetDescriptor.cc b/projects/hip-tests/catch/unit/memory/hipArrayGetDescriptor.cc index 6b88593729..608aef1c90 100644 --- a/projects/hip-tests/catch/unit/memory/hipArrayGetDescriptor.cc +++ b/projects/hip-tests/catch/unit/memory/hipArrayGetDescriptor.cc @@ -230,6 +230,8 @@ float* funcToChkArray(hipArray_t array) { * - HIP_VERSION >= 5.6 */ TEST_CASE("Unit_hipArrayGetDescriptor_1D_2D_ArrayParameterChk") { + CHECK_IMAGE_SUPPORT + int numDevices = 0; HIP_CHECK(hipGetDeviceCount(&numDevices)); for (int i = 0; i < numDevices; i++) { @@ -320,6 +322,8 @@ TEST_CASE("Unit_hipArrayGetDescriptor_1D_2D_ArrayParameterChk") { * - HIP_VERSION >= 5.6 */ TEST_CASE("Unit_hipArrayGetDescriptor_MultiThreadScenarioFor1D_2D_Array") { + CHECK_IMAGE_SUPPORT + int numDevices = 0; HIP_CHECK(hipGetDeviceCount(&numDevices)); for (int i = 0; i < numDevices; i++) { @@ -366,6 +370,8 @@ TEST_CASE("Unit_hipArrayGetDescriptor_MultiThreadScenarioFor1D_2D_Array") { * - HIP_VERSION >= 5.6 */ TEST_CASE("Unit_hipArrayGetDescriptor_Host2Array_Array2Host") { + CHECK_IMAGE_SUPPORT + int numDevices = 0; HIP_CHECK(hipGetDeviceCount(&numDevices)); for (int k = 0; k < numDevices; k++) {