62
edits
Changes
→Assignment 2
And this is the kernal implementation :
__global__ void enlarge(int* pixelArr, const int* oldArray, int ni, int nj){
int i = blockIdx.x * blockDim.x + threadIdx.x;
int j = blockIdx.y * blockDim.y + threadIdx.y;
pixelArr[(i * (nj*2) + j) * 2 + nj*2 + 1] = pixel;
}
}
=== Assignment 3 ===