CHAPTER 5.1 - High-Performance Computing & AI Assisted Scientific Discovery

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/90

encourage image

There's no tags or description

Looks like no tags are added yet.

91 Terms

1
New cards

High performance computing

HPC

2
New cards

HPC

Aggregating power to solve problems too large, too complex, too time-critical for workstation.

3
New cards

Parallel, interconnect, algorithms

*Not just faster laptop* - ________ systems + high-speed ____________ (InfiniBand 200 Gb/s) + optimized parallel __________

4
New cards

Simulation, data science

Convergence of computational science + data science - __________ generates data, ____ ______ learns

5
New cards

Floating point operations

FLOPs

6
New cards

FLOPS, scalability, throughput, time-to-solution

4 HPC Metrics (FSTT)

7
New cards

10M

Frontier 1 ExaFLOPS is equal to ___ laptops @ 100 GFLOPS

8
New cards

Architecture, algorithm

Parallelism requires ____________ + _________ co-design - 1000 cores useless if algorithm serial

9
New cards

Computational complexity, data scale, time constraints

3 pressures in HPC, why a laptop is not enough (CDT)

10
New cards

Computational complexity

pressure in hpc. *measures how the time and resources required by an algorithm grow as the problem size increases*. In HPC, this helps us estimate:

• How long a computation will take

• How much memory it will need

• Whether parallelization can significantly speed it up

11
New cards

Big O Notation

time complexity is usually expressed using what notation?

12
New cards

O(1)

Growth rate in big O notation. Constant

13
New cards

O(log n)

Growth rate in big O notation. Very slow growth

14
New cards

O(n)

Growth rate in big O notation. Linear

15
New cards

O(n log n)

Growth rate in big O notation. Efficient for large data

16
New cards

O(n2)

Growth rate in big O notation. Grows quickly

17
New cards

O(n3)

Growth rate in big O notation. Very expensive

18
New cards

O(2n)

Growth rate in big O notation. Explosive growth

19
New cards

Intensive

Many scientific problems are inherently computationally _________:

• Climate simulation

• Molecular dynamics

• Computational fluid dynamics (CFD)

• Machine learning training

20
New cards

Exascale

Even with ________ computers, poor algorithmic complexity can make problems infeasible

21
New cards

Data scale

pressure in hpc. refers to the volume of data that must be generated, stored, transferred, and analyzed during computation. As scientific simulations and AI models grow, the challenge is often not just computation, but managing massive amounts of data

22
New cards

MB

To scale. 106 bytes

23
New cards

GB

To scale. 109 bytes

24
New cards

TB

To scale. 1012 bytes

25
New cards

PB

To scale. 1015 bytes

26
New cards

EB

To scale. 1018 bytes

27
New cards

Storage, data movement, analysis

as data grows, what 3 bottlenecks appear? (SDA)

28
New cards

Storage

type of bottleneck. Where do you keep petabytes of data? HPC systems use parallel file systems such as: Lustre, GPFS (Spectrum Scale), BeeGFS

29
New cards

Lustre, GPFS, BeeGFS

HPC systems use what 3 parallel file systems? (LGB)

30
New cards

Data Movement

type of bottleneck. Moving data is often slower and more expensive than computing on it. Example: • Computation may take seconds. • Transferring data may take minutes.

31
New cards

Computation may take seconds, Transferring data may take minutes

2 examples of data movement bottleneck (CT)

32
New cards

Analysis

type of bottleneck. Scientists often cannot manually examine all generated data. Machine learning and data analytics help: • Identify patterns • Detect anomalies • Extract insights automatically

33
New cards

Identify patterns, Detect anomalies, Extract insights automatically

Machine learning and data analytics, within the context of bottlenecks, help with what 3 actions? (IDE)

34
New cards

Time constraint

pressure in hpc. is the maximum acceptable time to complete a computation and deliver a useful result. In many HPC applications, getting the answer fast enough is as important as getting the correct answer

35
New cards

fast enough

In many HPC applications, getting the answer ____ ______ is as important as getting the correct answer

36
New cards

Time to solution

A key HPC metric which measures How long it takes to obtain the final answer for a given problem.

37
New cards

Time constraint, HPC

A ____ __________ defines the deadline for obtaining results. ___ exists largely to meet these deadlines by solving computationally and data-intensive problems within a practical time-to-solution.

38
New cards

Node, rack, cluster, interconnect, storage

5 parts of the HPC architecture, smallest to biggest (NRCIS)

39
New cards

Node, rack, cluster, interconnect, storage

____ computes, ____ groups nodes, _______ groups racks, ____________ enables communication, _______ holds and serves data. Together, these components enable an HPC system to scale from a few servers to thousands of nodes capable of performing petaflop- and exaflop scale computations

40
New cards

Compute Nodes

part of HPC architecture. The main building blocks of an HPC system.

Each node contains:

• Multiple CPUs (multi-core processors)

• Often one or more GPUs/accelerators

• Main memory (RAM)

*Thousands* of such nodes may exist in a supercomputer.

41
New cards

Thousands

_________ of compute nodes may exist in a rack in a supercomputer.

42
New cards

Rack

part of HPC architecture. houses multiple nodes.

Benefits:

• Organized deployment

• Shared power and cooling

• Easier maintenance

A rack may contain *dozens* of compute nodes.

43
New cards

Dozens

A rack may contain ______ of compute nodes.

44
New cards

Cluster

part of HPC architecture. Is a collection of racks working together as one HPC system.

Features:

• Thousands of CPUs/GPUs

• Managed by a scheduler (Slurm, PBS)

• Appears as a single computing resource to users

45
New cards

Interconnect

part of HPC architecture. The communication fabric connecting all nodes and racks.

Examples:

• InfiniBand (200 Gb/s, 400 Gb/s and beyond)

• HPE Slingshot

• High-speed Ethernet

Responsibilities:

• Node-to-node communication

• MPI message passing

• Fast data transfer

A slow interconnect can severely limit scalability

46
New cards

Scalability

A slow interconnect can severely limit ___________

47
New cards

Node-to-node communication, MPI message passing, Fast data transfer

3 Responsibilities of Interconnect in the HPC architecture (NMF)

48
New cards

Storage

part of HPC architecture. Shared storage accessible by the entire cluster.

Examples:

• Lustre

• GPFS (Spectrum Scale)

• BeeGFS

Purpose:

• Store input datasets

• Store simulation outputs

• Support parallel I/O from thousands of nodes

49
New cards

Store input datasets, Store simulation outputs, Support parallel I/O from thousands of nodes

3 purposes of the Storage in the HPC architecture (SSS)

50
New cards

Lustre

is a *high-performance parallel distributed file system* designed for large-scale HPC clusters and supercomputers. Unlike a normal file system on a single computer, ______ allows thousands of compute nodes to *access the same data simultaneously* at very high speeds

51
New cards

Task, data

2 types of parallelism (TD)

52
New cards

Task Parallelism

Different tasks concurrently - e.g., climate atmosphere + ocean + land models run together with exchange - needs load balancing

53
New cards

Data Parallelism

Same operation on different data - e.g., compute final grades for 10,000 BS CS students embarrassingly parallel, 10k independent

54
New cards

Amdahl's Law

S equals 1 / ((1-P)+P/N) - P parallel fraction, N cores. If 10% serial, max 10x speedup even infinite cores

55
New cards

Amdahl's Law

predicts the maximum speedup achievable by parallelizing a program. It states: The performance improvement from adding more processors is limited by the portion of the program that must run sequentially.

56
New cards

Amdahl's Law

states that the maximum speedup of a parallel program is limited by its sequential portion. Even with an unlimited number of processors, the non-parallelizable part creates a fundamental limit on performance improvement

57
New cards

Amdahl's Law

When problem size stays the same, some part is always serial cannot be parallelized. That serial part limits speedup, no matter how many cores you add.

58
New cards

Gustafson's Law

When you have more cores, you run a bigger problem, not same problem faster. Serial part stays same absolute size but becomes tiny compared to bigger parallel work, so scaling looks almost perfect

59
New cards

Amdahl's Law

Assumes the workload remains fixed. If part of a program is sequential, it limits the maximum speedup.

60
New cards

Gustafson's Law

Assumes that when more processors become available, scientists solve larger problems instead of keeping the workload fixed

61
New cards

Limitation, scalability

Amdahl emphasizes ___________, while Gustafson emphasizes ___________

62
New cards

MPI, OpenMP, CUDA, Hybrid

4 parallel programming models (MOCH)

63
New cards

MPI

type of parallel programming model. Distributed Memory — Between Nodes

64
New cards

OpenMP

type of parallel programming model. Shared Memory — Inside One Node

65
New cards

CUDA

type of parallel programming model. GPU — Thousands of Tiny Cores

66
New cards

Hybrid

type of parallel programming model. MPI + OpenMP + CUDA — Real HPC (COARE Model)

67
New cards

Message Passing Interface

MPI

68
New cards

MPI

type of parallel programming model. is the standard programming model used in HPC to allow multiple processes running on different nodes to communicate with each other. In simple terms: ___ is the language that compute nodes use to exchange data and coordinate work in a cluster

69
New cards

Open Multi Processing

OpenMP

70
New cards

OpenMP

type of parallel programming model. is an API used for shared-memory parallel programming on multicore CPUs. It allows a program to use multiple CPU cores within a single computer (or node) by creating multiple threads

71
New cards

Compute Unified Device Architecture

CUDA

72
New cards

CUDA

type of parallel programming model. is NVIDIA's parallel computing platform and programming model that allows developers to use NVIDIA GPUs for general-purpose computing, not just graphics. ____ lets programmers use thousands of GPU cores to perform calculations much faster than a CPU for highly parallel workloads.

73
New cards

Hybrid

type of parallel programming model. Combines multiple parallel programming technologies to fully utilize modern HPC systems. Most supercomputers use: • MPI + OpenMP + CUDA Because parallelism exists at multiple levels.

74
New cards

Distributed memory, Message passing, Cluster-level parallelism

3 roles of MPI (DMC)

75
New cards

Shared-memory parallelism, Uses multiple CPU cores

2 roles of OpenMP (SU)

76
New cards

Accelerates compute-intensive tasks, AI, simulations, matrix operations

2 roles of CUDA (AA)

77
New cards

Communication overhead, load imbalance, memory wall

3 major reasons why real HPC never reaches ideal performance (CLM)

78
New cards

Communication Overhead

major reason why HPC never reaches ideal performance. Processors/nodes must exchange data. Time spent Sending, Receiving messages and Synchronizing data is time not spent computing. Example: In MPI, nodes constantly communicate through InfiniBand.

79
New cards

Load Imbalance

major reason why HPC never reaches ideal performance. Work is not distributed equally. 1 Core finishes quickly and waits. The slowest processor determines when the whole job finishes.

80
New cards

Memory Wall

major reason why HPC never reaches ideal performance. CPUs are much faster than memory. Even if you have many cores, they can sit idle waiting for data. Computation speed grows faster than memory speed

81
New cards

Plateau

Real HPC performance never reaches ideal performance because processors must communicate, workloads are not perfectly balanced, and CPUs often wait for memory accesses. These overheads increase with scale and cause performance to _______

82
New cards

Overhead

Time spent talking, waiting, or fetching instead of computing.

83
New cards

Strong, weak

2 types of scaling (SW)

84
New cards

Strong Scaling

type of scaling. 1 worker → 1 hole → 10 hours | 10 workers → 1 hole → 1 hour. Same job, faster completion

85
New cards

Weak Scaling

type of scaling. 1 worker → 1 hole | 10 workers → 10 holes. Each worker still does one hole. Total work grows with workers

86
New cards

Faster, efficiently

We know an HPC system is better when it can perform computational tasks ______ and more ___________ than a conventional computer or previous system.

87
New cards

Speedup

key performance measure. How many times faster the HPC system completes the same task.

88
New cards

Execution Time

key performance measure. How much the processing time decreases.

89
New cards

Efficiency

key performance measure. How effectively the available CPU/GPU resources are utilized.

90
New cards

Throughput

key performance measure. How many tasks or calculations can be completed within a given period.

91
New cards

Scalability

key performance measure. How well performance improves when additional processors or computing resources are added.