Open main menu

CDOT Wiki β

Changes

GPU610/gpuchill

63 bytes added, 21:15, 4 April 2019
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:
46
edits