









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Use: Low-cost large-scale parallelism, Emulab^ Internet as network
⇒^ grid computing
MMX instructions (width 4 or so) GPU instructions (width 64 or so) Vector machines like Convex
10-
12-
accessing memory “elsewhere” takes
λ^ times as long as “here”
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