Changes between Initial Version and Version 1 of cypress/Programming/SpeedupScaling


Ignore:
Timestamp:
Aug 17, 2015 9:44:15 PM (6 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/Programming/SpeedupScaling

    v1 v1  
     1
     2= Parallel Computing =
     3==  Moore's law ==
     4* 2X transistors/Chip Every 1.5 years Called “Moore’s Law”
     5* Microprocessors have become smaller, denser, and more powerful.
     6 
     7-- Gordon Moore (co-founder of Intel) predicted in 1965 that the transistor density of semiconductor chips would double roughly every 18 months. --
     8
     9
     10== Multi-tasks ==
     11* In computing, multitasking is a method where multiple tasks, also known as processes, are performed during the same period of time.
     12* The tasks share common processing resources, such as a CPU and main memory.
     13* In the case of a computer with a single CPU, only one task runs at any point in time.
     14* Multitasking solves the problem by scheduling which task may run at any given time, and when another waiting task gets a turn.
     15* When task switches occur frequently enough the illusion of parallelism is achieved.
     16
     17
     18== Multi-core ==
     19Now all computer has multi-core
     20
     21A multi-core processor is a single computing component with two or more independent actual central processing units (called "cores"), which are the units that read and execute program instructions.
     22The multiple cores can run multiple instructions at the same time, increasing overall speed for programs amenable to parallel computing.
     23
     24
     25== Co-Processors ==
     26A coprocessor is a computer processor used to supplement the functions of the primary processor (the CPU). Operations performed by the coprocessor may be floating point arithmetic, graphics, signal processing, string processing, encryption or I/O Interfacing with peripheral devices. By offloading processor-intensive tasks from the main processor, coprocessors can accelerate system performance.
     27
     28
     29=== GPU ===
     30A graphics processing unit (GPU), also occasionally called visual processing unit (VPU), is a specialized electronic circuit designed to rapidly manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to a display. GPUs are used in embedded systems, mobile phones, personal computers, workstations, and game consoles. Modern GPUs are very efficient at manipulating computer graphics, and their highly parallel structure makes them more effective than general-purpose CPUs for algorithms where processing of large blocks of data is done in parallel. In a personal computer, a GPU can be present on a video card, or it can be on the motherboard.
     31
     32
     33==== GPU computing ====
     34GPU-accelerated computing is the use of a graphics processing unit (GPU) together with a CPU to accelerate scientific, engineering, and enterprise applications.
     35
     36
     37===  Intel Xeon Phi ===
     38Intel Many Integrated Core Architecture or Intel MIC (pronounced Mick or Mike) is a coprocessor computer architecture developed by Intel, the Teraflops Research Chip multicore chip research project, and the Intel Single-chip Cloud Computer multicore microprocessor.
     39
     40
     41----
     42
     43
     44== Speedup Factor ==
     45
     46* Suppose you have a code that takes ts~ seconds to run on one processor.
     47
     48* You find there are parallelizable sections in the code. But for the other sections, it still needs to run on a single processor. (For OpenMP)
     49* For MPI codes, the processes run in parallel from the beginning, but there must be some parts where all processes do same things.
     50   * Those parts are considered as serial sections.
     51
     52* The time ratio of the serial section to the total is f
     53 , so time for the serial section is ft_{s}
     54  and the parallelizable section is \left(1-f\right)t_{s}
     55 .
     56
     57* If you use n
     58  processors, the time for the parallelizable section can be reduced to \left(1-f\right)t_{s}/n
     59 .
     60
     61* Here the Speedup factor is defined as
     62
     63S\left(n\right)=\frac{\textrm{computing time on a single processor}}{\textrm{computing time on multiple processors}}=\frac{t_{s}}{ft_{s}+\left(1-f\right)t_{s}/n}=\frac{n}{1+\left(n-1\right)f}
     64 
     65
     66This is the Amdahl's Law.