46
edits
Changes
→Reflect Image
<pre>
// Reflect Image Horizontally
__global__ void reflectImgH(int* a, int* b, int rows, int cols) {
int i = blockIdx.x * blockDim.x + threadIdx.x;
}
//Reflect Image Vertically
__global__ void reflectImgV(int* a, int* b, int rows, int cols) {
int i = blockIdx.x * blockDim.x + threadIdx.x;
==== Rotate Image====
On the CPU "rotate" took 40,000 microseconds and the GPU took 1231,123 482 microseconds which shows a speedup of X27 times
The following chart graphically shows how this speedup looks: