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 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