并行计算介绍(Introduction to Parallel Computing ) ——我主张阅读英文原著

      串行计算,分为“指令”和“数据”两个部分,在程序执行时“独立地申请和占有”内存空间,所有计算均局限于该内存空间。

      并行计算,则将进程相对独立的分配在不同的节点上,由各自独立的操作系统调度,享有独立的CPU和内存资源(内存可共享),进程间通过消息传递实现信息的相互交换。

 

 

 

 

 

 

 

 

 

并行计算机分类:

 

 

Flynn分类法
•SISD(单指令流单数据流)系统
•SIMD(单指令流多数据流)系统
•MISD(多指令流单数据流)系统
•MIMD(多指令流多数据流)系统

 

 


五种物理机模型: 实际的机器体系结构
— PVP (Parallel Vector Processor, 并行向量机)
— SMP (Symmetric Multiprocessor, 对称多处理机)
— MPP (Massively Parallel Processor, 大规模并行处理机)
— COW (Cluster of Workstation, 工作站机群)
— DSM (Distributed Shared Memory, 分布共享存储多处理机)

 

https://computing.llnl.gov/tutorials/parallel_comp/

 

Introduction to Parallel Computing

 

Blaise Barney, Lawrence Livermore National Laboratory

Abstract

 

Table of Contents

  1. Overview
    1. What is Parallel Computing?
    2. Why Use Parallel Computing?
  2. Concepts and Terminology
    1. von Neumann Computer Architecture
    2. Flynn's Classical Taxonomy
    3. Some General Parallel Terminology
  3. Parallel Computer Memory Architectures
    1. Shared Memory
    2. Distributed Memory
    3. Hybrid Distributed-Shared Memory
  4. Parallel Programming Models
    1. Overview
    2. Shared Memory Model
    3. Threads Model
    4. Message Passing Model
    5. Data Parallel Model
    6. Other Models
  5. Designing Parallel Programs
    1. Automatic vs. Manual Parallelization
    2. Understand the Problem and the Program
    3. Partitioning
    4. Communications
    5. Synchronization
    6. Data Dependencies
    7. Load Balancing
    8. Granularity
    9. I/O
    10. Limits and Costs of Parallel Programming
    11. Performance Analysis and Tuning
  6. Parallel Examples
    1. Array Processing
    2. PI Calculation
    3. Simple Heat Equation
    4. 1-D Wave Equation
  7. References and More Information

 

 

 

 

 

https://computing.llnl.gov/tutorials/parallel_comp/

 

Flynn's Classical Taxonomy

  • There are different ways to classify parallel computers. One of the more widely used classifications, in use since 1966, is called Flynn's Taxonomy.
  • Flynn's taxonomy distinguishes multi-processor computer architectures according to how they can be classified along the two independent dimensions ofInstruction and Data. Each of these dimensions can have only one of two possible states: Single or Multiple.
  • The matrix below defines the 4 possible classifications according to Flynn:
    S I S D

    Single Instruction, Single Data

    S I M D

    Single Instruction, Multiple Data

    M I S D

    Multiple Instruction, Single Data

    M I M D

    Multiple Instruction, Multiple Data

 

What is Parallel Computing?

  • Traditionally, software has been written for serial computation:
    • To be run on a single computer having a single Central Processing Unit (CPU);
    • A problem is broken into a discrete series of instructions.
    • Instructions are executed one after another.
    • Only one instruction may execute at any moment in time.

         
    In the simplest sense, parallel computing is the simultaneous use of multiple compute resources to solve a computational problem:

 

  • To be run using multiple CPUs
  • A problem is broken into discrete parts that can be solved concurrently
  • Each part is further broken down to a series of instructions
  • Instructions from each part execute simultaneously on different CPUs

 

 

  • The compute resources can include:
    • A single computer with multiple processors;
    • An arbitrary number of computers connected by a network;
    • A combination of both.
  • The computational problem usually demonstrates characteristics such as the ability to be:
    • Broken apart into discrete pieces of work that can be solved simultaneously;
    • Execute multiple program instructions at any moment in time;
    • Solved in less time with multiple compute resources than with a single compute resource.

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值