SWDEV-420738 - Fix Unit_hipTextureObj3DCheckModes issue due to hipGetLastError change

Change-Id: I3f6efe6f995a2cf041a6f74000fec236298c34a7
Этот коммит содержится в:
Satyanvesh Dittakavi
2023-09-12 12:54:14 +00:00
коммит произвёл Rakesh Roy
родитель 1ef4b7f4ea
Коммит d517f0175c
+5 -2
Просмотреть файл
@@ -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());