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.
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.
Your file should be called yourlastnameL10.cu and should contain the following:
if (error != cudaSuccess) printf("Error: %s\n", cudaGetErrorString(error));See version 1.1 of the programming guide for more documentation on the error API.
In your initial comment, include the following time measurements (and list the value of N you used for them):
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.