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
This commit is contained in:
Todd tiantuo Li
2023-12-15 14:53:16 -08:00
committed by Rakesh Roy
parent c6d3505d63
commit d92abdd926
+2
View File
@@ -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));