Fix sample 11_texture_driver for hip-clang (#1370)

[ROCm/hip-tests commit: d9d6374a63]
Cette révision appartient à :
Yaxun (Sam) Liu a créé et Maneesh Gupta a révisé 2019-08-29 01:03:20 +00:00
1 Parent 63025d487f
révision 215a715fb1
1 fichier modifié
+6 -1
+6 -1
Voir le fichier
@@ -21,7 +21,12 @@ THE SOFTWARE.
*/
#include "hip/hip_runtime.h"
extern texture<float, 2, hipReadModeElementType> tex;
#if __HIP__
__hip_pinned_shadow__
#else
extern
#endif
texture<float, 2, hipReadModeElementType> tex;
extern "C" __global__ void tex2dKernel(float* outputData, int width, int height) {
int x = hipBlockIdx_x * hipBlockDim_x + hipThreadIdx_x;