25.06.2015 Views

clause

clause

clause

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.

基 于 for 结 构 的 并 行 化 代 码<br />

#include #include"stdio.h"<br />

main(int main(intargc, argc, char char *argv[]) *argv[])<br />

{{<br />

…<br />

n = atoi(argv[1]);<br />

w = 1.0 1.0 //(double) (double) n; n;<br />

sum sum = 0.0; 0.0;<br />

#pragma omp ompfor for reduction(+:sum)<br />

for(i=0;i

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

Saved successfully!

Ooh no, something went wrong!