02.02.2014 Views

JUQUEEN - Prace Training Portal

JUQUEEN - Prace Training Portal

JUQUEEN - Prace Training Portal

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.

QPX Usage – Hints for the Compiler<br />

Compiler needs hints<br />

– Hint compiler to likely iteration counts<br />

– Instruct compiler to align fields<br />

– Tell that FOTRAN assumed-shape arrays are contiguous<br />

-qassert=contig<br />

real*8 :: x(:),y(:),a<br />

!ibm* align(32, x, y)<br />

!ibm* assert(itercnt(100))<br />

do i=m, n<br />

z(i) = x(i) + a*y(i)<br />

enddo<br />

double __align(32) *x, *y;<br />

double a;<br />

#pragma disjoint(*x, *y)<br />

#pragma disjoint(*x, a)<br />

#pragma ibm iterations(100)<br />

for (int i=m;i

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

Saved successfully!

Ooh no, something went wrong!