22.08.2013 Views

vector - Department of Computer Science

vector - Department of Computer Science

vector - Department of Computer Science

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Memory operations<br />

• Load/store operations move groups <strong>of</strong> data between<br />

registers and memory<br />

• Three types <strong>of</strong> addressing<br />

– Unit stride<br />

» Contiguous block <strong>of</strong> information in memory<br />

» Fastest: always possible to optimize this<br />

– Non-unit (constant) stride<br />

» Harder to optimize memory system for all possible strides<br />

» Prime number <strong>of</strong> data banks makes it easier to support<br />

different strides at full bandwidth (Duncan Lawrie patent)<br />

– Indexed (gather-scatter)<br />

» Vector equivalent <strong>of</strong> register indirect<br />

» Good for sparse arrays <strong>of</strong> data<br />

» Increases number <strong>of</strong> programs that <strong>vector</strong>ize<br />

3/22-24/11 CSE502-S11, Lec 14+15-Vector 11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!