SWDEV-420738 - Fix Unit_hipTextureObj3DCheckModes issue due to hipGetLastError change

Change-Id: I3f6efe6f995a2cf041a6f74000fec236298c34a7


[ROCm/hip-tests commit: d517f0175c]
Cette révision appartient à :
Satyanvesh Dittakavi
2023-09-12 12:54:14 +00:00
révisé par Rakesh Roy
Parent 350b05a9e3
révision 64215d55e7
+5 -2
Voir le fichier
@@ -120,8 +120,11 @@ static void runTest(const int width, const int height, const int depth, const fl
dim3 dimGrid((width + dimBlock.x - 1) / dimBlock.x, (height + dimBlock.y - 1) / dimBlock.y,
(depth + dimBlock.z - 1) / dimBlock.z);
hipLaunchKernelGGL(tex3DKernel<normalizedCoords>, dimGrid, dimBlock, 0, 0, dData, textureObject,
width, height, depth, offsetX, offsetY, offsetZ);
// Resets any prior last error to hipSuccess, so that the hipGetLastError after the
// kernel launch will not return the earlier errors
res = hipGetLastError();
hipLaunchKernelGGL(tex3DKernel<normalizedCoords>, dimGrid, dimBlock, 0, 0, dData,
textureObject, width, height, depth, offsetX, offsetY, offsetZ);
HIP_CHECK(hipGetLastError());
HIP_CHECK(hipDeviceSynchronize());