diff --git a/projects/clr/hipamd/tests/src/texture/hipBindTex2DPitch.cpp b/projects/clr/hipamd/tests/src/texture/hipBindTex2DPitch.cpp index 772d6b6050..8c57520c00 100644 --- a/projects/clr/hipamd/tests/src/texture/hipBindTex2DPitch.cpp +++ b/projects/clr/hipamd/tests/src/texture/hipBindTex2DPitch.cpp @@ -27,6 +27,10 @@ THE SOFTWARE. #define SIZE_H 8 #define SIZE_W 12 #define TYPE_t float + +#if __HIP__ +__hip_pinned_shadow__ +#endif texture tex; // texture object is a kernel argument diff --git a/projects/clr/hipamd/tests/src/texture/hipNormalizedFloatValueTex.cpp b/projects/clr/hipamd/tests/src/texture/hipNormalizedFloatValueTex.cpp index 03af122696..f8526eb145 100644 --- a/projects/clr/hipamd/tests/src/texture/hipNormalizedFloatValueTex.cpp +++ b/projects/clr/hipamd/tests/src/texture/hipNormalizedFloatValueTex.cpp @@ -45,6 +45,9 @@ static float getNormalizedValue(const float value, } } +#if __HIP__ +__hip_pinned_shadow__ +#endif texture textureNormalizedVal_1D; __global__ void normalizedValTextureTest(unsigned int numElements, float* pDst) diff --git a/projects/clr/hipamd/tests/src/texture/simpleTexture2DLayered.cpp b/projects/clr/hipamd/tests/src/texture/simpleTexture2DLayered.cpp index 186c9995d9..f4d3aac1e5 100644 --- a/projects/clr/hipamd/tests/src/texture/simpleTexture2DLayered.cpp +++ b/projects/clr/hipamd/tests/src/texture/simpleTexture2DLayered.cpp @@ -26,9 +26,15 @@ THE SOFTWARE. * HIT_END */ #include "test_common.h" + typedef float T; + // Texture reference for 2D Layered texture +#if __HIP__ +__hip_pinned_shadow__ +#endif texture tex2DL; + __global__ void simpleKernelLayeredArray(T* outputData,int width,int height,int layer) { unsigned int x = blockIdx.x*blockDim.x + threadIdx.x; @@ -59,7 +65,7 @@ void runTest(int width,int height,int num_layers,texture texf; + +#if __HIP__ +__hip_pinned_shadow__ +#endif texture texi; + +#if __HIP__ +__hip_pinned_shadow__ +#endif texture texc; template