Changes

Jump to: navigation, search

GPU610/TeamKappa

1,362 bytes added, 17:21, 7 November 2015
Assignment 2
== Assignment 2 ==
 
For assignment 2, we have elected to parallelize the image manipulation program that Ryan Mullings looked at for the first assignment. This program preforms algorithms on black and white *.pgm image files.
 
* [http://www.dreamincode.net/forums/topic/76816-image-processing-tutorial/ original source code]
* [https://convertio.co/ convert files to *.pgm]
* [http://www.gimp.org/ gimp - a program to view *.pgm files]
=== Image Manipulation: Rotation ===
 
For all benchmarks, the image was rotated 45 degrees counter clockwise. The following is the example input and output from running one of the tests:
 
C:\Users\Matt\Documents\Visual Studio 2013\Projects\A2\rotate>GPU 1600_900.pgm 1600_900_gpu.pgm
What would you like to do:
[1] Get a Sub Image
[2] Enlarge Image
[3] Shrink Image
[4] Reflect Image
[5] Translate Image
[6] Rotate Image
[7] Negate Image
[0] Quit
6
Enter to what degree you want to rotate the image:
45
method: rotate - cuda (122)
method: rotate - full (168)
What would you like to do:
[1] Get a Sub Image
[2] Enlarge Image
[3] Shrink Image
[4] Reflect Image
[5] Translate Image
[6] Rotate Image
[7] Negate Image
[0] Quit
0
You have chosen to close the progam.
Press any key to continue . . .
 
All benchmarks were run with the following system specs:
 
* AMD FX-8150 Eight-Core 3.6 GHz
* Cuda 7.5
* NVIDIA GeForce GTX 670
==== Benchmark ====
==== GPU Code ====
 
const unsigned ntpb = 1024;
__global__ void kernel_rotate(int * old_image, int * temp_image, float rads, int rows, int cols) {
1
edit

Navigation menu