Presentation is loading. Please wait.

Presentation is loading. Please wait.

National Tsing Hua University ® copyright OIA National Tsing Hua University HSA HW1.

Similar presentations


Presentation on theme: "National Tsing Hua University ® copyright OIA National Tsing Hua University HSA HW1."— Presentation transcript:

1 National Tsing Hua University ® copyright OIA National Tsing Hua University HSA HW1

2 National Tsing Hua University ® copyright OIA National Tsing Hua University HW1 In this homework, we want you to write 4 simple OpenCL programs. – Prefix sum – Finite Difference – Matrix Transpose – Matrix Multiplication Each program earns 3 points of your final grades.

3 National Tsing Hua University ® copyright OIA National Tsing Hua University Prefix sum & Finite Difference The first number is the number of input data. Input data : 3 4 5 6 Output data : – Prefix Sum : 4 9 15 – Finite difference : 4 -1 -7

4 National Tsing Hua University ® copyright OIA National Tsing Hua University Matrix Transpose & Matrix Multiplication The first and second number is the row and column of the Matrix. Matrix Transpose Input data : 2 3 1 1 2 2 3 3 Output : answer after transposition. – without the number of row and column In Matrix Multiplication We will give you two input file mtx1, mtx2. Mtx1 Input data : 3 2 1 1 2 2 3 3 Mtx2 input data : 2 3 1 2 3 4 5 6 Output : answer after Multiplication. – without the number of row and column

5 National Tsing Hua University ® copyright OIA National Tsing Hua University HW1 We want you to write not only GPU part, but a CPU side to verify the answer of GPU. We will announce your server IP and account in iLMS. Don't copy others code, you will get 0 points. DEADLINE : 3/23 11:55pm


Download ppt "National Tsing Hua University ® copyright OIA National Tsing Hua University HSA HW1."

Similar presentations


Ads by Google