Slides - Par Lab
Slides - Par Lab
Slides - Par Lab
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Algorithms" Standard operators// allocate memorydevice_vector A(10);device_vector B(10);device_vector C(10);// transform A + B -> Ctransform(A.begin(), A.end(), B.begin(), C.begin(), plus());// transform A - B -> Ctransform(A.begin(), A.end(), B.begin(), C.begin(), minus());// multiply reductionint product = reduce(A.begin(), A.end(), 1, multiplies());© 2011 NVIDIA Corporation 53/73