From ed56e605d44ed84f1ab7aa768b7a011aeee26f29 Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Thu, 20 Feb 2020 20:01:28 -0500 Subject: [PATCH] Add __hip_pinned_shadow__ for texture Add missing __hip_pinned_shadow__ for texture in tex2d_kernel test. Change-Id: Iefc96084fec8f84a1d1bb979998ffb95b4011f0b --- tests/src/runtimeApi/module/tex2d_kernel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/src/runtimeApi/module/tex2d_kernel.cpp b/tests/src/runtimeApi/module/tex2d_kernel.cpp index bf0ecc8c1b..e66d690907 100644 --- a/tests/src/runtimeApi/module/tex2d_kernel.cpp +++ b/tests/src/runtimeApi/module/tex2d_kernel.cpp @@ -26,6 +26,10 @@ THE SOFTWARE. */ #include "hip/hip_runtime.h" + +#if __HIP__ +__hip_pinned_shadow__ +#endif extern texture tex; extern "C" __global__ void tex2dKernel(float* outputData, int width, int height) {