程序代写代做代考 GPU Microsoft Word – COMP8551 OpenCL Lab.docx

Microsoft Word – COMP8551 OpenCL Lab.docx

COMP 8551

OpenCL Lab Exercises

1. Review the HelloWorld example provided.

2. Write a simple application that keeps track of the grades for students in a class. The application
consists of two main tasks:

a. Obtain a class average by averaging the final grades of all students.

b. Compute the final grade for each student, assuming the final grade is the average of all
the student’s grades.

3. Review the Hands On OpenCL exercises 1-8, especially exercises 6 and 8.

4. Based on the above, re-implement the first lab to use the CPU, the GPU and both. Which one
gives a faster result? Why? Is it the same on different computers with different processors?