Add missing __hip_pinned_shadow__ attributes to the texture global vars. (#1866)

[ROCm/clr commit: 5afe43b1aa]
This commit is contained in:
vsytch authored and GitHub committed 2020-02-15 09:52:25 +05:30
1 parent 2b1a99ff12
commit fd7dfa19d1
4 files changed
+24

No files matched your search

@@ -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<float, hipTextureType2DLayered> tex2DL;
__global__ void simpleKernelLayeredArray(T* outputData,int width,int height,int layer)
{
unsigned int x = blockIdx.x*blockDim.x + threadIdx.x;