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

这个提交包含在:
Yaxun (Sam) Liu 编写, Maneesh Gupta 于 2019-08-29 01:03:20 +00:00 提交
1 父节点 39de5ed699
当前提交 d9d6374a63
1 个文件已更改
+6 -1
@@ -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;