Lecture 11 Flashcards

1
Q

cudaDeviceSynchronize()

A

is used from the host.

Wait until all current kernels finish

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

cudaStreamSynchronize()

A

waits until all kernels

in a stream finish.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

__syncthreads()

A

is used inside a kernel.

Stop thread until all threads reach the location!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

cudaEventCreate

A

initialize an event variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

cudaEventRecord

A

place a marker in the queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

cudaEventSynchronize

A

wait until all markers

have received values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

cudaEventElapsedTime

A

get the time difference

between two events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Coalescing memory

A

Always access global memory ”in order”
If threads access global memory in order of thread
numbers, performance will be improved!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

CUDA can be coupled closer to ________

A

OpenGL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly