Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Mayo de 2008
ndice
Arquitecturas paralelas
Programacin paralela
Computacin cientfica
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
ndice
Arquitecturas Paralelas
Programacin Paralela
Computacin Cientfica
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
Arquitecturas Paralelas
Ley de Moore ("Cramming more components onto integrated circuits", Gordon E. Moore, Electronics
Magazine, Abril 1965):
The complexity for minimum component costs has increased at a rate of roughly a
factor of two per year ... Certainly over the short term this rate can be expected to
continue, if not to increase. Over the longer term, the rate of increase is a bit more
uncertain, although there is no reason to believe it will not remain nearly constant for at
least 10 years. That means by 1975, the number of components per integrated circuit
for minimum cost will be 65,000. I believe that such a large circuit can be built on a
single wafer.
Interpretacin habitual:
La velocidad del procesador (GHz) se dobla cada 18 meses
Interpretacin correcta:
El nmero de transistores que pueden integrarse en un
dispositivo con un coste determinado se dobla cada 18 meses
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
Arquitecturas Paralelas
IBM PC
Intel 8088 @ 4.77 MHz
Sin cach
256 KB RAM
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
Arquitecturas Paralelas
IF
ID
IF
ALU MEM
ID
IF
OS
ALU MEM
ID
OS
ALU MEM
OS
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
Arquitecturas Paralelas
IF
ID
ALU MEM
OS
IF
ID
ALU MEM
OS
IF
ID
ALU MEM
OS
IF
ID
ALU MEM
OS
IF
ID
ALU MEM
OS
IF
ID
ALU MEM
OS
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
Arquitecturas Paralelas
Etapas de
segmentacin
Factor de
superescalaridad
Intel Pentium 4
20
AMD K7
14
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
Arquitecturas Paralelas
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
Arquitecturas Paralelas
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
10
Arquitecturas Paralelas
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
11
Arquitecturas Paralelas
Procesadores multincleo
Intel Xeon QuadCore: 4 ncleos
(prototipo de 80 ncleos)
Aceleradores hardware:
Cell B.E.: 1+8 ncleos
NVIDIA G80: 128 ncleos
ClearSpeed X620: 2 x 96 ncleos
CISCO Metro: 188 ncleos
Intel Larrabee: ? Ncleos
AMD+ATI
...
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
12
Arquitecturas Paralelas
Resumen:
A menos que haya un cambio radical en la tecnologa, el futuro es
multincleo
Aquellos que no quieran adaptarse a ese futuro, tendrn que
conformarse con un slo procesador a 2-4 GHz
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
13
ndice
Arquitecturas Paralelas
Programacin Paralela
Computacin Cientfica
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
14
Programacin Paralela
Cantidad de
superordenadores
95
72
98
57
25
33
38
30
8
13
8
23
Supercomputador de 6/1993
TMC CM5 @ LANL
1,024 SuperSPARC I
59.7 GFLOPS
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
15
Programacin Paralela
Supercomputador de 11/2007
IBM BlueGene @ DOE/LLNL
212,992 PowerPC 440
478,200 GFLOPS
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
16
Programacin Paralela
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
17
Programacin Paralela
Compiladores
Lenguajes
Bibliotecas
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
18
Programacin Paralela
by Elizabeth Montalbano
PC World
Sunday, March 23, 2008; 12:19 AM
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
19
Programacin Paralela
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
20
Programacin Paralela
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
21
Programacin Paralela
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
22
Programacin Paralela
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
23
Programacin Paralela
Resumen:
El modo de programar las arquitecturas paralelas est definindose
en estos momentos
Los propios fabricantes de hardware son los primeros interesados
en proporcionar las herramientas software adecuadas
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
24
ndice
Arquitecturas Paralelas
Programacin Paralela
Computacin Cientfica
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
25
Computacin Cientfica
Algunos ejemplos:
Resonancia magntica en tiempo real (Hospital de Chicago, 1995)
Anlisis de tensiones en componentes de aviacin (Boeing Ltd.,1996)
Evaluacin del campo gravitatorio terrrestre (Dept. of Aerospace
Engineering & Engineering Mechanics - The University of Texas at Austin,
2003).
Reduccin de modelos en diseo y simulacin de circuitos VLSI (Philips
Research Labs., 2004)
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
26
http://www.jpl.nasa.gov
Utilizar procesadores, memoria y
otra circuitera COTS (commercial
off-the-shelf) en vehculos
espaciales
No necesitan radiacin ms
econmicos y rpidos, menos
pesados
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
27
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
28
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
29
C = A B
dados vectores d y e, de las dimensiones apropiadas,
C d - A (B d) = 0
e C (e A) B = 0
Coste computacional producto matriz-matriz (n x n x n):
Coste computacional producto matriz-vector:
2n3 flops
2n2 flops
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
30
C d - A (B d) 0
e C (e A) B 0
C = A B
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
31
http://www.eso.org/public/astronomy/projects/e-elt.html
Construir un telescopio terrestre
capaz de detectar sistemas
planetarios, agujeros negros y otros
fenmenos astronmicos
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
32
y(j) = A x(j),
j=0,1,2,
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
33
y =
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
34
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
35
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
36
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
37
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
38
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
39
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
40
0.065 ms
y =
9.919 ms
0.065 ms
Total: 10.049 ms
41
G800
y =
G801
=
G802
G803
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
42
4 0.065 ms
y =
2.361 ms
4 0.035 ms
ms
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
(72 2 GFLOPS)
Total: 2.761
43
Computacin Cientfica
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
44
Para Concluir
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
45
Para Concluir
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
46
Para Concluir
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
47
Arquitecturas paralelas
Programacin paralela
Computacin cientfica
Programacin Paralela? Multicore, NVIDIA GPUs, PlayStation 3 Cell,... Enrique S. Quintana Ort
48