19-Task-Parallelism Flashcards

(23 cards)

1
Q

What is task parallelism?

A

Executing different tasks on different processors, not just data parallel operations

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

What is the difference from data parallelism?

A

Data parallelism: same operation on different data; Task parallelism: different operations

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

What is latency hiding?

A

Overlapping communication with computation to hide network delays

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

What is blocking vs non-blocking?

A

Blocking waits for completion, non-blocking returns immediately

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

What is MPI_Wait()?

A

Blocks until non-blocking operation completes

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

What is MPI_Test()?

A

Non-blocking check if operation completed

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

What are command queues?

A

GPU queues for submitting work asynchronously

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

What are events?

A

Track dependencies between GPU operations

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

What is event-based synchronization?

A

Use events to chain operations: kernel depends on data transfer

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

What is the work-span model?

A

Estimates maximum parallel speedup based on work (total operations) and span (longest dependency chain)

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

What is work in work-span model?

A

Total operations needed (serial time)

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

What is span in work-span model?

A

Time on infinite processors (longest dependency chain)

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

What is the work-span speedup limit?

A

S ≤ work/span

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

What are superscalar sequences?

A

Runtime schedules tasks based on dependencies, not explicit synchronization

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

What is the advantage of task graphs?

A

Automatic optimization, cleaner code, runtime handles synchronization

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

What is the disadvantage?

A

Less control over execution order

17
Q

What is OpenCL profiling?

A

Measuring kernel execution time using events

18
Q

What is CL_QUEUE_PROFILING_ENABLE?

A

Enables timing measurements on command queue

19
Q

What is clGetEventProfilingInfo()?

A

Retrieves start/end times for profiling

20
Q

What is the timing calculation?

A

(end - start) * 1e-9 seconds

21
Q

What is multiple command queue benefit?

A

Overlap different operations across queues

22
Q

What is the task graph representation?

A

Directed acyclic graph: nodes=tasks, edges=dependencies

23
Q

What is critical path?

A

Longest path in task graph, determines minimum execution time