25.06.2014 Views

Using Intel’s Single-Chip Cloud Computer (SCC) - Intel, Mattson, Tutorial

Using Intel’s Single-Chip Cloud Computer (SCC) - Intel, Mattson, Tutorial

Using Intel’s Single-Chip Cloud Computer (SCC) - Intel, Mattson, Tutorial

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.

36<br />

How to use the shared DRAM<br />

• Two devices for shared memory DRAM<br />

– /dev/rckncm – Linux device exposing “non-cacheable memory”.<br />

– /dev/rckdcm – Linux device exposing “definitely cacheable memory”.<br />

• Access to shared memory through RCCE<br />

– The appropriate device is opened inside RCCE_init()<br />

– SHMalloc() in <strong>SCC</strong>_API.c does the actual mmap() routine to get the<br />

file descriptor of the opened device.<br />

– Set all this up by building RCCE with SHMADD_CACHEABLE<br />

• If you work with Cacheable shared memory, you need to<br />

manage cache coherence explicitly.<br />

– In other words … you need to understand when the cache needs to<br />

be flushed and explicitly insert flushes as needed.

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

Saved successfully!

Ooh no, something went wrong!