Changes

Jump to: navigation, search

GroupNumberUndefined

2 bytes added, 16:37, 26 March 2017
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 ===
62
edits

Navigation menu