Fixed function not found issue

[ROCm/hip commit: a1b608bf0d]
这个提交包含在:
Rahul Garg 于 2018-03-16 12:35:25 +05:30 提交
1 父节点 87ff5fbd2e
当前提交 9097b1b2df
1 个文件已更改
+1 -1
@@ -23,7 +23,7 @@ THE SOFTWARE.
#include "hip/hip_runtime.h"
extern texture<float, 2, hipReadModeElementType> tex;
__global__ void tex2dKernel(hipLaunchParm lp, float* outputData, int width, int height) {
extern "C" __global__ void tex2dKernel(hipLaunchParm lp, float* outputData, int width, int height) {
int x = hipBlockIdx_x * hipBlockDim_x + hipThreadIdx_x;
int y = hipBlockIdx_y * hipBlockDim_y + hipThreadIdx_y;
outputData[y * width + x] = tex2D(tex, x, y);