From 06555bdcd3bcf40f504d75059708f211fbed21f0 Mon Sep 17 00:00:00 2001 From: Todd tiantuo Li Date: Fri, 15 Dec 2023 14:53:16 -0800 Subject: [PATCH] SWDEV-432490 - Skip checking data error in hipArrayCreate test accordingly. Because the kernel readFromTexture will be empty when there is no image support. Change-Id: I5ce72e147188a2e9a84e9797811ed946362ccf2c [ROCm/hip-tests commit: d92abdd926c79348f672e056087ec763b79dfc96] --- projects/hip-tests/catch/unit/memory/hipArrayCreate.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip-tests/catch/unit/memory/hipArrayCreate.cc b/projects/hip-tests/catch/unit/memory/hipArrayCreate.cc index 2b3f2a81d4..29686b2ab6 100644 --- a/projects/hip-tests/catch/unit/memory/hipArrayCreate.cc +++ b/projects/hip-tests/catch/unit/memory/hipArrayCreate.cc @@ -188,7 +188,9 @@ void testArrayAsTexture(hipArray_t array, const size_t width, const size_t heigh std::fill(std::begin(hostData), std::end(hostData), 0); HIP_CHECK(hipMemcpy(hostData.data(), device_data, size, hipMemcpyDeviceToHost)); +#if !defined(__HIP_NO_IMAGE_SUPPORT) || !__HIP_NO_IMAGE_SUPPORT checkDataIsAscending(hostData); +#endif // clean up HIP_CHECK(hipTexObjectDestroy(textObj));