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) {