SWDEV-408621 - check for image support before running hipArray tests

Change-Id: I53c8ef7178931ca83a504dc1a226d46c34f175ae
Αυτή η υποβολή περιλαμβάνεται σε:
Jatin Chaudhary
2024-02-06 15:30:38 +00:00
γονέας 569b088eb8
υποβολή 7a3d1f0c00
@@ -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++) {