GPU - Final - Gradescope
GPU - Final - Gradescope
Q1
2 Points
Q2
4 Points
16
Q3
4 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 1/20
9/19/23, 11:15 PM View Submission | Gradescope
Q4
2 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 2/20
9/19/23, 11:15 PM View Submission | Gradescope
Q5
12 Points
Q5.1
2 Points
Q5.2
4 Points
32
Q5.3
3 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 3/20
9/19/23, 11:15 PM View Submission | Gradescope
80000
Q5.4
3 Points
(2000/32)*(2000/32)
Q6
2 Points
Q7
3 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 4/20
9/19/23, 11:15 PM View Submission | Gradescope
Q8
2 Points
Q9
2 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 5/20
9/19/23, 11:15 PM View Submission | Gradescope
Q10
2 Points
Not Coalesced
Coalesced
Q11
5 Points
What are some factors that are pushing emerging GPU designs
to adopt Multi-Chip Modules? and what are the implications of
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 6/20
9/19/23, 11:15 PM View Submission | Gradescope
Q12
2 Points
Q13
2 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 7/20
9/19/23, 11:15 PM View Submission | Gradescope
Command
Queue
Heap
Stack
Event
Q14
3 Points
Host Memory -> DMA Engine -> Pinned Memory -> PCIe Bus ->
Global Memory
Pinned Memory -> Host Memory -> PCIe Bus -> DMA Engine ->
Global Memory
Pinned Memory -> Host Memory -> DMA Engine -> PCIe Bus ->
Global Memory
Host Memory -> Pinned Memory -> DMA Engine -> PCIe Bus ->
Global Memory
Host Memory -> Pinned Memory -> PCIe Bus -> DMA Engine ->
Global Memory
Q15
2 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 8/20
9/19/23, 11:15 PM View Submission | Gradescope
Q16
3 Points
CPU
No where
GPU
Q17
2 Points
Q18
3 Points
For the following code snippet, how many page faults would
occur?
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 9/20
9/19/23, 11:15 PM View Submission | Gradescope
3
2
1
Q19
2 Points
Bus
Tree
Ring
Star
Q20
2 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 10/20
9/19/23, 11:15 PM View Submission | Gradescope
Q21
12 Points
Q21.1
4 Points
Now let's consider the case where we privatize this kernel where
every thread block has a private histogram in shared memory,
histo_private[10], where each thread block will first locally update
this private histogram, then update the global histogram when
the thread block completes.
160
Q21.2
4 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 11/20
9/19/23, 11:15 PM View Submission | Gradescope
16
Q21.3
4 Points
__global__ void histogram(unsigned int* input, unsigned int* histo, unsigned int
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 12/20
9/19/23, 11:15 PM View Submission | Gradescope
syncthreads 2
syncthreads 3
syncthreads 1
syncthreads 4
Q22
4 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 13/20
9/19/23, 11:15 PM View Submission | Gradescope
Q23
4 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 14/20
9/19/23, 11:15 PM View Submission | Gradescope
Q24
3 Points
For the below code snippet, which instruction would block the
queues from enabling overlap of data transfer and computation?
F
D
C
A
B
E
H
G
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 15/20
9/19/23, 11:15 PM View Submission | Gradescope
Q25
5 Points
Q26
2 Points
Q27
3 Points
Q28
2 Points
True
False
Q29
2 Points
Q30
2 Points
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 17/20
9/19/23, 11:15 PM View Submission | Gradescope
Student
Sree Charan Reddy Gangireddy
Total Points
77 / 100 pts
Question 1
(no title) 2 / 2 pts
Question 2
(no title) 4 / 4 pts
Question 3
(no title) 4 / 4 pts
Question 4
(no title) 2 / 2 pts
Question 5
(no title) 9 / 12 pts
Question 6
(no title) 2 / 2 pts
Question 7
(no title) 3 / 3 pts
Question 8
(no title) 0 / 2 pts
Question 9
(no title) 2 / 2 pts
Question 10
(no title) 2 / 2 pts
Question 11
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 18/20
9/19/23, 11:15 PM View Submission | Gradescope
Question 12
(no title) 2 / 2 pts
Question 13
(no title) 2 / 2 pts
Question 14
(no title) 0 / 3 pts
Question 15
(no title) 2 / 2 pts
Question 16
(no title) 3 / 3 pts
Question 17
(no title) 2 / 2 pts
Question 18
(no title) 3 / 3 pts
Question 19
(no title) 2 / 2 pts
Question 20
(no title) 2 / 2 pts
Question 21
(no title) 8 / 12 pts
Question 22
(no title) 2 / 4 pts
Question 23
(no title) 4 / 4 pts
Question 24
(no title) 3 / 3 pts
Question 25
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 19/20
9/19/23, 11:15 PM View Submission | Gradescope
Question 26
(no title) 2 / 2 pts
Question 27
(no title) 3 / 3 pts
Question 28
(no title) 2 / 2 pts
Question 29
(no title) 0 / 2 pts
Question 30
(no title) 2 / 2 pts
https://www.gradescope.com/courses/461455/assignments/2467151/submissions/151565671 20/20