Docsity

CTA Model for Predicting Parallel Computer Performance, Study notes of Computer Science

Partial preview of the text

Download CTA Model for Predicting Parallel Computer Performance and more Study notes Computer Science in PDF only on Docsity!

  • Examples of parallel computers• CTA: a model for predicting performance

Intel Core Duo^ Use: Typical PCs

Generic SMP Use: Both multi-core and multi-CPU PCs

Sun Fire E25K Use: High-end servers from Sun

Cluster ...

Use: Low-cost large-scale parallelism, Emulab^ Internet as network

⇒^ grid computing

BlueGene/L Use: Supercomputing

Spectrum of Machines • A few processors up to thousands Product roadmaps point to more and morecores• Shared memory versus distributed memory but always a notion of “here” versus“elsewhere” ⇒ need scalable, portable programs Expect a MIMD^ perspective, mostly ignoring

SIMD :

MMX instructions (width 4 or so) GPU instructions (width 64 or so) Vector machines like Convex

10-

Models of Computation Most successful sequential model:^ RAM , a.k.a.^ von Neumann For example, predicts that binary search will bemuch faster than serial search[confirm by timing C and Java programs]

12-

CTA

accessing memory “elsewhere” takes

λ^ times as long as “here”

Measuring Approximate

static^ volatile^ int^ val;... void read_loop(int id){ int^ j; for^ (j^ =^ 0;^ j^ <^ iters;^ j++)result^ +=^ val;}

static^ volatile^ int^ val;... void^ read_loop(int^ id){ int^ j; for^ (j^ =^ 0;^ j^ <^ iters;^ j++)

{ asm("mfence");result += val; } } void^ write_loop(int^ id){ int^ j^ = 0;for^ (j^ =^ 0;^ 1;^ j++)^ { asm("mfence");val^ = j;} } 32-bit 2 Pentium D: 10032-bit Core Duo: 10064-bit 2 Opteron: 4064-bit Opteron 2-Core: 4064-bit Athlon 2-Core: 4064-bit 4 Xeon: 50