Fixed function not found issue
Tá an tiomantas seo le fáil i:
1 tuismitheoir
6b09bde675
tiomantas
01ee90d564
1 comhad athraithe
+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);
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir