CS 385 Lab 10, Spring 2009

[Back to CS 385 schedule]

In this lab, you will modify your code from Lab 9 to compute the reduction operation on the GPU and to use the CUDA error-checking API.

Infrastructure

You should log into your cwolf account and then ssh to rickroll from cwolf. All your cwolf files are visible on rickroll. You may also do this assignment at home if you have a CUDA-capable graphics card; if you do, mention in your initial comment that you worked at home and note the model of your graphics card (e.g. NVidia GeForce 9800 GT).

To compile programs, type nvcc -o outputfile sourcefile.cu
If you run into problems other than syntax errors, the likely culprit is your environment variables. You may need to source your ~/.bash_profile again.

Directions

Your file should be called yourlastnameL10.cu and should contain the following:

Timing

In your initial comment, include the following time measurements (and list the value of N you used for them):

Submitting your file

Make sure that your file is correctly named and then copy it to ~srivoire/cs385/submit. Wait 2 minutes, and then check that it was correctly submitted by visiting http://rivoire.cs.sonoma.edu/cs385/lab10sub.txt.