====== How to setup the CUDA environment on the ug machines ====== {{:labsetup.pdf|Follow these instructions.}} ====== Assignment #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|Untitled.ppm}} * The fade example from the lecture notes: {{:fade.cu|fade.cu}}, {{:fade_cpu.c|fade_cpu.c}} * The helper functions to read, allocate, and write ppm files: {{:ppm.c|ppm.c}}, {{:ppm.h|ppm.h}}. - 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.