30.07.2015 Views

Slides - Par Lab

Slides - Par Lab

Slides - Par Lab

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.

Algorithms" Standard data types// allocate device memorydevice_vector i_vec = ...device_vector f_vec = ...// sum of integersint i_sum = reduce(i_vec.begin(), i_vec.end());// sum of floatsfloat f_sum = reduce(f_vec.begin(),f_vec.end());© 2011 NVIDIA Corporation 54/73

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

Saved successfully!

Ooh no, something went wrong!