Download - Assignments [CUDA Programming Summer 2012]

Transcript
Page 1: Assignments [CUDA Programming Summer 2012]

21/8/2014 assignments [CUDA Programming Summer 2012]

http://www.eecg.toronto.edu/~moshovos/CUDAsummer12/doku.php?id=assignments 1/1

How to setup the CUDA environment on the ug machines

Follow these instructions.

Assignment #1

1. Develop a CUDA program that rotates the Tucan image we used for the fade example. Here's

the tucan image. Here some files to help you.

The tucan image: Untitled.ppm

The fade example from the lecture notes: fade.cu, fade_cpu.c

The helper functions to read, allocate, and write ppm files: ppm.c, ppm.h.

1. Develop a CUDA program that takes two PPM images and merges them. That is every new

pixel is the sum of average of the two corresponding pixels from the input images: new[i][j] =

(in_a[i][j] + in_b[i][j]) / 2.

ass ignments .txt · Las t modified: 2012/05/16 14:32 by andreas

Except where otherwise noted, content on this wiki is licensed under the following license: CCAttribution-Share Alike 3.0 Unported [http://creativecommons.org/licenses/by-sa/3.0/]